diff mercurial/copies.py @ 23982:751d1138ce35 stable

copies: use linkrev for file tracing limit This lets us lazily evaluate _adjustlinkrev.
author Matt Mackall <mpm@selenic.com>
date Sun, 01 Feb 2015 16:25:12 -0600
parents c1ce5442453f
children a63c2b159df4 9372180b8c9b
line wrap: on
line diff
--- a/mercurial/copies.py	Sun Feb 01 16:23:07 2015 -0600
+++ b/mercurial/copies.py	Sun Feb 01 16:25:12 2015 -0600
@@ -133,7 +133,7 @@
     for f in fctx.ancestors():
         if am.get(f.path(), None) == f.filenode():
             return f
-        if f.rev() < limit:
+        if limit >= 0 and f.linkrev() < limit and f.rev() < limit:
             return None
 
 def _dirstatecopies(d):