##// END OF EJS Templates
issue1577: fix broken test by assuming less about CVS output....
issue1577: fix broken test by assuming less about CVS output. Specifically, output of "cvs ci" varies unpredictably across CVS versions, so any test that includes the output of "cvs ci" is doomed to fail some of the time. This fixes that by discarding the output of "cvs ci".

File last commit:

r7567:0946294d default
r8081:6c3b8132 default
Show More
test-convert-baz
82 lines | 1.8 KiB | text/plain | TextLexer
Aleix Conchillo Flaque
convert: added gnu arch (baz) tests
r6078 #!/bin/sh
"$TESTDIR/hghave" baz || exit 80
Patrick Mezard
Define tla username locally in baz and tla tests...
r6101 mkdir do_not_use_HOME_baz
cd do_not_use_HOME_baz
HOME=`pwd`; export HOME
cd ..
Patrick Mezard
test-convert-baz: set username with baz, not tla
r6102 baz my-id "mercurial <mercurial@selenic.com>"
Patrick Mezard
Document and fix tla/baz conversion tests
r6084
Aleix Conchillo Flaque
convert: added gnu arch (baz) tests
r6078 echo "[extensions]" >> $HGRCPATH
echo "convert=" >> $HGRCPATH
echo 'hgext.graphlog =' >> $HGRCPATH
echo % create baz archive
baz make-archive baz@mercurial--convert hg-test-convert-baz
echo % initialize baz repo
mkdir baz-repo
cd baz-repo/
baz init-tree baz@mercurial--convert/baz--test--0
baz import
echo % create initial files
echo 'this is a file' > a
baz add a
mkdir src
baz add src
cd src
dd count=1 if=/dev/zero of=b > /dev/null 2> /dev/null
baz add b
baz commit -s "added a file, src and src/b (binary)"
echo % create link file and modify a
ln -s ../a a-link
baz add a-link
echo 'this a modification to a' >> ../a
baz commit -s "added link to a and modify a"
echo % create second link and modify b
ln -s ../a a-link-2
baz add a-link-2
dd count=1 seek=1 if=/dev/zero of=b > /dev/null 2> /dev/null
baz commit -s "added second link and modify b"
echo % b file to link and a-link-2 to regular file
rm -f a-link-2
echo 'this is now a regular file' > a-link-2
ln -sf ../a b
baz commit -s "file to link and link to file test"
echo % move a-link-2 file and src directory
cd ..
baz mv src/a-link-2 c
baz mv src test
baz commit -s "move and rename a-link-2 file and src directory"
Patrick Mezard
convert/gnuarch: fix switched copy source and destination...
r7567 echo % move and add the moved file again
echo e > e
baz add e
baz commit -s "add e"
baz mv e f
echo ee > e
baz add e
baz commit -s "move e and recreate it again"
Aleix Conchillo Flaque
convert: added gnu arch (baz) tests
r6078 cd ..
echo % converting baz repo to Mercurial
hg convert baz-repo baz-repo-hg
baz register-archive -d baz@mercurial--convert
glog()
{
hg glog --template '#rev# "#desc|firstline#" files: #files#\n' "$@"
}
echo % show graph log
glog -R baz-repo-hg
Patrick Mezard
Fix tests failures introduced by 7239e06e58e9
r6799 hg up -q -R baz-repo-hg
Aleix Conchillo Flaque
convert: added gnu arch (baz) tests
r6078 hg -R baz-repo-hg manifest --debug
Patrick Mezard
convert/gnuarch: fix switched copy source and destination...
r7567 hg -R baz-repo-hg log -r 5 -r 7 -C --debug | grep copies