##// END OF EJS Templates
run-tests: give each child its own tmp dir (issue1911)...
run-tests: give each child its own tmp dir (issue1911) Fixes bug introduced by f8b4df4b033d (issue1911: --tmpdir plus parallel mode = fail), and also fixes the long-standing quirk that parallel mode created multiple /tmp/hgtests.XXXXXX directories. Now there is only one /tmp/hgtests.XXXXXX, with child0, child1, etc. under it.

File last commit:

r8167:6c82beaa default
r9899:be574a37 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