# HG changeset patch # User Mads Kiilerich # Date 2013-01-15 00:05:12 # Node ID 6ba58ab719e54bda16b9ac4e851a5b14e5d8ab56 # Parent e68cec5e28b0410ad096634e37b9816ebdc752c1 merge: .hgsubstate is special as merge destination, not as merge source diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -342,7 +342,7 @@ def applyupdates(repo, actions, wctx, mc f, m = a[:2] if m == "m": # merge f2, fd, flags, move = a[2:] - if f == '.hgsubstate': # merged internally + if fd == '.hgsubstate': # merged internally continue repo.ui.debug("preserving %s for resolve of %s\n" % (f, fd)) fcl = wctx[f] @@ -388,7 +388,7 @@ def applyupdates(repo, actions, wctx, mc (f, inst.strerror)) removed += 1 elif m == "m": # merge - if f == '.hgsubstate': # subrepo states need updating + if fd == '.hgsubstate': # subrepo states need updating subrepo.submerge(repo, wctx, mctx, wctx.ancestor(mctx), overwrite) continue