Wed, 28 Oct 2015 23:10:34 -0400
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