Comments
Patch
@@ -765,6 +765,12 @@ class basefilectx(object):
# result is crash somewhere else at to some point.
return lkr
+ def isintroducedafter(self, changelogrev):
+ """True if a filectx have been introduced after a given floor revision
+ """
+ return (changelogrev <= self.linkrev()
+ or changelogrev <= self.introrev())
+
def _lazyrevavailable(self):
"""return True if self.rev() is available without computation,
@@ -139,7 +139,7 @@ def _tracefile(fctx, am, limit=-1):
for f in fctx.ancestors():
if am.get(f.path(), None) == f.filenode():
return f
- if limit >= 0 and f.linkrev() < limit and f.rev() < limit:
+ if limit >= 0 and not f.isintroducedafter(limit):
return None
def _dirstatecopies(d, match=None):