[PATCH 1 of 4] subrepo: load from a context where the subrepo exists
Augie Fackler
durin42 at gmail.com
Thu Dec 31 23:54:42 UTC 2009
# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1262298634 21600
# Node ID a80612294c2e50e27852636e3fd7e0cfe832c988
# Parent 65b6dc44cdbf420bd8e9436972a618bb122dd6d3
subrepo: load from a context where the subrepo exists
diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -45,6 +45,7 @@
for s in sorted(state)]), '')
def submerge(repo, wctx, mctx, actx):
+ # working context, merging context, ancestor context
if mctx == actx: # backwards?
actx = wctx.p1()
s1 = wctx.substate
@@ -105,7 +106,7 @@
continue
elif s not in sa:
debug(s, "remote added, get", r)
- wctx.sub(s).get(r)
+ mctx.sub(s).get(r)
sm[s] = r
elif r != sa[s]:
if repo.ui.promptchoice(
More information about the Mercurial-devel
mailing list