author | Matt Mackall <mpm@selenic.com> |
Wed, 22 Sep 2010 17:13:49 -0500 | |
branch | stable |
changeset 12379 | 6aa2c86db2eb |
parent 12319 | 381f131220ad |
child 12381 | 5965f369314b |
permissions | -rw-r--r-- |
1166
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
1 |
adding foo |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
2 |
adding bar |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
3 |
adding baz/bletch |
7029
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
4 |
|
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
5 |
% gz allowed should give 200 |
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
6 |
200 Script output follows |
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
7 |
% tar.bz2 and zip disallowed should both give 403 |
9696
8cce2c8a40b6
fix tests output changed by 8269fe2d48f6
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
9614
diff
changeset
|
8 |
403 Archive type not allowed: bz2 |
8cce2c8a40b6
fix tests output changed by 8269fe2d48f6
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
9614
diff
changeset
|
9 |
403 Archive type not allowed: zip |
7029
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
10 |
% bz2 allowed should give 200 |
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
11 |
200 Script output follows |
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
12 |
% zip and tar.gz disallowed should both give 403 |
9696
8cce2c8a40b6
fix tests output changed by 8269fe2d48f6
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
9614
diff
changeset
|
13 |
403 Archive type not allowed: zip |
8cce2c8a40b6
fix tests output changed by 8269fe2d48f6
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
9614
diff
changeset
|
14 |
403 Archive type not allowed: gz |
7029
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
15 |
% zip allowed should give 200 |
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
16 |
200 Script output follows |
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
17 |
% tar.gz and tar.bz2 disallowed should both give 403 |
9696
8cce2c8a40b6
fix tests output changed by 8269fe2d48f6
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
9614
diff
changeset
|
18 |
403 Archive type not allowed: gz |
8cce2c8a40b6
fix tests output changed by 8269fe2d48f6
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
9614
diff
changeset
|
19 |
403 Archive type not allowed: bz2 |
7029
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
20 |
% invalid arch type should give 404 |
9696
8cce2c8a40b6
fix tests output changed by 8269fe2d48f6
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
9614
diff
changeset
|
21 |
404 Unsupported archive type: None |
7029
b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
Rocco Rutte <pdmef@gmx.net>
parents:
6183
diff
changeset
|
22 |
|
2114
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
23 |
test-archive-TIP/.hg_archival.txt |
1166
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
24 |
test-archive-TIP/bar |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
25 |
test-archive-TIP/baz/bletch |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
26 |
test-archive-TIP/foo |
2114
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
27 |
test-archive-TIP/.hg_archival.txt |
1166
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
28 |
test-archive-TIP/bar |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
29 |
test-archive-TIP/baz/bletch |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
30 |
test-archive-TIP/foo |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
31 |
Archive: archive.zip |
2114
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
32 |
testing: test-archive-TIP/.hg_archival.txt OK |
1166
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
33 |
testing: test-archive-TIP/bar OK |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
34 |
testing: test-archive-TIP/baz/bletch OK |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
35 |
testing: test-archive-TIP/foo OK |
bd66294b7a9b
Added test case for zip/gz/bz2 archive downloads.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
36 |
No errors detected in compressed data of archive.zip. |
2114
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
37 |
test/.hg_archival.txt |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
38 |
test/bar |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
39 |
test/baz/bletch |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
40 |
test/foo |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
41 |
test/.hg_archival.txt |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
42 |
test/bar |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
43 |
test/foo |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
44 |
test-TIP/.hg_archival.txt |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
45 |
test-TIP/bar |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
46 |
test-TIP/baz/bletch |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
47 |
test-TIP/foo |
10650
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
48 |
autodetected_test/.hg_archival.txt |
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
49 |
autodetected_test/bar |
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
50 |
autodetected_test/baz/bletch |
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
51 |
autodetected_test/foo |
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
52 |
autodetect_override_test.zip/.hg_archival.txt |
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
53 |
autodetect_override_test.zip/bar |
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
54 |
autodetect_override_test.zip/baz/bletch |
9ea7238ad935
archive: autodetect archive type by extension (issue2058)
David Wolever <david@wolever.net>
parents:
9696
diff
changeset
|
55 |
autodetect_override_test.zip/foo |
4805
beb774707c52
test-archive: stop checking md5 absolute values
Patrick Mezard <pmezard@gmail.com>
parents:
4653
diff
changeset
|
56 |
True |
2114
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
57 |
abort: archive prefix contains illegal components |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
58 |
Archive: test.zip |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
59 |
testing: test/bar OK |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
60 |
testing: test/baz/bletch OK |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
61 |
testing: test/foo OK |
98cc126f9f3f
update tests after changing archival code.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1744
diff
changeset
|
62 |
No errors detected in compressed data of test.zip. |
2476
0f7e4a39d9af
archive: make "hg archive -t XXX -" to write to stdout
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
2182
diff
changeset
|
63 |
test-TIP/.hg_archival.txt |
0f7e4a39d9af
archive: make "hg archive -t XXX -" to write to stdout
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
2182
diff
changeset
|
64 |
test-TIP/bar |
0f7e4a39d9af
archive: make "hg archive -t XXX -" to write to stdout
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
2182
diff
changeset
|
65 |
test-TIP/baz/bletch |
0f7e4a39d9af
archive: make "hg archive -t XXX -" to write to stdout
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
2182
diff
changeset
|
66 |
test-TIP/foo |
4836
0e2d0a78f81a
archive: make the %r escape work.
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4805
diff
changeset
|
67 |
rev-0.tar created |
9614
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
68 |
% test .hg_archival.txt |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
69 |
repo: daa7f7c60e0a224faa4ff77ca41b2760562af264 |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
70 |
node: 2c0277f05ed49d1c8328fb9ba92fba7a5ebcb33e |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
71 |
branch: default |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
72 |
latesttag: null |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
73 |
latesttagdistance: 3 |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
74 |
repo: daa7f7c60e0a224faa4ff77ca41b2760562af264 |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
75 |
node: 2c0277f05ed49d1c8328fb9ba92fba7a5ebcb33e |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
76 |
branch: default |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
77 |
tag: anothertag |
58edd448da4f
archive: add branch and tag informations to the .hg_archival.txt file
Gilles Moris <gilles.moris@free.fr>
parents:
7528
diff
changeset
|
78 |
tag: mytag |
6019
b70a530bdb93
cleanly abort on unknown archive type (issue966)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
5061
diff
changeset
|
79 |
abort: unknown archive type 'bogus' |
5924
b8009718a211
better error reporting for hg serve errors in tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
5061
diff
changeset
|
80 |
% server errors |
5061
a49f2a4d5ff7
archive: abort on empty repository. Fixes #624.
Brendan Cully <brendan@kublai.com>
parents:
4836
diff
changeset
|
81 |
% empty repo |
7528
eadcc075967e
archive: fix bogus error message with no working directory
Matt Mackall <mpm@selenic.com>
parents:
7029
diff
changeset
|
82 |
abort: no working directory: please specify a revision |
12319
381f131220ad
archive: set date to 1980 for very old zip files
Martin Geisler <mg@aragost.com>
parents:
10650
diff
changeset
|
83 |
% old file -- date clamped to 1980 |
381f131220ad
archive: set date to 1980 for very old zip files
Martin Geisler <mg@aragost.com>
parents:
10650
diff
changeset
|
84 |
147 1980-01-01 00:00 old/.hg_archival.txt |
381f131220ad
archive: set date to 1980 for very old zip files
Martin Geisler <mg@aragost.com>
parents:
10650
diff
changeset
|
85 |
0 1980-01-01 00:00 old/old |
12379
6aa2c86db2eb
tests: fix unzip -l variability
Matt Mackall <mpm@selenic.com>
parents:
12319
diff
changeset
|
86 |
ok |