##// END OF EJS Templates
share: drop 'relshared' requirement as well
Yuya Nishihara -
r31212:344121b3 default
parent child Browse files
Show More
@@ -117,6 +117,7 b' def unshare(ui, repo):'
117 util.rename(sharefile, sharefile + '.old')
117 util.rename(sharefile, sharefile + '.old')
118
118
119 repo.requirements.discard('shared')
119 repo.requirements.discard('shared')
120 repo.requirements.discard('relshared')
120 repo._writerequirements()
121 repo._writerequirements()
121 finally:
122 finally:
122 destlock and destlock.release()
123 destlock and destlock.release()
@@ -393,6 +393,21 b' renames and changes of PWD'
393 [255]
393 [255]
394 $ hg -R thatdir/rel root
394 $ hg -R thatdir/rel root
395 $TESTTMP/thatdir/rel
395 $TESTTMP/thatdir/rel
396
397 test unshare relshared repo
398
399 $ cd thatdir/rel
400 $ hg unshare
401 $ test -d .hg/store
402 $ test -f .hg/sharedpath
403 [1]
404 $ grep shared .hg/requires
405 [1]
406 $ hg unshare
407 abort: this is not a shared repo
408 [255]
409 $ cd ../..
410
396 $ rm -r thatdir
411 $ rm -r thatdir
397
412
398 Explicitly kill daemons to let the test exit on Windows
413 Explicitly kill daemons to let the test exit on Windows
General Comments 0
You need to be logged in to leave comments. Login now