##// 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-issue522
31 lines | 632 B | text/plain | TextLexer
Alexis S. L. Carvalho
merge: forcefully mark files that we get from the second parent as dirty...
r5210 #!/bin/sh
# In the merge below, the file "foo" has the same contents in both
# parents, but if we look at the file-level history, we'll notice that
# the version in p1 is an ancestor of the version in p2. This test
# makes sure that we'll use the version from p2 in the manifest of the
# merge revision.
hg init repo
cd repo
echo foo > foo
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -qAm 'add foo'
Alexis S. L. Carvalho
merge: forcefully mark files that we get from the second parent as dirty...
r5210
echo bar >> foo
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m 'change foo'
Alexis S. L. Carvalho
merge: forcefully mark files that we get from the second parent as dirty...
r5210
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg backout -r tip -m 'backout changed foo'
Alexis S. L. Carvalho
merge: forcefully mark files that we get from the second parent as dirty...
r5210
hg up -C 0
touch bar
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -qAm 'add bar'
Alexis S. L. Carvalho
merge: forcefully mark files that we get from the second parent as dirty...
r5210
hg merge --debug
hg debugstate | grep foo
hg st -A foo
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m 'merge'
Alexis S. L. Carvalho
merge: forcefully mark files that we get from the second parent as dirty...
r5210
hg manifest --debug | grep foo
hg debugindex .hg/store/data/foo.i