.hgrc

Sun, 22 Dec 2019 13:48:42 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 22 Dec 2019 13:48:42 -0600
changeset 844
d82511ead246
parent 843
7968d9507ddb
child 845
682c71a60aad
permissions
-rw-r--r--

Add topics to log template

[ui]
username    = Meredith Howard <mhoward@roomag.org>
merge       = vimdiff
logtemplate = "{logcust}"

[extensions]
rebase =
shelve =
histedit =

[pager]
pager = LESS='FSRXi' less

[alias]
fetch   = pull --rebase
rec     = commit -i
record  = commit -i
crecord = !hg commit -i --config ui.interface=curses
unrec   = revert -iC
ctags   = !~/bin/git-ctags
glog    = log -G
draft   = log -r 'reverse(not public())'

[merge-tools]
vimdiff.executable = vim
vimdiff.args       = -d -c 'hid|hid' $base $local $output $other
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

[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 ~/.hgext/hgrc
%include ~/.hgrc.local

mercurial