# HG changeset patch # User Frank Kingswood # Date 1231063604 0 # Node ID a204547790bc83b1443ff6f3d93c15107d6fbd2f # Parent 9811cc670c51af8dd369f7925f6f4401a976d747 test: added testcase for cvsps log message lookahead diff -r 9811cc670c51 -r a204547790bc tests/test-convert-cvs-builtincvsps --- 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' diff -r 9811cc670c51 -r a204547790bc tests/test-convert-cvs-builtincvsps.out --- 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 +