--- a/hgext/churn.py Thu Sep 10 17:14:03 2020 +0900
+++ b/hgext/churn.py Thu Sep 10 18:01:43 2020 +0900
@@ -23,7 +23,6 @@
patch,
pycompat,
registrar,
- scmutil,
)
from mercurial.utils import dateutil
@@ -76,8 +75,6 @@
if opts.get(b'date'):
df = dateutil.matchdate(opts[b'date'])
- m = scmutil.match(repo[None], pats, opts)
-
def prep(ctx, fmatch):
rev = ctx.rev()
if df and not df(ctx.date()[0]): # doesn't match date format
@@ -99,7 +96,15 @@
progress.increment()
- for ctx in cmdutil.walkchangerevs(repo, m, opts, prep):
+ wopts = logcmdutil.walkopts(
+ pats=pats,
+ opts=opts,
+ revspec=opts[b'rev'],
+ include_pats=opts[b'include'],
+ exclude_pats=opts[b'exclude'],
+ )
+ revs, makefilematcher = logcmdutil.makewalker(repo, wopts)
+ for ctx in cmdutil.walkchangerevs(repo, revs, makefilematcher, prep):
continue
progress.complete()