Mercurial > hg
diff hgext/largefiles/overrides.py @ 48118:5105a9975407
errors: raise InputError from revsingle() iff revset provided by the user
Same reasoning as for `revrange()` in an earlier patch.
Differential Revision: https://phab.mercurial-scm.org/D11562
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Sep 2021 15:11:22 -0700 |
parents | 5ced12cfa41b |
children | df3021c1f093 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Tue Sep 28 13:59:01 2021 -0700 +++ b/hgext/largefiles/overrides.py Tue Sep 28 15:11:22 2021 -0700 @@ -1667,7 +1667,7 @@ @eh.wrapcommand(b'cat') def overridecat(orig, ui, repo, file1, *pats, **opts): opts = pycompat.byteskwargs(opts) - ctx = scmutil.revsingle(repo, opts.get(b'rev')) + ctx = logcmdutil.revsingle(repo, opts.get(b'rev')) err = 1 notbad = set() m = scmutil.match(ctx, (file1,) + pats, opts)