Show More
@@ -117,6 +117,7 b' def unshare(ui, repo):' | |||
|
117 | 117 | util.rename(sharefile, sharefile + '.old') |
|
118 | 118 | |
|
119 | 119 | repo.requirements.discard('shared') |
|
120 | repo.requirements.discard('relshared') | |
|
120 | 121 | repo._writerequirements() |
|
121 | 122 | finally: |
|
122 | 123 | destlock and destlock.release() |
@@ -393,6 +393,21 b' renames and changes of PWD' | |||
|
393 | 393 | [255] |
|
394 | 394 | $ hg -R thatdir/rel root |
|
395 | 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 | 411 | $ rm -r thatdir |
|
397 | 412 | |
|
398 | 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