Mercurial > public > mercurial-scm > hg
comparison mercurial/logcmdutil.py @ 45458:4532e7ebde4d
merge with stable
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 14 Sep 2020 19:39:51 +0900 |
parents | 4aa484efc926 4ebc5f325bed |
children | a03fde1077ce |
comparison
equal
deleted
inserted
replaced
45457:d2b5a7659fff | 45458:4532e7ebde4d |
---|---|
751 # revision, stored in "fcache". "fcache" is populated as a side effect | 751 # revision, stored in "fcache". "fcache" is populated as a side effect |
752 # of the graph traversal. | 752 # of the graph traversal. |
753 fcache = {} | 753 fcache = {} |
754 | 754 |
755 def filematcher(ctx): | 755 def filematcher(ctx): |
756 return scmutil.matchfiles(repo, fcache.get(ctx.rev(), [])) | 756 return scmutil.matchfiles(repo, fcache.get(scmutil.intrev(ctx), [])) |
757 | 757 |
758 def revgen(): | 758 def revgen(): |
759 for rev, cs in dagop.filectxancestors(fctxs, followfirst=followfirst): | 759 for rev, cs in dagop.filectxancestors(fctxs, followfirst=followfirst): |
760 fcache[rev] = [c.path() for c in cs] | 760 fcache[rev] = [c.path() for c in cs] |
761 yield rev | 761 yield rev |