Mercurial > hg
diff tests/test-convert-cvs @ 12029:84a09639d9f1 stable
test-convert-cvs: test fuzz
author | Mads Kiilerich <mads at kiilerich.com> |
---|---|
date | Thu, 01 Jul 2010 16:30:41 +0200 |
parents | bdb60057f905 |
children | d598d24a7e67 |
line wrap: on
line diff
--- a/tests/test-convert-cvs Mon Aug 23 22:32:36 2010 +0200 +++ b/tests/test-convert-cvs Thu Jul 01 16:30:41 2010 +0200 @@ -132,12 +132,22 @@ sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g' cd .. +echo % commit new file revisions with some fuzz +cd src +echo f >> a +cvscall -q commit -mfuzzy . | grep '<--' |\ + sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g' +sleep 4 # the two changes will be split if fuzz < 4 +echo g >> b/c +cvscall -q commit -mfuzzy . | grep '<--' |\ + sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g' +cd .. + echo % convert again -hg convert src src-hg | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' +hg convert --config convert.cvsps.fuzz=2 src src-hg | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' -echo "graphlog = " >> $HGRCPATH hg -R src-hg glog --template '{rev} ({branches}) {desc} files: {files}\n' echo % testing debugcvsps cd src -hg debugcvsps | sed -e 's/Author:.*/Author:/' -e 's/Date:.*/Date:/' +hg debugcvsps --fuzz=2 | sed -e 's/Author:.*/Author:/' -e 's/Date:.*/Date:/'