Mercurial > hg
annotate tests/test-undo @ 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 | 0902ffece4b4 |
children | 7544700fd931 |
rev | line source |
---|---|
544
3d4d5f2aba9a
Remove bashisms and use /bin/sh instead of /bin/bash.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
350
diff
changeset
|
1 #!/bin/sh |
336 | 2 |
3 mkdir t | |
4 cd t | |
5 hg init | |
6 echo a > a | |
7 hg add a | |
749
7e4843b7efd2
Update tests to use commit -m and default -u
mpm@selenic.com
parents:
547
diff
changeset
|
8 hg commit -m "test" -d "0 0" |
336 | 9 hg verify |
10 hg parents | |
11 hg status | |
12 hg undo | |
13 hg verify | |
14 hg parents | |
15 hg status |