##// END OF EJS Templates
tests: removed redundant "-d '0 0'" from test scripts...
tests: removed redundant "-d '0 0'" from test scripts The tests are executed with a .hgrc file which adds "-d '0 0'" by default.

File last commit:

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