annotate mercurial/repo.py @ 1787:e431344e604c
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
author |
Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
date |
Tue, 21 Feb 2006 23:21:15 +0100 |
parents |
142b5d5ec9cc |
children |
ffb895f16925 |
rev |
line source |
1089
|
1 # repo.py - repository base classes for mercurial
|
|
2 #
|
|
3 # Copyright 2005 Matt Mackall <mpm@selenic.com>
|
|
4 #
|
|
5 # This software may be used and distributed according to the terms
|
|
6 # of the GNU General Public License, incorporated herein by reference.
|
|
7
|
|
8 class RepoError(Exception): pass
|