##// END OF EJS Templates
merge with stable
merge with stable

File last commit:

r10211:a474f950 stable
r10244:c4c0502b merge default
Show More
test-encode
48 lines | 746 B | text/plain | TextLexer
mpm@selenic.com
Add file encoding/decoding support
r1258 #!/bin/sh
hg init
cat > .hg/hgrc <<EOF
[encode]
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 not.gz = tr a-z A-Z
Patrick Mezard
tests: Windows compatibility fixes...
r7080 *.gz = gzip -d
mpm@selenic.com
Add file encoding/decoding support
r1258
[decode]
Mads Kiilerich
Update test and man page for multiple matching encode/decode filters
r10211 not.gz = tr A-Z a-z
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 *
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "test" -d "1000000 0"
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