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

r6479:31abcae3 default
r10521:bde1bb25 stable
Show More
test-hgignore
71 lines | 1.2 KiB | text/plain | TextLexer
Benoit Boissinot
add a test for hgignore
r1478 #!/bin/sh
hg init
Patrick Mezard
Test issue 562: .hgignore requires newline at end
r4439
# Test issue 562: .hgignore requires newline at end
touch foo
touch bar
touch baz
cat > makeignore.py <<EOF
f = open(".hgignore", "w")
f.write("ignore\n")
f.write("foo\n")
# No EOL here
f.write("bar")
f.close()
EOF
python makeignore.py
echo % should display baz only
hg status
rm foo bar baz .hgignore makeignore.py
Benoit Boissinot
add a test for hgignore
r1478 touch a.o
touch a.c
touch syntax
mkdir dir
touch dir/a.o
touch dir/b.o
touch dir/c.o
hg add dir/a.o
hg commit -m 0
hg add dir/b.o
echo "--" ; hg status
echo "*.o" > .hgignore
Thomas Arendsen Hein
Fix broken hgignore tests due to full path showing up in output.
r2009 echo "--" ; hg status 2>&1 | sed -e 's/abort: .*\.hgignore:/abort: .hgignore:/'
Benoit Boissinot
add a test for hgignore
r1478
echo ".*\.o" > .hgignore
echo "--" ; hg status
Patrick Mezard
dirstate: do not ignore current directory '.' (issue 1078)
r6479 # Check it does not ignore the current directory '.'
echo "^\." > .hgignore
echo "--" ; hg status
Thomas Arendsen Hein
Fix re: and glob: patterns in .hgignore (reported by Brad Schick)...
r5029 echo "glob:**.o" > .hgignore
echo "--" ; hg status
echo "glob:*.o" > .hgignore
echo "--" ; hg status
echo "syntax: glob" > .hgignore
echo "re:.*\.o" >> .hgignore
echo "--" ; hg status
Benoit Boissinot
add a test for hgignore
r1478
echo "syntax: invalid" > .hgignore
Thomas Arendsen Hein
Fix broken hgignore tests due to full path showing up in output.
r2009 echo "--" ; hg status 2>&1 | sed -e 's/.*\.hgignore:/.hgignore:/'
Benoit Boissinot
add a test for hgignore
r1478
echo "syntax: glob" > .hgignore
echo "*.o" >> .hgignore
echo "--" ; hg status
echo "relglob:syntax*" > .hgignore
echo "--" ; hg status
echo "relglob:*" > .hgignore
echo "--" ; hg status
Benoit Boissinot
fix a bug in dirstate.changes when cwd != repo.root...
r1491
cd dir
Benoit Boissinot
make all commands be repo-wide by default...
r1568 echo "--" ; hg status .