##// END OF EJS Templates
lock: turn a lock into a Python context manager...
lock: turn a lock into a Python context manager This lets us greatly simply acquire/release cycles. Code pattern before: try: lock = repo.lock() # zillions of lines of code finally: lock.release() And after: with repo.lock(): # ...

File last commit:

r16438:28a90cdf default
r27797:054abf23 default
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer