##// END OF EJS Templates
Fixed confused directory changing in test-http.
Thomas Arendsen Hein -
r2676:7c81e337 default
parent child Browse files
Show More
@@ -4,32 +4,31 b' hg init test'
4 4 cd test
5 5 echo foo>foo
6 6 hg commit -A -d '0 0' -m 1
7 hg --config server.uncompressed=True serve -p 20059 -d --pid-file=hg1.pid
8 cat hg1.pid >> $DAEMON_PIDS
9 hg serve -p 20060 -d --pid-file=hg2.pid
10 cat hg2.pid >> $DAEMON_PIDS
7 hg --config server.uncompressed=True serve -p 20059 -d --pid-file=../hg1.pid
8 hg serve -p 20060 -d --pid-file=../hg2.pid
11 9 cd ..
10 cat hg1.pid hg2.pid >> $DAEMON_PIDS
12 11
13 12 echo % clone via stream
14 13 http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \
15 14 sed -e 's/[0-9][0-9.]*/XXX/g'
16 cd copy
17 hg verify
15 hg verify -R copy
18 16
19 17 echo % try to clone via stream, should use pull instead
20 18 http_proxy= hg clone --uncompressed http://localhost:20060/ copy2
21 19
22 20 echo % clone via pull
23 21 http_proxy= hg clone http://localhost:20059/ copy-pull
24 cd copy-pull
25 hg verify
22 hg verify -R copy-pull
26 23
27 24 cd test
28 25 echo bar > bar
29 26 hg commit -A -d '1 0' -m 2
27 cd ..
30 28
31 29 echo % pull
32 cd ../copy-pull
30 cd copy-pull
33 31 echo '[hooks]' >> .hg/hgrc
34 32 echo 'changegroup = echo changegroup: u=$HG_URL' >> .hg/hgrc
35 33 hg pull
34 cd ..
@@ -28,9 +28,13 b' checking manifests'
28 28 crosschecking files in changesets and manifests
29 29 checking files
30 30 1 files, 1 changesets, 1 total revisions
31 /home/bos/hg/hg/hg-url/tests/test-http: line 27: cd: test: No such file or directory
32 31 adding bar
33 32 % pull
33 changegroup: u=http://localhost:20059/
34 34 pulling from http://localhost:20059/
35 35 searching for changes
36 no changes found
36 adding changesets
37 adding manifests
38 adding file changes
39 added 1 changesets with 1 changes to 1 files
40 (run 'hg update' to get a working copy)
General Comments 0
You need to be logged in to leave comments. Login now