Mercurial > hg > easyhg
view easyhg-extdiff.sh @ 691:5b3bcb2d0943
Update handling of auth extension load failures on Windows: hg itself is returning a successful error code, so we must check the output in the extension test phase. Also fix a failure & crash when trying to use fallback auth mechanism
author | Chris Cannam |
---|---|
date | Mon, 10 Dec 2018 12:03:04 +0000 |
parents | d63711ff6740 |
children |
line wrap: on
line source
#!/bin/bash -x p=`dirname $0` if [ $# -lt 2 ]; then echo Insufficient arguments: $@ exit 2 fi while [ $# -gt 2 ]; do shift done for d in easyhg-kdiff3 easyhg-kdiff3.exe kdiff3 kdiff3.exe; do if [ -x "$p/$d" ]; then exec "$p/$d" "$1" "$2" elif [ -x "$(type -path $d)" ]; then exec "$d" "$1" "$2" fi done od=/usr/bin/opendiff if [ -x "$od" ]; then "$od" "$1" "$2" | cat exit 0 fi exit 1