error: add an exception to indicate lock inheritance API contract violations
authorSiddharth Agarwal <sid0@fb.com>
Thu, 24 Sep 2015 10:53:16 -0700
changeset 26355 f51713b8c6fa
parent 26354 c1fb2cab6260
child 26356 927fa07a2ba4
error: add an exception to indicate lock inheritance API contract violations
mercurial/error.py
--- 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."""