Show More
@@ -1,5 +1,3 b'' | |||
|
1 | $ "$TESTDIR/hghave" system-sh || exit 80 | |
|
2 | ||
|
3 | 1 | Verify that pending changesets are seen by pretxn* hooks but not by other |
|
4 | 2 | processes that access the destination repo while the hooks are running. |
|
5 | 3 | |
@@ -62,7 +60,6 b' python hook' | |||
|
62 | 60 | external hook |
|
63 | 61 | |
|
64 | 62 | $ cat <<EOF > reject.sh |
|
65 | > #! /bin/sh | |
|
66 | 63 | > printf 'hook '; hg tip --template '{node}\\n' |
|
67 | 64 | > # create the notify file so caller knows we're running |
|
68 | 65 | > fpath=$d/notify |
@@ -75,7 +72,6 b' external hook' | |||
|
75 | 72 | > done |
|
76 | 73 | > exit 1 # reject the changesets |
|
77 | 74 | > EOF |
|
78 | $ chmod +x reject.sh | |
|
79 | 75 | |
|
80 | 76 | create repos |
|
81 | 77 | |
@@ -107,7 +103,7 b' test external hook' | |||
|
107 | 103 | |
|
108 | 104 | $ cat <<EOF > parent/.hg/hgrc |
|
109 | 105 | > [hooks] |
|
110 | > pretxnchangegroup = $d/reject.sh | |
|
106 | > pretxnchangegroup = sh $d/reject.sh | |
|
111 | 107 | > EOF |
|
112 | 108 | |
|
113 | 109 | $ dotest |
General Comments 0
You need to be logged in to leave comments.
Login now