changeset 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 28445179df90
children d54467c1a198
files hgext/share.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/share.py	Sat Nov 16 20:34:58 2013 -0500
+++ b/hgext/share.py	Sat Nov 16 17:30:34 2013 -0500
@@ -59,7 +59,7 @@
         lock and lock.release()
 
     # update store, spath, sopener and sjoin of repo
-    repo.__init__(repo.baseui, repo.root)
+    repo.unfiltered().__init__(repo.baseui, repo.root)
 
 cmdtable = {
     "share":