diff 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
line wrap: on
line diff
--- a/mercurial/error.py	Thu Aug 02 22:44:41 2018 +0300
+++ b/mercurial/error.py	Fri Apr 13 23:37:53 2018 -0700
@@ -58,6 +58,9 @@
     def __str__(self):
         return RevlogError.__str__(self)
 
+class AmbiguousPrefixLookupError(LookupError):
+    pass
+
 class FilteredLookupError(LookupError):
     pass