##// END OF EJS Templates
test-push-http: use printenv.py
Alexis S. L. Carvalho -
r4288:8a3e1242 default
parent child Browse files
Show More
@@ -1,15 +1,17 b''
1 1 #!/bin/sh
2 2
3 cp "$TESTDIR"/printenv.py .
4
3 5 hg init test
4 6 cd test
5 7 echo a > a
6 hg ci -Ama
8 hg ci -Ama -d '0 0'
7 9
8 10 cd ..
9 11 hg clone test test2
10 12 cd test2
11 13 echo a >> a
12 hg ci -mb
14 hg ci -mb -d '0 0'
13 15
14 16 cd ../test
15 17
@@ -37,14 +39,14 b' kill `cat hg.pid`'
37 39 echo % expect success
38 40 echo 'allow_push = *' >> .hg/hgrc
39 41 echo '[hooks]' >> .hg/hgrc
40 echo 'changegroup = echo changegroup: u=$HG_URL >> $HGTMP/urls' >> .hg/hgrc
42 echo 'changegroup = python ../printenv.py changegroup 0 ../urls' >> .hg/hgrc
41 43 hg serve -p 20059 -d --pid-file=hg.pid
42 44 cat hg.pid >> $DAEMON_PIDS
43 45 hg --cwd ../test2 push http://localhost:20059/
44 46 kill `cat hg.pid`
45 47 hg rollback
46 48
47 sed 's/\(remote:http.*\):.*/\1/' $HGTMP/urls
49 cat ../urls
48 50
49 51 echo % expect authorization error: all users denied
50 52 echo '[web]' > .hg/hgrc
@@ -20,7 +20,7 b' adding manifests'
20 20 adding file changes
21 21 added 1 changesets with 1 changes to 1 files
22 22 rolling back last transaction
23 changegroup: u=remote:http
23 changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_URL=remote:http
24 24 % expect authorization error: all users denied
25 25 pushing to http://localhost:20059/
26 26 searching for changes
General Comments 0
You need to be logged in to leave comments. Login now