Mercurial > hg
annotate tests/test-archive.out @ 11769:ca6cebd8734e stable
dirstate: ignore symlinks when fs cannot handle them (issue1888)
When the filesystem cannot handle the executable bit, we currently
ignore it completely when looking for modified files. Similarly, it is
impossible to set or clear the bit when the filesystem ignores it.
This patch makes Mercurial treat symbolic links the same way.
Symlinks are a little different since they manifest themselves as
small files containing a filename (the symlink target). On Windows,
these files show up as regular files, and on Linux and Mac they show
up as real symlinks.
Issue1888 presents a case where the symlink files are better ignored
from the Windows side. A Linux client creates symlinks in a working
copy which is shared over a network between Linux and Windows clients.
The Samba server is helpful and defererences the symlink when the
Windows client looks at it. This means that Mercurial on the Windows
side sees file content instead of a file name in the symlink, and
hence flags the link as modified. Ignoring the change would be much
more helpful, similarly to how Mercurial does not report any changes
when executable bits are ignored in a checkout on Windows.
An initial checkout of a symbolic link on a file system that cannot
handle symbolic links will still result in a regular file containing
the target file name as its content. Sharing such a checkout with a
Linux client will not turn the file into a symlink automatically, but
'hg revert' can fix that. After the revert, the Windows client will
see the correct file content (provided by the Samba server when it
follows the link on the Linux side) and otherwise ignore the change.
Running 'hg perfstatus' 10 times gives these results:
Before: After:
min: 0.544703 min: 0.546549
med: 0.547592 med: 0.548881
avg: 0.549146 avg: 0.548549
max: 0.564112 max: 0.551504
The median time is increased about 0.24%.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 09 Aug 2010 15:31:56 +0200 |
parents | 9ea7238ad935 |
children | 381f131220ad |
rev | line source |
---|---|
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 |