Mercurial > public > mercurial-scm > hg-stable
diff hgext/extdiff.py @ 48129: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 | 728d89f6f9b1 |
children | 5105a9975407 |
line wrap: on
line diff
--- a/hgext/extdiff.py Tue Sep 28 08:47:11 2021 -0700 +++ b/hgext/extdiff.py Tue Sep 28 13:59:01 2021 -0700 @@ -101,6 +101,7 @@ error, filemerge, formatter, + logcmdutil, pycompat, registrar, scmutil, @@ -568,7 +569,7 @@ ctx1b = repo[nullrev] ctx2 = scmutil.revsingle(repo, to_rev, None) else: - ctx1a, ctx2 = scmutil.revpair(repo, revs) + ctx1a, ctx2 = logcmdutil.revpair(repo, revs) if not revs: ctx1b = repo[None].p2() else: