##// END OF EJS Templates
Make test-verify SUSv3 compatible....
Make test-verify SUSv3 compatible. 'head -c' isn't supported on (at least) OpenBSD and is not part of SUSv3. Instead, use dd. See also: http://www.opengroup.org/onlinepubs/009695399/utilities/head.html

File last commit:

r7044:e51c0f41 default
r8720:da1b9358 default
Show More
test-hgrc
18 lines | 293 B | text/plain | TextLexer
Benoit Boissinot
make readconfig take a filename instead of a file pointer as argument...
r1473 #!/bin/sh
mkdir t
cd t
hg init
echo "invalid" > .hg/hgrc
Thomas Arendsen Hein
Kill trailing spaces
r4659 hg status 2>&1 |sed -e "s:/.*\(/t/.*\):...\1:"
Benoit Boissinot
Escape '%' when writing to hgrc (issue1199)...
r7044
#issue 1199, escaping
cd ..
hg init "foo%bar"
hg clone "foo%bar" foobar
p=`pwd`
cd foobar
cat .hg/hgrc |sed -e "s:$p:...:"
hg paths |sed -e "s:$p:...:"
hg showconfig |sed -e "s:$p:...:"