diff mercurial/copies.py @ 25289:6ac860f700b5

merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 26 May 2015 14:52:47 -0500
parents 947771ad5174 708b19c18adf
children cfc24c22454e
line wrap: on
line diff
--- a/mercurial/copies.py	Fri May 22 14:02:04 2015 -0700
+++ b/mercurial/copies.py	Tue May 26 14:52:47 2015 -0500
@@ -451,7 +451,7 @@
 
         g1, g2 = f1.ancestors(), f2.ancestors()
         try:
-            f1r, f2r = f1.rev(), f2.rev()
+            f1r, f2r = f1.linkrev(), f2.linkrev()
 
             if f1r is None:
                 f1 = g1.next()
@@ -459,7 +459,7 @@
                 f2 = g2.next()
 
             while True:
-                f1r, f2r = f1.rev(), f2.rev()
+                f1r, f2r = f1.linkrev(), f2.linkrev()
                 if f1r > f2r:
                     f1 = g1.next()
                 elif f2r > f1r:
@@ -474,7 +474,7 @@
     of = None
     seen = set([f])
     for oc in ctx(f, m1[f]).ancestors():
-        ocr = oc.rev()
+        ocr = oc.linkrev()
         of = oc.path()
         if of in seen:
             # check limit late - grab last rename before