Mercurial > public > mercurial-scm > hg
diff hgext/children.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 | 687b865b95ad |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/hgext/children.py Tue Sep 28 13:59:01 2021 -0700 +++ b/hgext/children.py Tue Sep 28 15:11:22 2021 -0700 @@ -22,7 +22,6 @@ logcmdutil, pycompat, registrar, - scmutil, ) templateopts = cmdutil.templateopts @@ -71,7 +70,7 @@ """ opts = pycompat.byteskwargs(opts) rev = opts.get(b'rev') - ctx = scmutil.revsingle(repo, rev) + ctx = logcmdutil.revsingle(repo, rev) if file_: fctx = repo.filectx(file_, changeid=ctx.rev()) childctxs = [fcctx.changectx() for fcctx in fctx.children()]