1 # TODO there are a few deficiencies in this file: |
1 # TODO there are a few deficiencies in this file: |
2 # * The "namespace" of the labels needs to be worked out. We currently |
2 # * The "namespace" of the labels needs to be worked out. We currently |
3 # piggyback on existing values so color works. |
3 # piggyback on existing values so color works. |
4 # * Obsolescence isn't considered for node labels. See _cset_labels in |
4 |
5 # map-cmdline.default. |
5 %include map-cmdline.default |
6 |
6 |
7 [templates] |
7 [templates] |
8 showbookmarks = '{if(active, "*", " ")} {pad(bookmark, longestbookmarklen + 4)}{shortest(node, nodelen)}\n' |
8 showbookmarks = '{if(active, "*", " ")} {pad(bookmark, longestbookmarklen + 4)}{shortest(node, nodelen)}\n' |
9 |
9 |
10 showwork = '{cset_shortnode}{namespaces % cset_namespace} {cset_shortdesc}' |
10 showwork = '{cset_shortnode}{namespaces % cset_namespace} {cset_shortdesc}' |
11 showstack = '{showwork}' |
11 showstack = '{showwork}' |
12 |
12 |
13 cset_shortnode = '{label("log.changeset changeset.{phase}", shortest(node, nodelen))}' |
13 cset_shortnode = '{labelcset(shortest(node, nodelen))}' |
14 |
14 |
15 # Treat branch and tags specially so we don't display "default" or "tip" |
15 # Treat branch and tags specially so we don't display "default" or "tip" |
16 cset_namespace = '{ifeq(namespace, "branches", names_branches, ifeq(namespace, "tags", names_tags, names_others))}' |
16 cset_namespace = '{ifeq(namespace, "branches", names_branches, ifeq(namespace, "tags", names_tags, names_others))}' |
17 names_branches = '{ifeq(branch, "default", "", " ({label('log.{colorname}', branch)})")}' |
17 names_branches = '{ifeq(branch, "default", "", " ({label('log.{colorname}', branch)})")}' |
18 names_tags = '{if(names % "{ifeq(name, 'tip', '', name)}", " ({label('log.{colorname}', join(names % "{ifeq(name, 'tip', '', name)}", ' '))})")}' |
18 names_tags = '{if(names % "{ifeq(name, 'tip', '', name)}", " ({label('log.{colorname}', join(names % "{ifeq(name, 'tip', '', name)}", ' '))})")}' |