[PATCH 4 of 7] subrepo: subrepo isolation, pass baseui when cloning a new subrepo (issue2904)

Simon Heimberg simohe at besonet.ch
Wed Oct 24 17:41:16 CDT 2012


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1349824686 -7200
# Node ID 303d8cba7cbc02e83894c2e0dd74da2118aa4b8f
# Parent  042a913184102e1cc300fcc6d25b4af38f0c8d44
subrepo: subrepo isolation, pass baseui when cloning a new subrepo (issue2904)

Create the repo with baseui because it should only get the global configuration.

After this patch issue2904 is finally fixed.

diff -r 042a91318410 -r 303d8cba7cbc mercurial/subrepo.py
--- a/mercurial/subrepo.py	Don Okt 04 19:46:43 2012 +0200
+++ b/mercurial/subrepo.py	Mit Okt 10 01:18:06 2012 +0200
@@ -507,7 +507,7 @@
                                      % (subrelpath(self), srcurl))
                 parentrepo = self._repo._subparent
                 shutil.rmtree(self._repo.path)
-                other, cloned = hg.clone(self._repo._subparent.ui, {},
+                other, cloned = hg.clone(self._repo._subparent.baseui, {},
                                          other, self._repo.root,
                                          update=False)
                 self._repo = cloned.local()


More information about the Mercurial-devel mailing list