##// END OF EJS Templates
share: fix typo to drop 'shared' requirement on unshare...
Yuya Nishihara -
r31211:ecbd378d default
parent child Browse files
Show More
@@ -116,7 +116,7 b' def unshare(ui, repo):'
116 sharefile = repo.join('sharedpath')
116 sharefile = repo.join('sharedpath')
117 util.rename(sharefile, sharefile + '.old')
117 util.rename(sharefile, sharefile + '.old')
118
118
119 repo.requirements.discard('sharedpath')
119 repo.requirements.discard('shared')
120 repo._writerequirements()
120 repo._writerequirements()
121 finally:
121 finally:
122 destlock and destlock.release()
122 destlock and destlock.release()
@@ -114,6 +114,8 b' test unshare command'
114 $ test -d .hg/store
114 $ test -d .hg/store
115 $ test -f .hg/sharedpath
115 $ test -f .hg/sharedpath
116 [1]
116 [1]
117 $ grep shared .hg/requires
118 [1]
117 $ hg unshare
119 $ hg unshare
118 abort: this is not a shared repo
120 abort: this is not a shared repo
119 [255]
121 [255]
General Comments 0
You need to be logged in to leave comments. Login now