Skip to content
Snippets Groups Projects
Commit ecbd378d9a7e authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

share: fix typo to drop 'shared' requirement on unshare

This must be a typo and it seems correct to drop the requirement since the
repo is no longer a shared repository.
parent e1d035905b2e
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
sharefile = repo.join('sharedpath') sharefile = repo.join('sharedpath')
util.rename(sharefile, sharefile + '.old') util.rename(sharefile, sharefile + '.old')
repo.requirements.discard('sharedpath') repo.requirements.discard('shared')
repo._writerequirements() repo._writerequirements()
finally: finally:
destlock and destlock.release() destlock and destlock.release()
......
...@@ -114,6 +114,8 @@ ...@@ -114,6 +114,8 @@
$ test -d .hg/store $ test -d .hg/store
$ test -f .hg/sharedpath $ test -f .hg/sharedpath
[1] [1]
$ grep shared .hg/requires
[1]
$ hg unshare $ hg unshare
abort: this is not a shared repo abort: this is not a shared repo
[255] [255]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment