Skip to content
Snippets Groups Projects
Commit 1bc619b1 authored by Thomas Arendsen Hein's avatar Thomas Arendsen Hein
Browse files

Don't show the diff in hgeditor if there are no changes in file contents.

parent 85272e96
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,11 @@
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment