##// 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(): # ...
Bryan O'Sullivan -
r27797:054abf23 default
Show More
Name Size Modified Last Commit Author
/ mercurial / templates / coal
header.tmpl Loading ...
map Loading ...