.hgrc

changeset 219
9ab4c7db4b3a
parent 209
557d2468f900
child 222
1dc0597fe712
--- 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