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

r8721:2816239e default
r10521:bde1bb25 stable
Show More
test-fncache
70 lines | 945 B | text/plain | TextLexer
Adrian Buehlmann
add test-fncache
r7290 #!/bin/sh
echo "% init repo1"
hg init repo1
cd repo1
echo
echo "% add a; ci"
echo "some text" > a
hg add
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m first
Adrian Buehlmann
add test-fncache
r7290
echo
echo "% cat .hg/store/fncache"
cat .hg/store/fncache
echo
echo "% add a.i/b; ci"
mkdir a.i
echo "some other text" > a.i/b
hg add
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m second
Adrian Buehlmann
add test-fncache
r7290
echo
echo "% cat .hg/store/fncache"
cat .hg/store/fncache
echo
echo "% add a.i.hg/c; ci"
mkdir a.i.hg
echo "yet another text" > a.i.hg/c
hg add
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m third
Adrian Buehlmann
add test-fncache
r7290
echo
echo "% cat .hg/store/fncache"
cat .hg/store/fncache
echo
echo "% hg verify"
hg verify
echo
echo "% rm .hg/store/fncache"
rm .hg/store/fncache
echo
echo "% hg verify"
hg verify
Benoit Boissinot
store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
r8633 # try non store repo encoding
cd ..
echo % non store repo
hg --config format.usestore=False init foo
cd foo
mkdir tst.d
echo foo > tst.d/foo
hg ci -Amfoo
Will Maier
test-fncache: Use find instead of ls -R....
r8721 find .hg | sort
Benoit Boissinot
store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
r8633
cd ..
echo % non fncache repo
hg --config format.usefncache=False init bar
cd bar
mkdir tst.d
echo foo > tst.d/Foo
hg ci -Amfoo
Will Maier
test-fncache: Use find instead of ls -R....
r8721 find .hg | sort
Benoit Boissinot
store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
r8633
Adrian Buehlmann
add test-fncache
r7290 exit 0