[PATCH] test: added testcase for cvsps log message lookahead

Patrick Mézard pmezard at gmail.com
Sun Jan 4 09:30:06 CST 2009


Frank Kingswood a écrit :
> # HG changeset patch
> # User Frank Kingswood <frank at kingswood-consulting.co.uk>
> # Date 1231063604 0
> # Node ID b3f0d4f6d9fac2bcedcfeb25236ea0ff0621f76c
> # Parent  597c3e6a1e5ab355eec91bbd9d831812bbae4254
> test: added testcase for cvsps log message lookahead
> 
> diff -r 597c3e6a1e5a -r b3f0d4f6d9fa 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,20 @@
>  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'
> +hg -R src-filemap log --template '#rev# #desc# files: #files#\n'

You probably meant src-hg instead of src-filemap.
Do you think the log call brings anything we don't have already in the following glog one? Just asking to tidy up the tests.

> +
>  echo "graphlog = " >> $HGRCPATH
>  hg -R src-hg glog --template '#rev# (#branches#) #desc# files: #files#\n'

--
Patrick Mézard


More information about the Mercurial-devel mailing list