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

r8167:6c82beaa default
r10521:bde1bb25 stable
Show More
test-dumprevlog
61 lines | 908 B | text/plain | TextLexer
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465 #!/bin/sh
CONTRIBDIR=$TESTDIR/../contrib
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo % prepare repo-a
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465 mkdir repo-a
cd repo-a
hg init
echo this is file a > a
hg add a
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg commit -m first
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
echo adding to file a >> a
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg commit -m second
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
echo adding more to file a >> a
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg commit -m third
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
hg verify
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo
echo % dumping revlog of file a to stdout
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465 python $CONTRIBDIR/dumprevlog .hg/store/data/a.i
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo % dumprevlog done
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo
echo % dump all revlogs to file repo.dump
Adrian Buehlmann
fixed missing sorting in test-dumprevlog...
r6516 find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
cd ..
mkdir repo-b
cd repo-b
hg init
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo
echo % undumping into repo-b
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465 python $CONTRIBDIR/undumprevlog < ../repo.dump
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo % undumping done
cd ..
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo
echo % clone --pull repo-b repo-c to rebuild fncache
hg clone --pull -U repo-b repo-c
cd repo-c
echo
echo % verify repo-c
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465 hg verify
cd ..
Adrian Buehlmann
introduce fncache repository layout...
r7229 echo
echo % comparing repos
hg -R repo-c incoming repo-a
hg -R repo-a incoming repo-c
Adrian Buehlmann
add tests for contrib/dumprevlog and undumprevlog
r6465
exit 0