author | Thomas Arendsen Hein <thomas@intevation.de> |
Mon, 22 Aug 2005 19:56:52 +0200 | |
changeset 1009 | 1bc619b12025 |
parent 1008 | 85272e96b96a |
child 1010 | f46e809bbe87 |
--- a/hgeditor +++ b/hgeditor @@ -51,7 +51,11 @@ fi grep -vE '^(HG: manifest hash .*)?$' "$1" >> "$HGTMP/msg" CHECKSUM=`md5sum "$HGTMP/msg"` -$EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $? +if [ -s "$HGTMP/diff" ]; then + $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $? +else + $EDITOR "$HGTMP/msg" || exit $? +fi echo "$CHECKSUM" | md5sum -c >/dev/null 2>&1 && exit 13 if [ "$SIGN" == "1" ]; then