mercurial/copies.py
changeset 39945 85c8ff26d698
parent 39366 a41497b5117c
child 39966 707c3804e607
--- a/mercurial/copies.py	Sat Sep 15 22:56:57 2018 -0700
+++ b/mercurial/copies.py	Thu Jun 21 22:07:34 2018 -0700
@@ -816,11 +816,10 @@
     of = None
     seen = {f}
     for oc in getsrcfctx(f, msrc[f]).ancestors():
-        ocr = oc.linkrev()
         of = oc.path()
         if of in seen:
             # check limit late - grab last rename before
-            if ocr < limit:
+            if oc.linkrev() < limit:
                 break
             continue
         seen.add(of)