##// END OF EJS Templates
test-convert-cvs: test fuzz
Mads Kiilerich <mads at kiilerich.com> -
r12029:84a09639 stable
parent child Browse files
Show More
@@ -132,12 +132,22 b" log message' . | grep '<--' |\\"
132 132 sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g'
133 133 cd ..
134 134
135 echo % commit new file revisions with some fuzz
136 cd src
137 echo f >> a
138 cvscall -q commit -mfuzzy . | grep '<--' |\
139 sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g'
140 sleep 4 # the two changes will be split if fuzz < 4
141 echo g >> b/c
142 cvscall -q commit -mfuzzy . | grep '<--' |\
143 sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g'
144 cd ..
145
135 146 echo % convert again
136 hg convert src src-hg | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g'
147 hg convert --config convert.cvsps.fuzz=2 src src-hg | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g'
137 148
138 echo "graphlog = " >> $HGRCPATH
139 149 hg -R src-hg glog --template '{rev} ({branches}) {desc} files: {files}\n'
140 150
141 151 echo % testing debugcvsps
142 152 cd src
143 hg debugcvsps | sed -e 's/Author:.*/Author:/' -e 's/Date:.*/Date:/'
153 hg debugcvsps --fuzz=2 | sed -e 's/Author:.*/Author:/' -e 's/Date:.*/Date:/'
@@ -150,18 +150,27 b' 1 ci0 files: b/c'
150 150 0 Initial revision files: b/c
151 151 % commit a new revision with funny log message
152 152 checking in src/a,v
153 % commit new file revisions with some fuzz
154 checking in src/a,v
155 checking in src/b/c,v
153 156 % convert again
154 157 connecting to cvsrepo
155 158 scanning source...
156 159 collecting CVS rlog
157 9 log entries
158 cvslog hook: 9 entries
160 11 log entries
161 cvslog hook: 11 entries
159 162 creating changesets
160 6 changeset entries
161 cvschangesets hook: 6 changesets
163 8 changeset entries
164 cvschangesets hook: 8 changesets
162 165 sorting...
163 166 converting...
164 0 funny
167 2 funny
168 1 fuzzy
169 0 fuzzy
170 o 8 (branch) fuzzy files: b/c
171 |
172 o 7 (branch) fuzzy files: a
173 |
165 174 o 6 (branch) funny
166 175 | ----------------------------
167 176 | log message files: a
@@ -179,11 +188,11 b' o 0 () Initial revision files: a b/c'
179 188
180 189 % testing debugcvsps
181 190 collecting CVS rlog
182 9 log entries
183 cvslog hook: 9 entries
191 11 log entries
192 cvslog hook: 11 entries
184 193 creating changesets
185 8 changeset entries
186 cvschangesets hook: 8 changesets
194 10 changeset entries
195 cvschangesets hook: 10 changesets
187 196 ---------------------
188 197 PatchSet 1
189 198 Date:
@@ -286,3 +295,27 b' log message'
286 295 Members:
287 296 a:1.2->1.2.2.1
288 297
298 ---------------------
299 PatchSet 9
300 Date:
301 Author:
302 Branch: branch
303 Tag: (none)
304 Log:
305 fuzzy
306
307 Members:
308 a:1.2.2.1->1.2.2.2
309
310 ---------------------
311 PatchSet 10
312 Date:
313 Author:
314 Branch: branch
315 Tag: (none)
316 Log:
317 fuzzy
318
319 Members:
320 b/c:1.1.2.1->1.1.2.2
321
General Comments 0
You need to be logged in to leave comments. Login now