test: added testcase for cvsps log message lookahead
authorFrank Kingswood <frank@kingswood-consulting.co.uk>
Sun, 04 Jan 2009 10:06:44 +0000
changeset 7594 a204547790bc
parent 7593 9811cc670c51
child 7595 81deb1ba4402
test: added testcase for cvsps log message lookahead
tests/test-convert-cvs-builtincvsps
tests/test-convert-cvs-builtincvsps.out
--- a/tests/test-convert-cvs-builtincvsps	Sun Jan 04 01:43:12 2009 -0600
+++ b/tests/test-convert-cvs-builtincvsps	Sun Jan 04 10:06:44 2009 +0000
@@ -100,6 +100,19 @@
 hgcat b/c
 hg -R src-filemap log --template '#rev# #desc# files: #files#\n'
 
+echo % commit a new revision with funny log message
+cd src
+sleep 1
+echo e >> a
+cvscall -q commit -m'funny
+----------------------------
+log message' . | 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'
+
 echo "graphlog = " >> $HGRCPATH
 hg -R src-hg glog --template '#rev# (#branches#) #desc# files: #files#\n'
 
--- a/tests/test-convert-cvs-builtincvsps.out	Sun Jan 04 01:43:12 2009 -0600
+++ b/tests/test-convert-cvs-builtincvsps.out	Sun Jan 04 10:06:44 2009 +0000
@@ -124,6 +124,22 @@
 2 update tags files: .hgtags
 1 ci0 files: b/c
 0 Initial revision files: b/c
+% commit a new revision with funny log message
+checking in src/a,v
+% convert again
+using builtin cvsps
+collecting CVS rlog
+9 log entries
+creating changesets
+6 changeset entries
+connecting to cvsrepo
+scanning source...
+sorting...
+converting...
+0 funny
+o  6 (branch) funny
+|  ----------------------------
+|  log message files: a
 o  5 (branch) ci2 files: b/c
 |
 | o  4 () ci1 files: a b/c
@@ -138,9 +154,9 @@
 
 % testing debugcvsps
 collecting CVS rlog
-8 log entries
+9 log entries
 creating changesets
-5 changeset entries
+6 changeset entries
 ---------------------
 PatchSet 1 
 Date:
@@ -204,3 +220,17 @@
 Members: 
 	b/c:1.1->1.1.2.1 
 
+---------------------
+PatchSet 6 
+Date:
+Author:
+Branch: branch
+Tag: (none) 
+Log:
+funny
+----------------------------
+log message
+
+Members: 
+	a:1.2->1.2.2.1 
+