##// END OF EJS Templates
tests: avoid export FOO=bar bashism
tests: avoid export FOO=bar bashism

File last commit:

r8350:1f0f01bc default
r8350:1f0f01bc default
Show More
test-convert-cvs-branch
64 lines | 1.2 KiB | text/plain | TextLexer
/ tests / test-convert-cvs-branch
Frank Kingswood
convert: cvs.py - Allow user to use built-in CVS changeset code....
r6690 #!/bin/sh
# This is http://www.selenic.com/mercurial/bts/issue1148
"$TESTDIR/hghave" cvs || exit 80
cvscall()
{
cvs -f "$@"
}
echo "[extensions]" >> $HGRCPATH
echo "convert = " >> $HGRCPATH
echo "graphlog = " >> $HGRCPATH
echo "[convert]" >> $HGRCPATH
echo "cvsps=builtin" >> $HGRCPATH
Patrick Mezard
convert/cvs: add an option to disable remote log caching...
r8169 echo "cvsps.cache=0" >> $HGRCPATH
Frank Kingswood
convert: cvs.py - Allow user to use built-in CVS changeset code....
r6690
echo % create cvs repository
mkdir cvsrepo
cd cvsrepo
Martin Geisler
tests: avoid export FOO=bar bashism
r8350 CVSROOT=`pwd`
export CVSROOT
CVS_OPTIONS=-f
export CVS_OPTIONS
Frank Kingswood
convert: cvs.py - Allow user to use built-in CVS changeset code....
r6690 cd ..
cvscall -q -d "$CVSROOT" init
echo % Create a new project
mkdir src
cd src
Frank Kingswood
tests: allow cvs import to reorder its filename list...
r7465 echo "1" > a
echo "1" > b
cvscall import -m "init" src v0 r0 | sort
Frank Kingswood
convert: cvs.py - Allow user to use built-in CVS changeset code....
r6690 cd ..
cvscall co src
cd src
echo % Branch the project
cvscall tag -b BRANCH
Mads Kiilerich
test-convert-cvs*: mute output from "cvs up"...
r7812 cvscall up -r BRANCH > /dev/null
Frank Kingswood
convert: cvs.py - Allow user to use built-in CVS changeset code....
r6690
echo % Modify file a, then b, then a
echo "2" > a
cvscall ci -m "mod a" | grep '<--' | sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g'
echo "2" > b
cvscall ci -m "mod b" | grep '<--' | sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g'
echo "3" > a
cvscall ci -m "mod a again" | grep '<--' | sed -e 's:.*src/\(.*\),v.*:checking in src/\1,v:g'
echo % Convert
cd ..
hg convert src | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g'
echo % Check the result
hg -R src-hg glog --template '#rev# (#branches#) #desc# files: #files#\n'