Mercurial > hg > hg-fastimport
annotate tests/test-fastimport-cvs2git-fixup @ 45:783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
| author | Greg Ward <greg-hg@gerg.ca> |
|---|---|
| date | Mon, 11 May 2009 17:55:57 -0400 |
| parents | 61ff7b929cea |
| children |
| 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 |
|
44
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
30 # This is the dump that cvs2git actually produces. There are some |
|
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
31 # oddities to it: |
|
39
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 # |
|
44
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
37 # but git-fast-import accepts it, and the spec allows it. Therefore, |
|
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
38 # hg-fastimport must accept it and handle it correctly. |
|
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
39 |
|
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
40 #cat > /dev/null <<EOF |
|
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
41 cat > git-dump-1.dat <<EOF |
|
39
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 |
|
44
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
79 # This is another way of expressing the same thing. git-fast-import |
|
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
80 # treats them the same, therefore hg-fastimport should too. |
|
61ff7b929cea
Handle fixup commits and branch creation as produced by cvs2git.
Greg Ward <greg-hg@gerg.ca>
parents:
42
diff
changeset
|
81 cat > git-dump-2.dat <<EOF |
|
39
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 |
|
45
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
119 # Test that both dumps work (they should produce identical output). |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
120 #for dump in git-dump-1.dat git-dump-2.dat; do |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
121 for i in 1 2 ; do |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
122 dump=git-dump-$i.dat |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
123 echo "----------------------------------------" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
124 echo "% import $dump" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
125 set -e |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
126 repo=realcvs.$i |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
127 hg init $repo |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
128 hg -R $repo fastimport git-blob.dat $dump \ |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
129 | sed "s|$HGTMP|HGTMP|g" |
|
39
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
130 |
|
45
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
131 echo "% hg glog ($dump)" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
132 cd $repo |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
133 template="rev: {rev}\nauthor: {author}\nbranch: '{branches}' tags: {tags}\nfiles: {files}\ndesc: {desc}\n\n" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
134 hg glog -v --template="$template" |
|
39
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
135 |
|
45
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
136 echo "% hg branches ($dump)" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
137 # Exclude default since its changeset ID is different with every run. |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
138 # (Same thing with tags and tip below.) |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
139 hg branches | grep -v "^default" |
|
39
177a133519bc
Handle fixup branches for tag/branch creation better.
Greg Ward <greg-hg@gerg.ca>
parents:
diff
changeset
|
140 |
|
45
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
141 echo "% hg heads -v ($dump)" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
142 hg heads --template="$template" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
143 |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
144 echo "% hg tags -v ($dump)" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
145 hg tags | grep -v "^tip" |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
146 cd .. |
|
783890f8a6fb
Test that my idealized version of cvs2git's output produces identical output.
Greg Ward <greg-hg@gerg.ca>
parents:
44
diff
changeset
|
147 done |
