##// END OF EJS Templates
tests: add hack to avoid problem with graphlog in unified tests
tests: add hack to avoid problem with graphlog in unified tests

File last commit:

r12156:4c94b6d0 default
r12338:b016fc1c default
Show More
test-encode
48 lines | 755 B | text/plain | TextLexer
mpm@selenic.com
Add file encoding/decoding support
r1258 #!/bin/sh
hg init
cat > .hg/hgrc <<EOF
[encode]
Mads Kiilerich
test-encode: Use tr chacter classes instead of character ranges...
r10279 not.gz = tr [:lower:] [:upper:]
Patrick Mezard
tests: Windows compatibility fixes...
r7080 *.gz = gzip -d
mpm@selenic.com
Add file encoding/decoding support
r1258
[decode]
Mads Kiilerich
test-encode: Use tr chacter classes instead of character ranges...
r10279 not.gz = tr [:upper:] [:lower:]
mpm@selenic.com
Add file encoding/decoding support
r1258 *.gz = gzip
EOF
echo "this is a test" | gzip > a.gz
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 echo "this is a test" > not.gz
hg add *
Martin Geisler
tests: remove unneeded -d flags...
r12156 hg ci -m "test"
mpm@selenic.com
Add file encoding/decoding support
r1258 echo %% no changes
hg status
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 touch *
mpm@selenic.com
Add file encoding/decoding support
r1258
echo %% no changes
hg status
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 echo %% check contents in repo are encoded
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 hg debugdata .hg/store/data/a.gz.d 0
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 hg debugdata .hg/store/data/not.gz.d 0
mpm@selenic.com
Add file encoding/decoding support
r1258
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 echo %% check committed content was decoded
mpm@selenic.com
Add file encoding/decoding support
r1258 gunzip < a.gz
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 cat not.gz
mpm@selenic.com
Add file encoding/decoding support
r1258
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 rm *
Matt Mackall
merge: allow merging going backwards...
r8742 hg co -C
mpm@selenic.com
Add file encoding/decoding support
r1258
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 echo %% check decoding of our new working dir copy
mpm@selenic.com
Add file encoding/decoding support
r1258 gunzip < a.gz
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 cat not.gz
Jesse Glick
Option --decode for hg cat to apply decode filters....
r6093
echo %% check hg cat operation
hg cat a.gz
Thomas Arendsen Hein
cat --decode: Drop short option, use opts.get() instead of opts[]...
r6094 hg cat --decode a.gz | gunzip
Jesse Glick
Option --decode for hg cat to apply decode filters....
r6093 mkdir subdir
cd subdir
hg -R .. cat ../a.gz
Thomas Arendsen Hein
cat --decode: Drop short option, use opts.get() instead of opts[]...
r6094 hg -R .. cat --decode ../a.gz | gunzip