changeset 20:0638cfc84490

Use a commit template for diffs
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 11 Feb 2015 09:19:33 -0500
parents 7ef4f2da9aa9
children 06e3f0f4d6ed
files hgrc
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgrc
+++ b/hgrc
@@ -45,6 +45,17 @@
 attend = tags, help, annotate, cat, diff, export, status,\
          outgoing, incoming, glog, log, grep, pvr, wip
 
+[committemplate]
+changeset = {desc}\n\n
+    HG: {extramsg}
+    HG: user: {author}\n{ifeq(p2rev, "-1", "",
+   "HG: branch merge\n")
+   }HG: branch '{branch}'\n{if(currentbookmark,
+   "HG: bookmark '{currentbookmark}'\n")  }{subrepos %
+   "HG: subrepo {subrepo}\n"              }
+   {splitlines(diff()) % 'HG: {line}\n'}
+
+
 # This defines my custom xterm-256 colours.
 [color]
 mode=terminfo