##// 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:

r3853:c0b44915 default
r10521:bde1bb25 stable
Show More
test-pull-permission
19 lines | 181 B | text/plain | TextLexer
/ tests / test-pull-permission
mpm@selenic.com
clone: fall back to pull if we can't lock the source repo
r1244 #!/bin/sh
mkdir a
cd a
hg init
echo foo > b
hg add b
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "b" -d "1000000 0"
mpm@selenic.com
clone: fall back to pull if we can't lock the source repo
r1244
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 chmod -w .hg/store
mpm@selenic.com
clone: fall back to pull if we can't lock the source repo
r1244
cd ..
hg clone a b
Benoit Boissinot
make test-pull-permission cleanup correctly in case of errors
r1750
Benoit Boissinot
switch to the .hg/store layout, fix the tests
r3853 chmod +w a/.hg/store # let test clean up
Benoit Boissinot
make test-pull-permission cleanup correctly in case of errors
r1750
mpm@selenic.com
clone: fall back to pull if we can't lock the source repo
r1244 cd b
hg verify