.hgrc.logtemplates

Thu, 16 May 2024 14:51:53 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 16 May 2024 14:51:53 -0500
changeset 1167
f5f84f890974
parent 845
682c71a60aad
permissions
-rw-r--r--

Update for neovim 0.10

Drop editorconfig (added to 0.9)
Gate pull_diags (added to 0.10)

[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'}

mercurial