Mercurial > hg > hg-fastimport
comparison tests/test-fastimport-cvs2git-fixup @ 42:71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
- add lightweight_tags attr to HgImportProcessor
- modify reset_handler() to detect and record lightweight tags
- add write_lightweight_tags() method to add them all in one commit
- update test-fastimport-cvs2git-fixup
| author | Greg Ward <greg-hg@gerg.ca> |
|---|---|
| date | Sun, 10 May 2009 12:00:23 -0400 |
| parents | 177a133519bc |
| children | 61ff7b929cea |
comparison
equal
deleted
inserted
replaced
| 41:a1ccf1817b65 | 42:71f1e5ed6213 |
|---|---|
| 122 hg -R realcvs fastimport git-blob.dat git-dump.dat \ | 122 hg -R realcvs fastimport git-blob.dat git-dump.dat \ |
| 123 | sed "s|$HGTMP|HGTMP|g" | 123 | sed "s|$HGTMP|HGTMP|g" |
| 124 | 124 |
| 125 echo "% hg glog" | 125 echo "% hg glog" |
| 126 cd realcvs | 126 cd realcvs |
| 127 hg glog -v | 127 template="rev: {rev}\nauthor: {author}\nbranch: '{branches}' tags: {tags}\nfiles: {files}\ndesc: {desc}\n\n" |
| 128 hg glog -v --template="$template" | |
| 128 | 129 |
| 129 echo "% hg branches" | 130 echo "% hg branches" |
| 130 hg branches | 131 # Exclude default since its changeset ID is different with every run. |
| 132 # (Same thing with tags and tip below.) | |
| 133 hg branches | grep -v "^default" | |
| 131 | 134 |
| 132 echo "% hg heads -v" | 135 echo "% hg heads -v" |
| 133 hg heads | 136 hg heads --template="$template" |
| 134 | 137 |
| 135 echo "% hg tags -v" | 138 echo "% hg tags -v" |
| 136 hg tags | 139 hg tags | grep -v "^tip" |
