# HG changeset patch # User Siddharth Agarwal # Date 1443117196 25200 # Node ID f51713b8c6fa33919b14f25ee73d030915dbf480 # Parent c1fb2cab626066fc365203b21d7e0cf9ff1724d1 error: add an exception to indicate lock inheritance API contract violations diff -r c1fb2cab6260 -r f51713b8c6fa 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."""