3 # This script can be moved to the test-data directory and executed
4 # there to recreate nasty-graphs-cvsrepos. (Well, approximately. It
5 # doesn't clean up CVSROOT or add CVSROOT/README.)
7 CVSROOT
=`pwd`/nasty-graphs-cvsrepos
23 # A: a.txt<1.1> b.txt<1.2>
24 # B: a.txt<1.2> b.txt<1.1>
34 cvs commit
-m "$TEST-A" $D/a.txt
37 cvs commit
-m "$TEST-B" $D/a.txt
41 cvs commit
-m "$TEST-B" $D/b.txt
44 cvs commit
-m "$TEST-A" $D/b.txt
51 # A: a.txt<1.1> c.txt<1.2>
52 # B: a.txt<1.2> b.txt<1.1>
53 # C: b.txt<1.2> c.txt<1.1>
63 cvs commit
-m "$TEST-A" $D/a.txt
66 cvs commit
-m "$TEST-B" $D/a.txt
70 cvs commit
-m "$TEST-B" $D/b.txt
73 cvs commit
-m "$TEST-C" $D/b.txt
77 cvs commit
-m "$TEST-C" $D/c.txt
80 cvs commit
-m "$TEST-A" $D/c.txt
83 # A: a.txt<1.1> b.txt<1.3> c.txt<1.2>
84 # B: a.txt<1.2> b.txt<1.1> c.txt<1.3>
85 # C: a.txt<1.3> b.txt<1.2> c.txt<1.1>
87 TEST
=ABC-passthru-loop
95 cvs commit
-m "$TEST-A" $D/a.txt
98 cvs commit
-m "$TEST-B" $D/a.txt
101 cvs commit
-m "$TEST-C" $D/a.txt
105 cvs commit
-m "$TEST-B" $D/b.txt
108 cvs commit
-m "$TEST-C" $D/b.txt
111 cvs commit
-m "$TEST-A" $D/b.txt
115 cvs commit
-m "$TEST-C" $D/c.txt
118 cvs commit
-m "$TEST-A" $D/c.txt
121 cvs commit
-m "$TEST-B" $D/c.txt
124 # A: a.txt<1.1> c.txt<1.3> d.txt<1.2>
125 # B: a.txt<1.2> b.txt<1.1> d.txt<1.3>
126 # C: a.txt<1.3> b.txt<1.2> c.txt<1.1>
127 # D: b.txt<1.3> c.txt<1.2> d.txt<1.1>
129 TEST
=ABCD-passthru-loop
137 cvs commit
-m "$TEST-A" $D/a.txt
140 cvs commit
-m "$TEST-B" $D/a.txt
143 cvs commit
-m "$TEST-C" $D/a.txt
147 cvs commit
-m "$TEST-B" $D/b.txt
150 cvs commit
-m "$TEST-C" $D/b.txt
153 cvs commit
-m "$TEST-D" $D/b.txt
157 cvs commit
-m "$TEST-C" $D/c.txt
160 cvs commit
-m "$TEST-D" $D/c.txt
163 cvs commit
-m "$TEST-A" $D/c.txt
167 cvs commit
-m "$TEST-D" $D/d.txt
170 cvs commit
-m "$TEST-A" $D/d.txt
173 cvs commit
-m "$TEST-B" $D/d.txt
176 # The following test has the nasty property that each changeset has
177 # either one LINK_PREV or LINK_SUCC and also one LINK_PASSTHRU.
179 # A: a.txt<1.1> b.txt<1.3>
180 # B: a.txt<1.2> b.txt<1.4>
181 # C: a.txt<1.3> b.txt<1.1>
182 # D: a.txt<1.4> b.txt<1.2>
184 TEST
=AB-double-passthru-loop
192 cvs commit
-m "$TEST-A" $D/a.txt
195 cvs commit
-m "$TEST-B" $D/a.txt
198 cvs commit
-m "$TEST-C" $D/a.txt
201 cvs commit
-m "$TEST-D" $D/a.txt
205 cvs commit
-m "$TEST-C" $D/b.txt
208 cvs commit
-m "$TEST-D" $D/b.txt
211 cvs commit
-m "$TEST-A" $D/b.txt
214 cvs commit
-m "$TEST-B" $D/b.txt