branch | stable |
changeset 23982 | 751d1138ce35 |
parent 23980 | c1ce5442453f |
child 24010 | a63c2b159df4 |
child 24412 | 9372180b8c9b |
--- 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):