##// END OF EJS Templates
convert: help string cleanups
convert: help string cleanups

File last commit:

r11451:51021f4c stable
r12186:3417b3d9 stable
Show More
test-resolve
33 lines | 548 B | text/plain | TextLexer
Martin Geisler
reset mergestate after commit
r7734 #!/bin/sh
# test that a commit clears the merge state.
hg init repo
cd repo
echo foo > file
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg commit -Am 'add file'
Martin Geisler
reset mergestate after commit
r7734
echo bar >> file
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg commit -Am 'append bar'
Martin Geisler
reset mergestate after commit
r7734
echo % create a second head
hg up -C 0
echo baz >> file
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg commit -Am 'append baz'
Martin Geisler
reset mergestate after commit
r7734
echo % failing merge
HGMERGE=internal:fail hg merge
echo resolved > file
hg resolve -m file
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg commit -m 'resolved'
Martin Geisler
reset mergestate after commit
r7734
echo % resolve -l, should be empty
hg resolve -l
Martin Geisler
resolve: do not crash on empty mergestate...
r11451
# test crashed merge with empty mergestate
mkdir .hg/merge
touch .hg/merge/state
echo % resolve -l, should be empty
hg resolve -l