Show More
@@ -786,6 +786,7 b' def main():' | |||||
786 | os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" |
|
786 | os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" | |
787 | os.environ['CDPATH'] = '' |
|
787 | os.environ['CDPATH'] = '' | |
788 | os.environ['COLUMNS'] = '80' |
|
788 | os.environ['COLUMNS'] = '80' | |
|
789 | os.environ['http_proxy'] = '' | |||
789 |
|
790 | |||
790 | global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE |
|
791 | global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE | |
791 | TESTDIR = os.environ["TESTDIR"] = os.getcwd() |
|
792 | TESTDIR = os.environ["TESTDIR"] = os.getcwd() |
@@ -58,9 +58,9 b" f = urllib2.urlopen('http://127.0.0.1:%s" | |||||
58 | % (os.environ['HGPORT'], node, archive)) |
|
58 | % (os.environ['HGPORT'], node, archive)) | |
59 | sys.stdout.write(f.read()) |
|
59 | sys.stdout.write(f.read()) | |
60 | EOF |
|
60 | EOF | |
61 |
|
|
61 | python getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" | |
62 |
|
|
62 | python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" | |
63 |
|
|
63 | python getarchive.py "$TIP" zip > archive.zip | |
64 | unzip -t archive.zip | sed "s/$QTIP/TIP/" |
|
64 | unzip -t archive.zip | sed "s/$QTIP/TIP/" | |
65 |
|
65 | |||
66 | "$TESTDIR/killdaemons.py" |
|
66 | "$TESTDIR/killdaemons.py" |
@@ -23,7 +23,7 b' echo $! >> $DAEMON_PIDS' | |||||
23 | # give the server some time to start running |
|
23 | # give the server some time to start running | |
24 | sleep 1 |
|
24 | sleep 1 | |
25 |
|
25 | |||
26 |
|
|
26 | hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \ | |
27 | sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' |
|
27 | sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' | |
28 | echo $? |
|
28 | echo $? | |
29 |
|
29 |
@@ -19,15 +19,15 b' cd ..' | |||||
19 | cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
19 | cat hg1.pid hg2.pid >> $DAEMON_PIDS | |
20 |
|
20 | |||
21 | echo % clone via stream |
|
21 | echo % clone via stream | |
22 |
|
|
22 | hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \ | |
23 | sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/' |
|
23 | sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/' | |
24 | hg verify -R copy |
|
24 | hg verify -R copy | |
25 |
|
25 | |||
26 | echo % try to clone via stream, should use pull instead |
|
26 | echo % try to clone via stream, should use pull instead | |
27 |
|
|
27 | hg clone --uncompressed http://localhost:$HGPORT1/ copy2 | |
28 |
|
28 | |||
29 | echo % clone via pull |
|
29 | echo % clone via pull | |
30 |
|
|
30 | hg clone http://localhost:$HGPORT1/ copy-pull | |
31 | hg verify -R copy-pull |
|
31 | hg verify -R copy-pull | |
32 |
|
32 | |||
33 | cd test |
|
33 | cd test |
@@ -14,8 +14,8 b' cd ..' | |||||
14 |
|
14 | |||
15 | hg init new |
|
15 | hg init new | |
16 | # http incoming |
|
16 | # http incoming | |
17 |
|
|
17 | hg -R new incoming http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' | |
18 |
|
|
18 | hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' | |
19 | # local incoming |
|
19 | # local incoming | |
20 | hg -R new incoming test |
|
20 | hg -R new incoming test | |
21 | hg -R new incoming -r 4 test |
|
21 | hg -R new incoming -r 4 test | |
@@ -25,7 +25,7 b' echo "% limit to 2 changesets, test with' | |||||
25 | hg -R new incoming -l 2 -p --git test |
|
25 | hg -R new incoming -l 2 -p --git test | |
26 |
|
26 | |||
27 | # test with --bundle |
|
27 | # test with --bundle | |
28 |
|
|
28 | hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' | |
29 | hg -R new incoming --bundle test2.hg test |
|
29 | hg -R new incoming --bundle test2.hg test | |
30 |
|
30 | |||
31 | # test the resulting bundles |
|
31 | # test the resulting bundles | |
@@ -50,5 +50,5 b' cd ..' | |||||
50 | hg -R test-dev outgoing test |
|
50 | hg -R test-dev outgoing test | |
51 | echo "% limit to 3 changesets" |
|
51 | echo "% limit to 3 changesets" | |
52 | hg -R test-dev outgoing -l 3 test |
|
52 | hg -R test-dev outgoing -l 3 test | |
53 |
|
|
53 | hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' | |
54 |
|
|
54 | hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' |
@@ -11,7 +11,7 b' hg serve -p $HGPORT -d --pid-file=hg.pid' | |||||
11 | cat hg.pid >> $DAEMON_PIDS |
|
11 | cat hg.pid >> $DAEMON_PIDS | |
12 | cd .. |
|
12 | cd .. | |
13 |
|
13 | |||
14 |
|
|
14 | hg clone --pull http://localhost:$HGPORT/ copy | sed -e 's,:[0-9][0-9]*/,/,' | |
15 | cd copy |
|
15 | cd copy | |
16 | hg verify |
|
16 | hg verify | |
17 | hg co |
|
17 | hg co |
@@ -2,7 +2,7 b'' | |||||
2 |
|
2 | |||
3 | cp "$TESTDIR"/printenv.py . |
|
3 | cp "$TESTDIR"/printenv.py . | |
4 |
|
4 | |||
5 |
|
|
5 | hg clone http://localhost:$HGPORT/ copy | |
6 | echo $? |
|
6 | echo $? | |
7 | test -d copy || echo copy: No such file or directory |
|
7 | test -d copy || echo copy: No such file or directory | |
8 |
|
8 | |||
@@ -34,7 +34,7 b' hg tip' | |||||
34 |
|
34 | |||
35 | cd .. |
|
35 | cd .. | |
36 |
|
36 | |||
37 |
|
|
37 | hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' | |
38 |
|
38 | |||
39 | cd local |
|
39 | cd local | |
40 | hg verify |
|
40 | hg verify | |
@@ -47,13 +47,13 b" hg commit -A -mtest2 -d '100000000 0'" | |||||
47 | cd ../local |
|
47 | cd ../local | |
48 | echo '[hooks]' >> .hg/hgrc |
|
48 | echo '[hooks]' >> .hg/hgrc | |
49 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc |
|
49 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc | |
50 |
|
|
50 | hg pull | sed -e 's,:[0-9][0-9]*/,/,' | |
51 |
|
51 | |||
52 | echo '% trying to push' |
|
52 | echo '% trying to push' | |
53 | hg update |
|
53 | hg update | |
54 | echo more foo >> bar |
|
54 | echo more foo >> bar | |
55 | hg commit -m"test" -d "100000000 0" |
|
55 | hg commit -m"test" -d "100000000 0" | |
56 |
|
|
56 | hg push | sed -e 's,:[0-9][0-9]*/,/,' | |
57 |
|
57 | |||
58 | echo '% test with "/" URI (issue 747)' |
|
58 | echo '% test with "/" URI (issue 747)' | |
59 | cd .. |
|
59 | cd .. | |
@@ -62,7 +62,7 b' echo a > a' | |||||
62 | hg add a |
|
62 | hg add a | |
63 | hg ci -ma |
|
63 | hg ci -ma | |
64 |
|
64 | |||
65 |
|
|
65 | hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' | |
66 |
|
66 | |||
67 | cd local2 |
|
67 | cd local2 | |
68 | hg verify |
|
68 | hg verify | |
@@ -73,7 +73,7 b" echo '% test with empty repo (issue965)'" | |||||
73 | cd .. |
|
73 | cd .. | |
74 | hg init remotempty |
|
74 | hg init remotempty | |
75 |
|
75 | |||
76 |
|
|
76 | hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' | |
77 |
|
77 | |||
78 | cd local3 |
|
78 | cd local3 | |
79 | hg verify |
|
79 | hg verify | |
@@ -82,6 +82,6 b" hg paths | sed -e 's,:[0-9][0-9]*/,/,'" | |||||
82 | echo '% test with non-repo' |
|
82 | echo '% test with non-repo' | |
83 | cd .. |
|
83 | cd .. | |
84 | mkdir notarepo |
|
84 | mkdir notarepo | |
85 |
|
|
85 | hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' | |
86 |
|
86 | |||
87 | kill $! |
|
87 | kill $! |
General Comments 0
You need to be logged in to leave comments.
Login now