Submitter | phabricator |
---|---|
Date | May 3, 2019, 5:55 a.m. |
Message ID | <differential-rev-PHID-DREV-5rbbn6d2kzwov46pfe7t-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/39926/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -152,14 +152,14 @@ return t -def _tracefile(fctx, am, limit=node.nullrev): +def _tracefile(fctx, am, limit): """return file context that is the ancestor of fctx present in ancestor manifest am, stopping after the first ancestor lower than limit""" for f in fctx.ancestors(): if am.get(f.path(), None) == f.filenode(): return f - if limit >= 0 and not f.isintroducedafter(limit): + if not f.isintroducedafter(limit): return None def _dirstatecopies(repo, match=None):