[PATCH 7 of 8] subrepo: subrepo isolation, pass baseui when cloning a new subrepo
Simon Heimberg
simohe at besonet.ch
Mon Oct 22 09:56:01 UTC 2012
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1349824686 -7200
# Node ID 08562660dc781b82b2f6a324d7499fdd3dfec9b9
# Parent 02326c5dc9feb089d96cab2c6ab2ec6bb21d25cf
subrepo: subrepo isolation, pass baseui when cloning a new subrepo
Create the repo with baseui because it should only get the global configuration.
diff -r 02326c5dc9fe -r 08562660dc78 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