diff -r 81b4e7c866ec -r 4ebc5f325bed mercurial/logcmdutil.py --- a/mercurial/logcmdutil.py Wed Sep 09 14:48:55 2020 -0400 +++ b/mercurial/logcmdutil.py Fri Sep 11 14:41:05 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):