Add diffs to commit template

Wed, 28 Oct 2015 23:10:34 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 28 Oct 2015 23:10:34 -0400
changeset 219
9ab4c7db4b3a
parent 218
388973873b1b
child 220
a51ef0e93f75

Add diffs to commit template

.hgrc file | annotate | diff | comparison | revisions
--- a/.hgrc
+++ b/.hgrc
@@ -27,5 +27,14 @@ vimdiff.executable = vim
 vimdiff.args = -d $base $local $output $other +close +close
 vimdiff.check = changed, conflicts
 
+[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'}
 
 %include ~/.hgrc.local

mercurial