--- a/hgext/fastannotate/commands.py Tue Sep 28 13:59:01 2021 -0700
+++ b/hgext/fastannotate/commands.py Tue Sep 28 15:11:22 2021 -0700
@@ -15,6 +15,7 @@
encoding,
error,
extensions,
+ logcmdutil,
patch,
pycompat,
registrar,
@@ -75,7 +76,7 @@
def bad(x, y):
raise error.Abort(b"%s: %s" % (x, y))
- ctx = scmutil.revsingle(repo, rev)
+ ctx = logcmdutil.revsingle(repo, rev)
m = scmutil.match(ctx, pats, opts, badfn=bad)
for p in ctx.walk(m):
yield p
@@ -317,7 +318,7 @@
)
if ui.configbool(b'fastannotate', b'unfilteredrepo'):
repo = repo.unfiltered()
- ctx = scmutil.revsingle(repo, rev)
+ ctx = logcmdutil.revsingle(repo, rev)
m = scmutil.match(ctx, pats, opts)
paths = list(ctx.walk(m))
if util.safehasattr(repo, 'prefetchfastannotate'):