Mercurial > hg > easyhg
changeset 292:a1c8630a0057
Return success if the external diff/merge _is_ found, not if it isn't!
author | Chris Cannam |
---|---|
date | Mon, 21 Feb 2011 18:16:15 +0000 |
parents | 37f67999b661 |
children | 7b4f42cfc596 |
files | easyhg-extdiff.sh easyhg-merge.sh |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/easyhg-extdiff.sh Mon Feb 21 12:15:04 2011 +0000 +++ b/easyhg-extdiff.sh Mon Feb 21 18:16:15 2011 +0000 @@ -26,5 +26,5 @@ "$od" "$1" "$2" | cat fi fi -[ -z "$found" ] +[ -n "$found" ]
--- a/easyhg-merge.sh Mon Feb 21 12:15:04 2011 +0000 +++ b/easyhg-merge.sh Mon Feb 21 18:16:15 2011 +0000 @@ -27,7 +27,8 @@ if [ -z "$found" ]; then fm=/Developer/Applications/Utilities/FileMerge.app/Contents/MacOS/FileMerge if [ -x "$fm" ]; then + found=true "$fm" -left "$left" -merge "$out" -ancestor "$ancestor" -right "$right" fi fi -[ -z "$found" ] +[ -n "$found" ]