##// END OF EJS Templates
tests: move a multi-statement debuglocks hook into a shell script for Windows...
Matt Harbison -
r23349:7dd18701 default
parent child Browse files
Show More
@@ -1,34 +1,38 b''
1 1 $ hg init 1
2 2
3 3 $ echo '[ui]' >> 1/.hg/hgrc
4 4 $ echo 'timeout = 10' >> 1/.hg/hgrc
5 5
6 6 $ echo foo > 1/foo
7 7 $ hg --cwd 1 ci -A -m foo
8 8 adding foo
9 9
10 10 $ hg clone 1 2
11 11 updating to branch default
12 12 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
13 13
14 14 $ hg clone 2 3
15 15 updating to branch default
16 16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
17 17
18 $ cat <<EOF > $TESTTMP/debuglocks-pretxn-hook.sh
19 > hg debuglocks
20 > true
21 > EOF
18 22 $ echo '[hooks]' >> 2/.hg/hgrc
19 $ echo 'pretxnchangegroup.a = hg debuglocks; true' >> 2/.hg/hgrc
23 $ echo "pretxnchangegroup.a = sh $TESTTMP/debuglocks-pretxn-hook.sh" >> 2/.hg/hgrc
20 24 $ echo 'changegroup.push = hg push -qf ../1' >> 2/.hg/hgrc
21 25
22 26 $ echo bar >> 3/foo
23 27 $ hg --cwd 3 ci -m bar
24 28
25 29 $ hg --cwd 3 push ../2
26 30 pushing to ../2
27 31 searching for changes
28 32 adding changesets
29 33 adding manifests
30 34 adding file changes
31 35 added 1 changesets with 1 changes to 1 files
32 36 lock: user *, process * (*s) (glob)
33 37 wlock: free
34 38
General Comments 0
You need to be logged in to leave comments. Login now