Skip to content
Snippets Groups Projects
Commit 751d1138 authored by Matt Mackall's avatar Matt Mackall
Browse files

copies: use linkrev for file tracing limit

This lets us lazily evaluate _adjustlinkrev.
parent 24b57c38
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment