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

r5683:396c7010 default
r10521:bde1bb25 stable
Show More
test-archive-symlinks
32 lines | 567 B | text/plain | TextLexer
/ tests / test-archive-symlinks
Alexis S. L. Carvalho
archive: add symlink support
r4831 #!/bin/sh
Patrick Mezard
Skip test-archive-symlinks if symlinks are not available
r5069 "$TESTDIR/hghave" symlink || exit 80
Alexis S. L. Carvalho
archive: add symlink support
r4831 origdir=`pwd`
hg init repo
cd repo
ln -s nothing dangling
Alexis S. L. Carvalho
run-tests.py: add a default --date "0 0" argument to commit et al...
r5524 # avoid tar warnings about old timestamp
hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
Alexis S. L. Carvalho
archive: add symlink support
r4831
hg archive -t files ../archive
hg archive -t tar -p tar ../archive.tar
hg archive -t zip -p zip ../archive.zip
echo '% files'
cd "$origdir"
cd archive
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
archive: add symlink support
r4831
echo '% tar'
cd "$origdir"
tar xf archive.tar
cd tar
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
archive: add symlink support
r4831
echo '% zip'
cd "$origdir"
unzip archive.zip > /dev/null
cd zip
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling