# HG changeset patch # User Simon Heimberg # Date 2012-10-09 23:18:06 # Node ID f4ee2e959696665c1e82d0145aef591db0dd05d2 # Parent 92ba3cd55be69a690c027c2c339ca928b61b8d03 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 --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -507,7 +507,7 @@ class hgsubrepo(abstractsubrepo): % (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()