.hgrc

Sat, 10 Jun 2017 15:55:24 -0700

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 10 Jun 2017 15:55:24 -0700
changeset 597
bcc7823e8991
parent 591
2ee456c483b0
child 598
1698d432a2eb
permissions
-rw-r--r--

customize log color and format, simplify committemplate

[ui]
username = Meredith Howard <mhoward@roomag.org>
merge = vimdiff
logtemplate = "{phaseset} -{label('logcust.decorate', decorate)} {desc|strip|firstline} {label('logcust.date', "({date|age})")} {label('logcust.user' , "<{author|person}>")}\n"

[extensions]
color =
graphlog =
pager =
progress =
churn =
rebase =
record =
shelve =
histedit =
schemes =

[pager]
pager = LESS='FSRXi' less

[alias]
fetch = pull --rebase
ctags = !~/bin/git-ctags

[merge-tools]
vimdiff.executable = vim
vimdiff.args = -d $base $local $output $other +close +close
vimdiff.check = changed, conflicts

[diff]
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

[templatealias]
phaseset = "{label("changeset.{phase}", rev)}:{label('log.changeset', node|short)}"
decorate = "{if(branches, " ({branches})")}{if(tags, " <{tags}>")}{if(bookmarks, " [{bookmarks}]")}"

[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"              }{if(files,
   "HG: ------------------------ >8 ------------------------
    HG: Do not touch the line above.
    HG: Everything below will be removed.
    {diff()}", "HG: no files changed")}

%include ~/.hgext/hgrc
%include ~/.hgrc.local

mercurial