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

r6997:9c4e488f default
r10521:bde1bb25 stable
Show More
test-inotify-issue1208
24 lines | 427 B | text/plain | TextLexer
/ tests / test-inotify-issue1208
Benoit Boissinot
inotify: deactivate inotify status on failure...
r6996 #!/bin/sh
"$TESTDIR/hghave" inotify || exit 80
echo "[extensions]" >> $HGRCPATH
echo "inotify=" >> $HGRCPATH
p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
hg init $p
cd $p
Benoit Boissinot
inotify: workaround ENAMETOOLONG by using symlinks...
r6997 echo % fail
ln -sf doesnotexist .hg/inotify.sock
hg st
hg inserve
rm .hg/inotify.sock
Benoit Boissinot
inotify: deactivate inotify status on failure...
r6996 echo % inserve
Benoit Boissinot
inotify: workaround ENAMETOOLONG by using symlinks...
r6997 hg inserve -d --pid-file=hg.pid
cat hg.pid >> "$DAEMON_PIDS"
Benoit Boissinot
inotify: deactivate inotify status on failure...
r6996 echo % status
hg status
Benoit Boissinot
inotify: workaround ENAMETOOLONG by using symlinks...
r6997
kill `cat hg.pid`