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