diff -r 764b0350acb8 -r ca080d28d0af hgmerge --- a/hgmerge Thu Aug 04 17:16:41 2005 +0100 +++ b/hgmerge Thu Aug 04 17:23:31 2005 +0100 @@ -75,7 +75,8 @@ if patch "$LOCAL" < "$HGTMP/diff"; then cleanup_exit 0 else - $EDITOR "$LOCAL" "$LOCAL.rej" + # If rejects are empty after using the editor, merge was ok + $EDITOR "$LOCAL" "$LOCAL.rej" && test -s "$LOCAL.rej" || cleanup_exit 0 fi cleanup_exit 1 fi