copies: revert d1cd09bb4d18 stable
authorMatt Mackall <mpm@selenic.com>
Sun, 31 Jan 2010 12:19:52 -0600
branchstable
changeset 10298 4a1034687ef7
parent 10295 44c923eeb81d
child 10302 00099580ca35
child 10308 4aa619c4c2c0
copies: revert d1cd09bb4d18 The behavior of rebase both before and after the fix was actually incorrect, and this change regressed other parts of copy behavior.
mercurial/copies.py
--- a/mercurial/copies.py	Thu Jan 28 23:07:28 2010 -0600
+++ b/mercurial/copies.py	Sun Jan 31 12:19:52 2010 -0600
@@ -154,7 +154,7 @@
                 break # no merge needed, quit early
             c2 = ctx(of, m2[of])
             cr = related(oc, c2, ca.rev())
-            if cr and (cr.path() == f or cr.path == c2.path()): # non-divergent
+            if of == f or of == c2.path(): # non-divergent
                 copy[f] = of
                 of = None
                 break