add a timeout when a lock is held (default 1024 sec)
- change the wait keyword from lock.lock to timeout,
a negative timeout of means "wait forever"
- refactor the two lock functions from localrepo.py
- make them use the timeout (default 1024, can be changed
with ui.timeout in the config file
- update the doc
Added test cases for repo corruption fixed in
2e0a288ca93e (
issue132)
(submitted by Alexis S. L. Carvalho <alexis@cecm.usp.br>)