comparison 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
comparison
equal deleted inserted replaced
48117:b74e128676d4 48118:5105a9975407
1665 1665
1666 1666
1667 @eh.wrapcommand(b'cat') 1667 @eh.wrapcommand(b'cat')
1668 def overridecat(orig, ui, repo, file1, *pats, **opts): 1668 def overridecat(orig, ui, repo, file1, *pats, **opts):
1669 opts = pycompat.byteskwargs(opts) 1669 opts = pycompat.byteskwargs(opts)
1670 ctx = scmutil.revsingle(repo, opts.get(b'rev')) 1670 ctx = logcmdutil.revsingle(repo, opts.get(b'rev'))
1671 err = 1 1671 err = 1
1672 notbad = set() 1672 notbad = set()
1673 m = scmutil.match(ctx, (file1,) + pats, opts) 1673 m = scmutil.match(ctx, (file1,) + pats, opts)
1674 origmatchfn = m.matchfn 1674 origmatchfn = m.matchfn
1675 1675