changeset 26355:f51713b8c6fa

error: add an exception to indicate lock inheritance API contract violations
author Siddharth Agarwal <sid0@fb.com>
date Thu, 24 Sep 2015 10:53:16 -0700
parents c1fb2cab6260
children 927fa07a2ba4
files mercurial/error.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/error.py	Thu Sep 24 15:52:11 2015 -0700
+++ b/mercurial/error.py	Thu Sep 24 10:53:16 2015 -0700
@@ -114,6 +114,10 @@
 class LockUnavailable(LockError):
     pass
 
+# LockError is for errors while acquiring the lock -- this is unrelated
+class LockInheritanceContractViolation(AssertionError):
+    pass
+
 class ResponseError(Exception):
     """Raised to print an error with part of output and exit."""