diff mercurial/commands.py @ 48117:b74e128676d4

errors: raise InputError from revpair() iff revset provided by the user Same reasoning as for `revrange()` in an earlier patch. Differential Revision: https://phab.mercurial-scm.org/D11561
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 28 Sep 2021 13:59:01 -0700
parents 5ced12cfa41b
children 5105a9975407
line wrap: on
line diff
--- 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'):