--- a/mercurial/commands.py Tue Sep 28 08:47:11 2021 -0700
+++ b/mercurial/commands.py Tue Sep 28 13:59:01 2021 -0700
@@ -2610,7 +2610,7 @@
ctx2 = scmutil.revsingle(repo, to_rev, None)
else:
repo = scmutil.unhidehashlikerevs(repo, revs, b'nowarn')
- ctx1, ctx2 = scmutil.revpair(repo, revs)
+ ctx1, ctx2 = logcmdutil.revpair(repo, revs)
if reverse:
ctxleft = ctx2
@@ -6909,7 +6909,7 @@
ctx1 = ctx2.p1()
else:
repo = scmutil.unhidehashlikerevs(repo, revs, b'nowarn')
- ctx1, ctx2 = scmutil.revpair(repo, revs)
+ ctx1, ctx2 = logcmdutil.revpair(repo, revs)
forcerelativevalue = None
if ui.hasconfig(b'commands', b'status.relative'):