Mercurial > public > mercurial-scm > hg-stable
diff mercurial/merge.py @ 4304:4787e2b0dd03
merge: fix a bug where copies were ignored
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 05 Apr 2007 16:43:18 -0500 |
parents | 7e1c8a565a4f |
children | 5e05007d3857 8aee687f0214 |
line wrap: on
line diff
--- a/mercurial/merge.py Fri Mar 23 00:12:28 2007 -0500 +++ b/mercurial/merge.py Thu Apr 05 16:43:18 2007 -0500 @@ -129,15 +129,15 @@ '''check possible copies for filectx c''' for of in findold(c): if of not in man: - return + continue c2 = ctx(of, man[of]) ca = c.ancestor(c2) if not ca: # unrelated - return + continue if ca.path() == c.path() or ca.path() == c2.path(): fullcopy[c.path()] = of - if c == ca or c2 == ca: # no merge needed, ignore copy - return + if c == ca and c2 == ca: # no merge needed, ignore copy + continue copy[c.path()] = of def dirs(files):