diff -r d2b5a7659fff -r 4532e7ebde4d mercurial/logcmdutil.py --- a/mercurial/logcmdutil.py Sun Sep 13 17:52:24 2020 +0900 +++ b/mercurial/logcmdutil.py Mon Sep 14 19:39:51 2020 +0900 @@ -753,7 +753,7 @@ fcache = {} def filematcher(ctx): - return scmutil.matchfiles(repo, fcache.get(ctx.rev(), [])) + return scmutil.matchfiles(repo, fcache.get(scmutil.intrev(ctx), [])) def revgen(): for rev, cs in dagop.filectxancestors(fctxs, followfirst=followfirst):