view mercurial/__init__.py @ 26473:5f94e64f182c

lock: turn prepinherit/reacquire into a single context manager Review feedback from Pierre-Yves David. This makes the overall code cleaner and less error-prone, and makes a previously explicitly checked error state impossible.
author Siddharth Agarwal <sid0@fb.com>
date Sun, 04 Oct 2015 20:02:50 -0700
parents 9117c6561b0b
children 4374d819ccd5
line wrap: on
line source