Mercurial > hg > hg-fastimport
annotate 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 |
| rev | line source |
|---|---|
|
39
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
1 #!/bin/sh |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
2 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
3 # Test a dump created by cvs2git from a CVS repository with branches and |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
4 # tags. Specifically, we're looking at the creation of a new branch |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
5 # REL-2-2-3 where the branch point is tagged REL-2-2-3-P1. |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
6 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
7 # Rather than create an artificial example, this is derived from |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
8 # a real-life CVS repository. |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
9 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
10 . $TESTDIR/fastimport-common |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
11 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
12 cat > git-blob.dat <<EOF |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
13 blob |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
14 mark :2308 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
15 data 5 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
16 boo! |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
17 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
18 blob |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
19 mark :14693 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
20 data 18 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
21 # Doxyfile 1.2.14 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
22 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
23 blob |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
24 mark :11363 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
25 data 6 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
26 hello |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
27 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
28 EOF |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
29 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
30 # XXX this is the dump that cvs2git actually produces. Subtle |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
31 # bogosities: |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
32 # - commit 1619 has no first parent, but the "merge" directive |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
33 # (second parent) points to the commit that should be its first parent |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
34 # - commit 1620 should have 1619 as its first parent, but 1619 is |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
35 # set to the second parent... and there is no first parent |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
36 # |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
37 # I'm not using this one; I'm just recording it here to vent about |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
38 # cvs2git. See below for the dump that I want cvs2git to produce, |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
39 # and the one that is correctly handled by hg-fastimport. |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
40 #cat > git-dump.dat <<EOF |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
41 cat > /dev/null <<EOF |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
42 commit refs/heads/master |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
43 mark :1000000373 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
44 committer Example <example> 991793180 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
45 data 15 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
46 added Makefile |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
47 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
48 M 100644 :2308 Makefile |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
49 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
50 commit refs/heads/REL-2-2-3 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
51 mark :1000001619 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
52 committer cvs2git <cvs2git> 1022533494 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
53 data 47 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
54 create branch 'REL-2-2-3' (manufactured commit) |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
55 merge :1000000373 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
56 M 100644 :2308 Makefile |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
57 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
58 commit refs/heads/TAG.FIXUP |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
59 mark :1000001620 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
60 committer cvs2git <cvs2git> 1022533495 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
61 data 47 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
62 create tag 'REL-2-2-3-P1' (manufactured commit) |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
63 merge :1000001619 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
64 M 100644 :14693 Tools/Debug/C++/DebugCpp.doxygen |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
65 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
66 reset refs/tags/REL-2-2-3-P1 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
67 from :1000001620 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
68 reset refs/heads/TAG.FIXUP |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
69 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
70 commit refs/heads/master |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
71 mark :1000001621 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
72 committer Other <other@example.com> 1022536868 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
73 data 18 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
74 added iostream.h |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
75 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
76 M 100644 :11363 main.cpp |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
77 EOF |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
78 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
79 # XXX this is the dump that I think cvs2git *should* produce, not what |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
80 # it actually does produce (hmmm) |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
81 cat > git-dump.dat <<EOF |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
82 commit refs/heads/master |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
83 mark :1000000373 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
84 committer Example <example> 991793180 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
85 data 15 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
86 added Makefile |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
87 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
88 M 100644 :2308 Makefile |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
89 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
90 commit refs/heads/REL-2-2-3 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
91 mark :1000001619 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
92 committer cvs2git <cvs2git> 1022533494 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
93 data 47 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
94 create branch 'REL-2-2-3' (manufactured commit) |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
95 from :1000000373 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
96 M 100644 :2308 Makefile |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
97 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
98 commit refs/heads/TAG.FIXUP |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
99 mark :1000001620 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
100 committer cvs2git <cvs2git> 1022533495 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
101 data 47 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
102 create tag 'REL-2-2-3-P1' (manufactured commit) |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
103 from :1000001619 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
104 M 100644 :14693 Tools/Debug/C++/DebugCpp.doxygen |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
105 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
106 reset refs/tags/REL-2-2-3-P1 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
107 from :1000001620 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
108 reset refs/heads/TAG.FIXUP |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
109 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
110 commit refs/heads/master |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
111 mark :1000001621 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
112 committer Other <other@example.com> 1022536868 +0000 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
113 data 18 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
114 added iostream.h |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
115 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
116 M 100644 :11363 main.cpp |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
117 EOF |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
118 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
119 echo "% import cvs2git with branch/tag" |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
120 set -e |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
121 hg init realcvs |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
122 hg -R realcvs fastimport git-blob.dat git-dump.dat \ |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
123 | sed "s|$HGTMP|HGTMP|g" |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
124 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
125 echo "% hg glog" |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
126 cd realcvs |
|
42
71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
Greg Ward <greg-hg@gerg.ca>
parents:
39
diff
changeset
|
127 template="rev: {rev}\nauthor: {author}\nbranch: '{branches}' tags: {tags}\nfiles: {files}\ndesc: {desc}\n\n" |
|
71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
Greg Ward <greg-hg@gerg.ca>
parents:
39
diff
changeset
|
128 hg glog -v --template="$template" |
|
39
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
129 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
130 echo "% hg branches" |
|
42
71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
Greg Ward <greg-hg@gerg.ca>
parents:
39
diff
changeset
|
131 # Exclude default since its changeset ID is different with every run. |
|
71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
Greg Ward <greg-hg@gerg.ca>
parents:
39
diff
changeset
|
132 # (Same thing with tags and tip below.) |
|
71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
Greg Ward <greg-hg@gerg.ca>
parents:
39
diff
changeset
|
133 hg branches | grep -v "^default" |
|
39
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
134 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
135 echo "% hg heads -v" |
|
42
71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
Greg Ward <greg-hg@gerg.ca>
parents:
39
diff
changeset
|
136 hg heads --template="$template" |
|
39
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
137 |
|
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
138 echo "% hg tags -v" |
|
42
71f1e5ed6213
Convert "lightweight" tags, since that's how cvs2git handle CVS tags.
Greg Ward <greg-hg@gerg.ca>
parents:
39
diff
changeset
|
139 hg tags | grep -v "^tip" |
