Mercurial > public > mercurial-scm > hg
diff mercurial/merge.py @ 8748:f325574dad1a
merge: combine a copy and move case
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 08 Jun 2009 18:14:44 -0500 |
parents | 9b3fd8ab3558 |
children | 69caf50da4a0 |
line wrap: on
line diff
--- a/mercurial/merge.py Mon Jun 08 18:14:44 2009 -0500 +++ b/mercurial/merge.py Mon Jun 08 18:14:44 2009 -0500 @@ -199,11 +199,8 @@ if f2 not in m2: # directory rename act("remote renamed directory to " + f2, "d", f, None, f2, m1.flags(f)) - elif f2 in m1: # case 2 A,B/B/B - act("local copied to " + f2, "m", - f, f2, f, fmerge(f, f2, f2), False) - else: # case 4,21 A/B/B - act("local moved to " + f2, "m", + else: # case 2 A,B/B/B or case 4,21 A/B/B + act("local copied/moved to " + f2, "m", f, f2, f, fmerge(f, f2, f2), False) elif n[20:] == "a": # added, no remote act("remote deleted", "f", f)