tests/test-archive.out
author Gilles Moris <gilles.moris@free.fr>
Tue, 11 Aug 2009 09:04:02 +0200
changeset 9614 58edd448da4f
parent 7528 eadcc075967e
child 9696 8cce2c8a40b6
permissions -rw-r--r--
archive: add branch and tag informations to the .hg_archival.txt file Up to this changeset, only the repo (first node) and current node hash were included. This adds also the named branch and tags. So the additional lines to .hg_archival.txt are branch: the named branch tag: the global tags of this revision, one per line in case of multiple tags latesttag: if the revision is untagged, the latest tag (most recent in ancestors), again one per line if this ancestor has multiple tags. latestagdistance: the longest distance (changesets) to this latest ancestor.

adding foo
adding bar
adding baz/bletch

% gz allowed should give 200
200 Script output follows
% tar.bz2 and zip disallowed should both give 403
403 Forbidden
403 Forbidden
% bz2 allowed should give 200
200 Script output follows
% zip and tar.gz disallowed should both give 403
403 Forbidden
403 Forbidden
% zip allowed should give 200
200 Script output follows
% tar.gz and tar.bz2 disallowed should both give 403
403 Forbidden
403 Forbidden
% invalid arch type should give 404
404 Not Found

test-archive-TIP/.hg_archival.txt
test-archive-TIP/bar
test-archive-TIP/baz/bletch
test-archive-TIP/foo
test-archive-TIP/.hg_archival.txt
test-archive-TIP/bar
test-archive-TIP/baz/bletch
test-archive-TIP/foo
Archive:  archive.zip
    testing: test-archive-TIP/.hg_archival.txt   OK
    testing: test-archive-TIP/bar   OK
    testing: test-archive-TIP/baz/bletch   OK
    testing: test-archive-TIP/foo   OK
No errors detected in compressed data of archive.zip.
test/.hg_archival.txt
test/bar
test/baz/bletch
test/foo
test/.hg_archival.txt
test/bar
test/foo
test-TIP/.hg_archival.txt
test-TIP/bar
test-TIP/baz/bletch
test-TIP/foo
True
abort: archive prefix contains illegal components
Archive:  test.zip
    testing: test/bar                 OK
    testing: test/baz/bletch          OK
    testing: test/foo                 OK
No errors detected in compressed data of test.zip.
test-TIP/.hg_archival.txt
test-TIP/bar
test-TIP/baz/bletch
test-TIP/foo
rev-0.tar created
% test .hg_archival.txt
repo: daa7f7c60e0a224faa4ff77ca41b2760562af264
node: 2c0277f05ed49d1c8328fb9ba92fba7a5ebcb33e
branch: default
latesttag: null
latesttagdistance: 3
repo: daa7f7c60e0a224faa4ff77ca41b2760562af264
node: 2c0277f05ed49d1c8328fb9ba92fba7a5ebcb33e
branch: default
tag: anothertag
tag: mytag
abort: unknown archive type 'bogus'
% server errors
% empty repo
abort: no working directory: please specify a revision