Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.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 | c62e4397eb28 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Sep 28 13:59:01 2021 -0700 +++ b/mercurial/cmdutil.py Tue Sep 28 15:11:22 2021 -0700 @@ -1480,7 +1480,7 @@ # TODO: Remove this restriction and make it also create the copy # targets (and remove the rename source if rename==True). raise error.InputError(_(b'--at-rev requires --after')) - ctx = scmutil.revsingle(repo, rev) + ctx = logcmdutil.revsingle(repo, rev) if len(ctx.parents()) > 1: raise error.InputError( _(b'cannot mark/unmark copy in merge commit')