changeset 17876:f4ee2e959696 stable

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.
author Simon Heimberg <simohe@besonet.ch>
date Wed, 10 Oct 2012 01:18:06 +0200
parents 92ba3cd55be6
children 92bbb21d4b13
files mercurial/subrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Thu Oct 04 19:46:43 2012 +0200
+++ b/mercurial/subrepo.py	Wed Oct 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()