# HG changeset patch # User Meredith Howard # Date 1577045470 21600 # Node ID 682c71a60aaddd329a1beec160938225543d0708 # Parent d82511ead2461e05e381ba60f60f6d02610e107a Move log templates & colors to include file diff --git a/.hgrc b/.hgrc --- a/.hgrc +++ b/.hgrc @@ -30,31 +30,6 @@ vimdiff.check = changed, conflicts git = true showfunc = true -[color] -diff.hunk = cyan -log.changeset = magenta -logcust.date = green -logcust.user = cyan -logcust.decorate = yellow -changeset.draft = dim -changeset.secret = dim underline - -[templates] -logcust = "{phaseset} -{label('logcust.decorate', decorate)} {desc|strip|firstline} {label('logcust.date', "({date|age})")} {label('logcust.user' , "<{author|person}>")}\n" - -[templatealias] -phaseset = "{label("changeset.{phase}", rev)}:{label('log.changeset', node|short)}" -decorate = "{if(branches, " ({branches})")}{if(tags, " <{tags}>")}{if(bookmarks, " [{bookmarks}]")}{if(topics, " @{topics}")}" - -[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.logtemplates %include ~/.hgext/hgrc %include ~/.hgrc.local diff --git a/.hgrc.logtemplates b/.hgrc.logtemplates new file mode 100644 --- /dev/null +++ b/.hgrc.logtemplates @@ -0,0 +1,25 @@ +[color] +diff.hunk = cyan +log.changeset = magenta +logcust.date = green +logcust.user = cyan +logcust.decorate = yellow +changeset.draft = dim +changeset.secret = dim underline + +[templates] +logcust = "{phaseset} -{label('logcust.decorate', decorate)} {desc|strip|firstline} {label('logcust.date', "({date|age})")} {label('logcust.user' , "<{author|person}>")}\n" + +[templatealias] +phaseset = "{label("changeset.{phase}", rev)}:{label('log.changeset', node|short)}" +decorate = "{if(branches, " ({branches})")}{if(tags, " <{tags}>")}{if(bookmarks, " [{bookmarks}]")}{if(topics, " @{topics}")}" + +[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'}