Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 38880:df0873ab5c14
revlog: use specialized exception for ambiguous prefix lookup
It's useful to be able to catch a specific exception for this
case. We'll use it soon.
Differential Revision: https://phab.mercurial-scm.org/D4036
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 13 Apr 2018 23:37:53 -0700 |
parents | a232e6744ba3 |
children | ad24b581e4d9 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Aug 02 22:44:41 2018 +0300 +++ b/mercurial/localrepo.py Fri Apr 13 23:37:53 2018 -0700 @@ -860,7 +860,8 @@ def __contains__(self, changeid): """True if the given changeid exists - error.LookupError is raised if an ambiguous node specified. + error.AmbiguousPrefixLookupError is raised if an ambiguous node + specified. """ try: self[changeid]