Show More
@@ -54,17 +54,15 b' synchronisation+output script:' | |||
|
54 | 54 | $ export HG_TEST_FILE_EXT_DONE |
|
55 | 55 | $ cat << EOF > script/external.sh |
|
56 | 56 | > #!/bin/sh |
|
57 |
> $RUNTESTDIR/testlib/wait-on-file 5 $ |
|
|
58 |
> hg log --rev 'tip' -T 'external: {rev} {desc}\n' > $ |
|
|
59 |
> touch $ |
|
|
57 | > "$RUNTESTDIR/testlib/wait-on-file" 5 "$HG_TEST_FILE_EXT_UNLOCK" "$HG_TEST_FILE_EXT_WAITING" | |
|
58 | > hg log --rev 'tip' -T 'external: {rev} {desc}\n' > "$TESTTMP/output/external.out" | |
|
59 | > touch "$HG_TEST_FILE_EXT_DONE" | |
|
60 | 60 | > EOF |
|
61 | $ chmod +x script/external.sh | |
|
62 | 61 | $ cat << EOF > script/internal.sh |
|
63 | 62 | > #!/bin/sh |
|
64 |
> hg log --rev 'tip' -T 'internal: {rev} {desc}\n' > $ |
|
|
65 |
> $RUNTESTDIR/testlib/wait-on-file 5 $ |
|
|
63 | > hg log --rev 'tip' -T 'internal: {rev} {desc}\n' > "$TESTTMP/output/internal.out" | |
|
64 | > "$RUNTESTDIR/testlib/wait-on-file" 5 "$HG_TEST_FILE_EXT_DONE" "$HG_TEST_FILE_EXT_UNLOCK" | |
|
66 | 65 | > EOF |
|
67 | $ chmod +x script/internal.sh | |
|
68 | 66 | |
|
69 | 67 | |
|
70 | 68 | Automated commands: |
@@ -74,7 +72,7 b' Automated commands:' | |||
|
74 | 72 | > rm -f $TESTTMP/output/* |
|
75 | 73 | > hg log --rev 'tip' -T 'pre-commit: {rev} {desc}\n' |
|
76 | 74 | > echo x >> a |
|
77 | > $TESTTMP/script/external.sh & hg commit -m "$1" | |
|
75 | > sh $TESTTMP/script/external.sh & hg commit -m "$1" | |
|
78 | 76 | > cat $TESTTMP/output/external.out |
|
79 | 77 | > cat $TESTTMP/output/internal.out |
|
80 | 78 | > hg log --rev 'tip' -T 'post-tr: {rev} {desc}\n' |
@@ -86,7 +84,7 b' Automated commands:' | |||
|
86 | 84 | > rm -f $TESTTMP/output/* |
|
87 | 85 | > hg log --rev 'tip' -T 'pre-commit: {rev} {desc}\n' |
|
88 | 86 | > echo x >> a |
|
89 | > $TESTTMP/script/external.sh & hg pull ../other-repo/ --rev "$1" --force --quiet | |
|
87 | > sh $TESTTMP/script/external.sh & hg pull ../other-repo/ --rev "$1" --force --quiet | |
|
90 | 88 | > cat $TESTTMP/output/external.out |
|
91 | 89 | > cat $TESTTMP/output/internal.out |
|
92 | 90 | > hg log --rev 'tip' -T 'post-tr: {rev} {desc}\n' |
@@ -122,7 +120,7 b' prepare a small extension to controll in' | |||
|
122 | 120 | > [extensions] |
|
123 | 121 | > small_inline=$TESTTMP/ext/small_inline.py |
|
124 | 122 | > [hooks] |
|
125 | > pretxnclose = $TESTTMP/script/internal.sh | |
|
123 | > pretxnclose = sh $TESTTMP/script/internal.sh | |
|
126 | 124 | > EOF |
|
127 | 125 | |
|
128 | 126 | check this is true for the initial commit (inline → inline) |
General Comments 0
You need to be logged in to leave comments.
Login now