.hgrc.logtemplates

changeset 845
682c71a60aad
equal deleted inserted replaced
844:d82511ead246 845:682c71a60aad
1 [color]
2 diff.hunk = cyan
3 log.changeset = magenta
4 logcust.date = green
5 logcust.user = cyan
6 logcust.decorate = yellow
7 changeset.draft = dim
8 changeset.secret = dim underline
9
10 [templates]
11 logcust = "{phaseset} -{label('logcust.decorate', decorate)} {desc|strip|firstline} {label('logcust.date', "({date|age})")} {label('logcust.user' , "<{author|person}>")}\n"
12
13 [templatealias]
14 phaseset = "{label("changeset.{phase}", rev)}:{label('log.changeset', node|short)}"
15 decorate = "{if(branches, " ({branches})")}{if(tags, " <{tags}>")}{if(bookmarks, " [{bookmarks}]")}{if(topics, " @{topics}")}"
16
17 [committemplate]
18 changeset = {desc}\n\n
19 HG: {extramsg}
20 HG: user: {author}\n{ifeq(p2rev, "-1", "",
21 "HG: branch merge\n")
22 }HG: branch '{branch}'\n{if(currentbookmark,
23 "HG: bookmark '{currentbookmark}'\n") }{subrepos %
24 "HG: subrepo {subrepo}\n" }
25 {splitlines(diff()) % 'HG: {line}\n'}

mercurial