diff tests/autodiff.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 2372284d9457
children 6000f5b25c9b
line wrap: on
line diff
--- a/tests/autodiff.py	Tue Sep 28 08:47:11 2021 -0700
+++ b/tests/autodiff.py	Tue Sep 28 13:59:01 2021 -0700
@@ -4,6 +4,7 @@
 
 from mercurial import (
     error,
+    logcmdutil,
     patch,
     pycompat,
     registrar,
@@ -49,7 +50,7 @@
     else:
         raise error.Abort(b'--git must be yes, no or auto')
 
-    ctx1, ctx2 = scmutil.revpair(repo, [])
+    ctx1, ctx2 = logcmdutil.revpair(repo, [])
     m = scmutil.match(ctx2, pats, opts)
     it = patch.diff(
         repo,