Mercurial > hg
diff mercurial/vfs.py @ 45434:5523e3e1bc71
statichttprepo: use LockUnavailable() instead of Abort() for lock (API)
If we try to get a lock on statichttprepo, we get `error.Abort()` instead of
subclass of `error.LockError()`. The callers which catches `error.LockError`
fails to catch this case as the correct error is not raised.
Raising `error.LockUnavaible()` is same as what is done for wlock also.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 10 Sep 2020 13:37:35 +0530 |
parents | 77d48738b8e0 |
children | 89a2afe31e82 |