Mercurial > public > mercurial-scm > hg
diff mercurial/scmutil.py @ 46115:be3d8178251e
errors: raise InputError if an ambiguous revision id prefix is used
It's long bothered me that we include the "00changelog.i" part in a
message to the user. This fixes that along with the exit code.
Differential Revision: https://phab.mercurial-scm.org/D9600
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 09 Dec 2020 20:22:25 -0800 |
parents | 4d5e2fd53707 |
children | 17a695357270 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Thu Dec 10 01:18:15 2020 -0800 +++ b/mercurial/scmutil.py Wed Dec 09 20:22:25 2020 -0800 @@ -1798,7 +1798,7 @@ k = encoding.tolocal(k) try: data[revsingle(repo, k).rev()] = encoding.tolocal(v) - except (error.LookupError, error.RepoLookupError): + except (error.LookupError, error.RepoLookupError, error.InputError): pass # we ignore data for nodes that don't exist locally finally: if proc: