##// END OF EJS Templates
tests: strip o/s-dependent error messages from some http tests
tests: strip o/s-dependent error messages from some http tests

File last commit:

r6947:a7fcb43a default
r7903:490e4081 default
Show More
test-clone
63 lines | 1.0 KiB | text/plain | TextLexer
Thomas Arendsen Hein
Use sh instead of bash in tests.
r834 #!/bin/sh
mpm@selenic.com
[PATCH] Tests for clone command...
r550
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo
echo % prepare repo a
mpm@selenic.com
[PATCH] Tests for clone command...
r550 mkdir a
cd a
hg init
echo a > a
hg add a
mpm@selenic.com
Update tests to use commit -m and default -u...
r749 hg commit -m test -d '0 0'
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo first line > b
hg add b
# create a non-inlined filelog
python -c 'for x in range(10000): print x' >> data1
for j in 0 1 2 3 4 5 6 7 8 9; do
cat data1 >> b
hg commit -m test -d '0 0'
done
echo % "list files in store/data (should show a 'b.d')"
for i in .hg/store/data/*; do
echo $i
done
mpm@selenic.com
[PATCH] Tests for clone command...
r550
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo
echo % default operation
mpm@selenic.com
[PATCH] Tests for clone command...
r550 hg clone . ../b
cd ../b
cat a
hg verify
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo
echo % no update
mpm@selenic.com
[PATCH] Tests for clone command...
r550 hg clone -U . ../c
cd ../c
Peter van Dijk
changes by John Levon to standardize some erroroutput
r1926 cat a 2>/dev/null || echo "a not present"
mpm@selenic.com
[PATCH] Tests for clone command...
r550 hg verify
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo
echo % default destination
mpm@selenic.com
[PATCH] Tests for clone command...
r550 mkdir ../d
cd ../d
hg clone ../a
cd a
hg cat a
Alexis S. L. Carvalho
clone: remove "file://" before making the path absolute...
r5225
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo
echo % "check that we drop the file:// from the path before"
echo % "writing the .hgrc"
Alexis S. L. Carvalho
clone: remove "file://" before making the path absolute...
r5225 cd ../..
hg clone file://a e
grep 'file:' e/.hg/hgrc
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo
echo % check that path aliases are expanded
Alexis S. L. Carvalho
clone: expand the path before saving it in .hg/hgrc...
r6088 hg clone -q -U --config 'paths.foobar=a#0' foobar f
hg -R f showconfig paths.default | sed -e 's,.*/,,'
Adrian Buehlmann
increase code coverage of test-clone...
r6947 echo
echo % use --pull
hg clone --pull a g
hg -R g verify
Alexis S. L. Carvalho
clone: remove "file://" before making the path absolute...
r5225 exit 0