.hgrc.logtemplates

Thu, 08 Jul 2021 12:59:19 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 08 Jul 2021 12:59:19 -0500
changeset 923
1bb170fcd13b
parent 845
682c71a60aad
permissions
-rw-r--r--

cursed: gopls ignores structured or namespaced config, only the final key name matters

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

mercurial