comparison 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
comparison
equal deleted inserted replaced
9612:d051db8e9e44 9614:58edd448da4f
106 hg archive -r 0 -t tar rev-%r.tar 106 hg archive -r 0 -t tar rev-%r.tar
107 if [ -f rev-0.tar ]; then 107 if [ -f rev-0.tar ]; then
108 echo 'rev-0.tar created' 108 echo 'rev-0.tar created'
109 fi 109 fi
110 110
111 echo '% test .hg_archival.txt'
112 hg archive ../test-tags
113 cat ../test-tags/.hg_archival.txt
114 hg tag -r 2 mytag
115 hg tag -r 2 anothertag
116 hg archive -r 2 ../test-lasttag
117 cat ../test-lasttag/.hg_archival.txt
118
111 hg archive -t bogus test.bogus 119 hg archive -t bogus test.bogus
112 120
113 echo % server errors 121 echo % server errors
114 cat errors.log 122 cat errors.log
115 123