Mercurial > public > mercurial-scm > hg
comparison mercurial/error.py @ 38841: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 | fe81af15675a |
children | 07b58266bce3 |
comparison
equal
deleted
inserted
replaced
38840:794afa91f0a5 | 38841:df0873ab5c14 |
---|---|
55 def __bytes__(self): | 55 def __bytes__(self): |
56 return RevlogError.__bytes__(self) | 56 return RevlogError.__bytes__(self) |
57 | 57 |
58 def __str__(self): | 58 def __str__(self): |
59 return RevlogError.__str__(self) | 59 return RevlogError.__str__(self) |
60 | |
61 class AmbiguousPrefixLookupError(LookupError): | |
62 pass | |
60 | 63 |
61 class FilteredLookupError(LookupError): | 64 class FilteredLookupError(LookupError): |
62 pass | 65 pass |
63 | 66 |
64 class ManifestLookupError(LookupError): | 67 class ManifestLookupError(LookupError): |