Show More
@@ -1,41 +1,41 b'' | |||||
1 | #if unix-permissions no-root no-windows |
|
1 | #if unix-permissions no-root no-windows | |
2 |
|
2 | |||
3 | Prepare |
|
3 | Prepare | |
4 |
|
4 | |||
5 | $ hg init a |
|
5 | $ hg init a | |
6 | $ echo a > a/a |
|
6 | $ echo a > a/a | |
7 | $ hg -R a ci -A -m a |
|
7 | $ hg -R a ci -A -m a | |
8 | adding a |
|
8 | adding a | |
9 |
|
9 | |||
10 | $ hg clone a b |
|
10 | $ hg clone a b | |
11 | updating to branch default |
|
11 | updating to branch default | |
12 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
12 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
13 |
|
13 | |||
14 | One process waiting for another |
|
14 | One process waiting for another | |
15 |
|
15 | |||
16 | $ cat > hooks.py << EOF |
|
16 | $ cat > hooks.py << EOF | |
17 | > import time |
|
17 | > import time | |
18 | > def sleepone(**x): time.sleep(1) |
|
18 | > def sleepone(**x): time.sleep(1) | |
19 | > def sleephalf(**x): time.sleep(0.5) |
|
19 | > def sleephalf(**x): time.sleep(0.5) | |
20 | > EOF |
|
20 | > EOF | |
21 | $ echo b > b/b |
|
21 | $ echo b > b/b | |
22 | $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout & |
|
22 | $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout & | |
23 | $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf" |
|
23 | $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf" | |
24 | waiting for lock on working directory of b held by '*:*' (glob) |
|
24 | waiting for lock on working directory of b held by '*:*' (glob) | |
25 |
got lock after |
|
25 | got lock after ? seconds (glob) | |
26 | warning: ignoring unknown working parent d2ae7f538514! |
|
26 | warning: ignoring unknown working parent d2ae7f538514! | |
27 | $ wait |
|
27 | $ wait | |
28 | $ cat stdout |
|
28 | $ cat stdout | |
29 | adding b |
|
29 | adding b | |
30 |
|
30 | |||
31 | Pushing to a local read-only repo that can't be locked |
|
31 | Pushing to a local read-only repo that can't be locked | |
32 |
|
32 | |||
33 | $ chmod 100 a/.hg/store |
|
33 | $ chmod 100 a/.hg/store | |
34 |
|
34 | |||
35 | $ hg -R b push a |
|
35 | $ hg -R b push a | |
36 | pushing to a |
|
36 | pushing to a | |
37 | abort: could not lock repository a: Permission denied |
|
37 | abort: could not lock repository a: Permission denied | |
38 | [255] |
|
38 | [255] | |
39 |
|
39 | |||
40 | $ chmod 700 a/.hg/store |
|
40 | $ chmod 700 a/.hg/store | |
41 | #endif |
|
41 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now