changeset 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 24b57c3899f8
children ff070a53ee74
files mercurial/copies.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):