Mercurial > public > mercurial-scm > hg
diff tests/test-archive @ 9614:58edd448da4f
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.
author | Gilles Moris <gilles.moris@free.fr> |
---|---|
date | Tue, 11 Aug 2009 09:04:02 +0200 |
parents | 908c5906091b |
children | d4a62b6d4a58 |
line wrap: on
line diff
--- a/tests/test-archive Mon Oct 19 23:27:20 2009 +0300 +++ b/tests/test-archive Tue Aug 11 09:04:02 2009 +0200 @@ -108,6 +108,14 @@ echo 'rev-0.tar created' fi +echo '% test .hg_archival.txt' +hg archive ../test-tags +cat ../test-tags/.hg_archival.txt +hg tag -r 2 mytag +hg tag -r 2 anothertag +hg archive -r 2 ../test-lasttag +cat ../test-lasttag/.hg_archival.txt + hg archive -t bogus test.bogus echo % server errors