diff tests/test-convert-cvs @ 10695:b4b16e90712f stable

convert: teach cvsps to handle . repository (issue1649) For a CVS repository checked out with "cvs co .", the prefix used to strip of what we get from CVS was previously erroneously set to "repopath/.". We now prevent the dot to be added. Test folded in test-convert-cvs and simplified by Patrick Mézard <pmezard@gmail.com>.
author Mathieu Clabaut <mathieu.clabaut@systerel.fr>
date Tue, 09 Mar 2010 12:09:57 +0100
parents 6109a02c682b
children bdb60057f905
line wrap: on
line diff
--- a/tests/test-convert-cvs	Sun Mar 14 18:46:38 2010 +0100
+++ b/tests/test-convert-cvs	Tue Mar 09 12:09:57 2010 +0100
@@ -75,6 +75,15 @@
 hgcat b/c
 hg -R src-filemap log --template '{rev} {desc} files: {files}\n'
 
+echo % 'convert full repository (issue1649)'
+cvscall -q -d "$CVSROOT" checkout -d srcfull "." | grep -v CVSROOT
+ls srcfull
+hg convert srcfull srcfull-hg \
+    | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' \
+    | grep -v 'log entries' | grep -v 'hook:'
+hg cat -r tip srcfull-hg/src/a
+hg cat -r tip srcfull-hg/src/b/c
+
 echo % commit new file revisions
 cd src
 echo a >> a