comparison hgext/share.py @ 31211:ecbd378d9a7e

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.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 03 Mar 2017 00:11:18 +0900
parents 23080c03a604
children 344121b30f32
comparison
equal deleted inserted replaced
31210:e1d035905b2e 31211:ecbd378d9a7e
114 destlock = hg.copystore(ui, repo, repo.path) 114 destlock = hg.copystore(ui, repo, repo.path)
115 115
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()
123 lock and lock.release() 123 lock and lock.release()
124 124