--- a/.hgeditor Sun May 15 11:25:03 2016 +0800
+++ b/.hgeditor Sat Jul 09 01:45:49 2016 +0800
# This is an example of using HGEDITOR to create of diff to review the
# changes while commiting.
-# If you want to pass your favourite editor some other parameters
-# only for Mercurial, modify this:
- EDITOR="sensible-editor"
MD5=$(which md5 2>/dev/null)
[ -x "${MD5}" ] && CHECKSUM=`${MD5} "$HGTMP/msg"`
if [ -s "$HGTMP/diff" ]; then
- vim "+e $HGTMP/diff" '+set buftype=help filetype=diff' "+vsplit $HGTMP/msg" || exit $?
+ vim -f "+e $HGTMP/diff" '+set buftype=help filetype=diff' "+vsplit $HGTMP/msg" || exit $?
- $EDITOR "$HGTMP/msg" || exit $?
+ vim -f "$HGTMP/msg" || exit $?
[ -x "${MD5}" ] && (echo "$CHECKSUM" | ${MD5} -c >/dev/null 2>&1 && exit 13)