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

r8452:cb93eee1 default
r10521:bde1bb25 stable
Show More
test-hgweb-filelog
51 lines | 994 B | text/plain | TextLexer
/ tests / test-hgweb-filelog
Martin Geisler
tests: add missing interpreter lines
r8452 #!/bin/sh
Dirkjan Ochtman
hgweb: conditionally show file logs for deleted files
r7300 hg init test
cd test
echo b > b
hg ci -Am "b"
echo a > a
hg ci -Am "first a"
hg rm a
hg ci -m "del a"
echo b > a
hg ci -Am "second a"
hg rm a
hg ci -m "del2 a"
Benoit Boissinot
web: use the correct filectx in filelog
r7612 hg mv b c
hg ci -m "mv b"
Stefan Ring
Improved hgweb test....
r7624 echo c >> c
hg ci -m "change c"
Dirkjan Ochtman
hgweb: conditionally show file logs for deleted files
r7300 hg log -p
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
cat hg.pid >> $DAEMON_PIDS
echo % tip - two revisions
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a')
echo % second version - two revisions
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a')
echo % first deleted - one revision
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a')
echo % first version - one revision
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a')
echo % before addition - error
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a')
Benoit Boissinot
web: use the correct filectx in filelog
r7612 echo % should show base link, use spartan because it shows it
("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan')
Dirkjan Ochtman
hgweb: conditionally show file logs for deleted files
r7300 echo % errors
cat errors.log