##// END OF EJS Templates
Do not use osutil.c with python 2.4 and Windows (issue1364)...
Do not use osutil.c with python 2.4 and Windows (issue1364) Windows python 2.4 os.stat() reports times including DST offset, while osutil.c reports the correct value, which makes status() systematically compare files content. This bug is fixed in python 2.5. Using osutil.py instead of osutil.c is 4x times slower on large repositories but current code is completely unusable. Given few people are likely to use python 2.4 on Windows this solution was considered a good trade-off compared to more invasive solutions trying to address the offset issue.

File last commit:

r10279:1c4ab236 stable
r10521:bde1bb25 stable
Show More
test-encode
48 lines | 770 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 *
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