141:66e31ac77c94
Anton Shestakov <av6@dwimlabs.net>, Thu, 22 Dec 2016 13:41:34 +0800
.hgrc: have a committemplate and use it in .hgeditor for showing diff

next change 145:1b22798650c4
previous change 139:e8679f95a518

.hgrc

Permissions: -rw-r--r--

Other formats: Feeds:
[ui]
username = Anton Shestakov <av6@dwimlabs.net>
ssh = ssh -C
editor = ~/.hgeditor
mergemarkers = detailed
interface = curses
[phases]
publish = False
[diff]
git = True
showfunc = True
[extensions]
pager =
color =
rebase =
shelve =
histedit =
strip =
[alias]
gl = log --pager=always -G
pvr = log --pager=always -pvr
stripout = strip -r 'outgoing()'
reword = commit -X 're:' --amend
. = pvr .
[progress]
format = topic bar number item speed estimate
delay = 1
[patchbomb]
intro = never
[pager]
pager = less -FSRX --ignore-case
[color]
status.added = green
status.unknown = none
changeset.public = green
changeset.secret = red
[committemplate]
changeset = {desc}\n\n
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: {extramsg}
HG: --
HG: user: {author}\n{ifeq(p2rev, "-1", "",
"HG: branch merge\n")
}HG: branch '{branch}'\n{if(activebookmark,
"HG: bookmark '{activebookmark}'\n") }{subrepos %
"HG: subrepo {subrepo}\n" }{file_adds %
"HG: added {file}\n" }{file_mods %
"HG: changed {file}\n" }{file_dels %
"HG: removed {file}\n" }{if(files, "",
"HG: no files changed\n")
}HG: --- 8< ---
{splitlines(diff()) % 'HG: {line}\n'}