Show More
@@ -39,17 +39,37 b' echo % should succeed' | |||
|
39 | 39 | echo % should give a 404 - repo is not published |
|
40 | 40 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/c/file/tip/c?style=raw' |
|
41 | 41 | |
|
42 | cat > paths.conf <<EOF | |
|
43 | [paths] | |
|
44 | t/a=$root/a | |
|
45 | b=$root/b | |
|
46 | EOF | |
|
47 | ||
|
48 | hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \ | |
|
49 | -A access-paths.log -E error-paths.log | |
|
50 | cat hg.pid >> $DAEMON_PIDS | |
|
51 | ||
|
52 | echo % should succeed, slashy names | |
|
53 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw' | |
|
54 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t?style=raw' | |
|
55 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw' | |
|
56 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom' \ | |
|
57 | | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" | |
|
58 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom' \ | |
|
59 | | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" | |
|
60 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/file/tip/a?style=raw' | |
|
61 | ||
|
42 | 62 | cat > collections.conf <<EOF |
|
43 | 63 | [collections] |
|
44 | 64 | $root=$root |
|
45 | 65 | EOF |
|
46 | 66 | |
|
47 |
hg serve -p $HGPORT |
|
|
67 | hg serve -p $HGPORT2 -d --pid-file=hg.pid --webdir-conf collections.conf \ | |
|
48 | 68 | -A access-collections.log -E error-collections.log |
|
49 | 69 | cat hg.pid >> $DAEMON_PIDS |
|
50 | 70 | |
|
51 | 71 | echo % should succeed |
|
52 |
"$TESTDIR/get-with-headers.py" localhost:$HGPORT |
|
|
53 |
"$TESTDIR/get-with-headers.py" localhost:$HGPORT |
|
|
54 |
"$TESTDIR/get-with-headers.py" localhost:$HGPORT |
|
|
55 |
"$TESTDIR/get-with-headers.py" localhost:$HGPORT |
|
|
72 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/?style=raw' | |
|
73 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/file/tip/a?style=raw' | |
|
74 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/b/file/tip/b?style=raw' | |
|
75 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/c/file/tip/c?style=raw' |
@@ -24,6 +24,84 b' 404 Not Found' | |||
|
24 | 24 | |
|
25 | 25 | |
|
26 | 26 | error: repository c not found |
|
27 | % should succeed, slashy names | |
|
28 | 200 Script output follows | |
|
29 | ||
|
30 | ||
|
31 | /b/ | |
|
32 | /t/a/ | |
|
33 | ||
|
34 | 200 Script output follows | |
|
35 | ||
|
36 | ||
|
37 | /t/a/ | |
|
38 | ||
|
39 | 200 Script output follows | |
|
40 | ||
|
41 | ||
|
42 | /t/a/ | |
|
43 | ||
|
44 | 200 Script output follows | |
|
45 | ||
|
46 | <?xml version="1.0" encoding="ascii"?> | |
|
47 | <feed xmlns="http://127.0.0.1/2005/Atom"> | |
|
48 | <!-- Changelog --> | |
|
49 | <id>http://127.0.0.1/t/a/</id> | |
|
50 | <link rel="self" href="http://127.0.0.1/t/a/atom-log"/> | |
|
51 | <link rel="alternate" href="http://127.0.0.1/t/a/"/> | |
|
52 | <title>t/a Changelog</title> | |
|
53 | <updated>1970-01-01T00:00:01+00:00</updated> | |
|
54 | ||
|
55 | <entry> | |
|
56 | <title>a</title> | |
|
57 | <id>http://127.0.0.1/mercurial/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id> | |
|
58 | <link href="http://127.0.0.1/t/a/rev/8580ff50825a50c8f716709acdf8de0deddcd6ab"/> | |
|
59 | <author> | |
|
60 | <name>test</name> | |
|
61 | <email>test</email> | |
|
62 | </author> | |
|
63 | <updated>1970-01-01T00:00:01+00:00</updated> | |
|
64 | <published>1970-01-01T00:00:01+00:00</published> | |
|
65 | <content type="xhtml"> | |
|
66 | <div xmlns="http://127.0.0.1/1999/xhtml"> | |
|
67 | <pre xml:space="preserve">a</pre> | |
|
68 | </div> | |
|
69 | </content> | |
|
70 | </entry> | |
|
71 | ||
|
72 | </feed> | |
|
73 | 200 Script output follows | |
|
74 | ||
|
75 | <?xml version="1.0" encoding="ascii"?> | |
|
76 | <feed xmlns="http://127.0.0.1/2005/Atom"> | |
|
77 | <!-- Changelog --> | |
|
78 | <id>http://127.0.0.1/t/a/</id> | |
|
79 | <link rel="self" href="http://127.0.0.1/t/a/atom-log"/> | |
|
80 | <link rel="alternate" href="http://127.0.0.1/t/a/"/> | |
|
81 | <title>t/a Changelog</title> | |
|
82 | <updated>1970-01-01T00:00:01+00:00</updated> | |
|
83 | ||
|
84 | <entry> | |
|
85 | <title>a</title> | |
|
86 | <id>http://127.0.0.1/mercurial/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id> | |
|
87 | <link href="http://127.0.0.1/t/a/rev/8580ff50825a50c8f716709acdf8de0deddcd6ab"/> | |
|
88 | <author> | |
|
89 | <name>test</name> | |
|
90 | <email>test</email> | |
|
91 | </author> | |
|
92 | <updated>1970-01-01T00:00:01+00:00</updated> | |
|
93 | <published>1970-01-01T00:00:01+00:00</published> | |
|
94 | <content type="xhtml"> | |
|
95 | <div xmlns="http://127.0.0.1/1999/xhtml"> | |
|
96 | <pre xml:space="preserve">a</pre> | |
|
97 | </div> | |
|
98 | </content> | |
|
99 | </entry> | |
|
100 | ||
|
101 | </feed> | |
|
102 | 200 Script output follows | |
|
103 | ||
|
104 | a | |
|
27 | 105 | % should succeed |
|
28 | 106 | 200 Script output follows |
|
29 | 107 |
General Comments 0
You need to be logged in to leave comments.
Login now