Download:
child 23:23199deecca4
parent 21:51e6cdf5fbeb
22:e54f8d1eabf4
Anton Shestakov <engored@ya.ru>, Fri, 04 Oct 2013 23:37:03 +0900
Use vim as an editor (the hack), but open diff on a side of commit message (the goodie).

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
.hgeditor file | annotate | diff | comparison | revisions
--- a/.hgeditor Fri Oct 04 23:33:02 2013 +0900
+++ b/.hgeditor Fri Oct 04 23:37:03 2013 +0900
@@ -45,7 +45,7 @@
MD5=$(which md5 2>/dev/null)
[ -x "${MD5}" ] && CHECKSUM=`${MD5} "$HGTMP/msg"`
if [ -s "$HGTMP/diff" ]; then
- $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $?
+ vim "+e $HGTMP/diff" '+set buftype=help filetype=diff' "+vsplit $HGTMP/msg" || exit $?
else
$EDITOR "$HGTMP/msg" || exit $?
fi