Mercurial > hg
comparison tests/test-push-http.t @ 17842:a029dac38942 stable
test-push-http: fix failing test on Windows
The test failed due to problems with escaping. Fixes 8474be4412ca.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 19 Oct 2012 15:03:35 +0200 |
parents | 8474be4412ca |
children | 63659b809021 |
comparison
equal
deleted
inserted
replaced
17841:e99a451270e6 | 17842:a029dac38942 |
---|---|
107 $ hg rollback | 107 $ hg rollback |
108 repository tip rolled back to revision 0 (undo serve) | 108 repository tip rolled back to revision 0 (undo serve) |
109 | 109 |
110 expect push success, phase change failure | 110 expect push success, phase change failure |
111 | 111 |
112 $ echo '[web]' > .hg/hgrc | 112 $ cat > .hg/hgrc <<EOF |
113 $ echo 'push_ssl = false' >> .hg/hgrc | 113 > [web] |
114 $ echo 'allow_push = *' >> .hg/hgrc | 114 > push_ssl = false |
115 $ echo '[hooks]' >> .hg/hgrc | 115 > allow_push = * |
116 $ echo 'prepushkey = python "$TESTDIR/printenv.py" prepushkey 1' >> .hg/hgrc | 116 > [hooks] |
117 > prepushkey = python "$TESTDIR/printenv.py" prepushkey 1 | |
118 > EOF | |
117 $ req | 119 $ req |
118 pushing to http://localhost:$HGPORT/ | 120 pushing to http://localhost:$HGPORT/ |
119 searching for changes | 121 searching for changes |
120 remote: adding changesets | 122 remote: adding changesets |
121 remote: adding manifests | 123 remote: adding manifests |
125 updating ba677d0156c1 to public failed! | 127 updating ba677d0156c1 to public failed! |
126 % serve errors | 128 % serve errors |
127 | 129 |
128 expect phase change success | 130 expect phase change success |
129 | 131 |
130 $ echo 'prepushkey = python "$TESTDIR/printenv.py" prepushkey 0' >> .hg/hgrc | 132 $ echo "prepushkey = python \"$TESTDIR/printenv.py\" prepushkey 0" >> .hg/hgrc |
131 $ req | 133 $ req |
132 pushing to http://localhost:$HGPORT/ | 134 pushing to http://localhost:$HGPORT/ |
133 searching for changes | 135 searching for changes |
134 no changes found | 136 no changes found |
135 remote: prepushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 | 137 remote: prepushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 |