Mercurial > public > mercurial-scm > hg
comparison hgext/share.py @ 20056:cbcd85fa75c0 stable
share: fix unshare calling wrong repo.__init__() method
When running the unshare command, if there's other code that tries to use
the repo after the command is finished, it'll end up with a ui object for
repo.unfiltered(). This change fixes an erroneous call to repo.__init__()
that could be on the repoview proxy class--now it's always done on the
unfiltered repo.
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 16 Nov 2013 17:30:34 -0500 |
parents | de16c673455b |
children | d2ce7a20fe86 |
comparison
equal
deleted
inserted
replaced
20028:28445179df90 | 20056:cbcd85fa75c0 |
---|---|
57 finally: | 57 finally: |
58 destlock and destlock.release() | 58 destlock and destlock.release() |
59 lock and lock.release() | 59 lock and lock.release() |
60 | 60 |
61 # update store, spath, sopener and sjoin of repo | 61 # update store, spath, sopener and sjoin of repo |
62 repo.__init__(repo.baseui, repo.root) | 62 repo.unfiltered().__init__(repo.baseui, repo.root) |
63 | 63 |
64 cmdtable = { | 64 cmdtable = { |
65 "share": | 65 "share": |
66 (share, | 66 (share, |
67 [('U', 'noupdate', None, _('do not create a working copy'))], | 67 [('U', 'noupdate', None, _('do not create a working copy'))], |