##// END OF EJS Templates
tests: add more tests for names rendering in `hg show work`...
tests: add more tests for names rendering in `hg show work` This demonstrates some missing features. This will also help verify that a subsequent change has the intended effect.

File last commit:

r33046:11f76825 default
r33049:0b42c7ba default
Show More
map-cmdline.show
12 lines | 695 B | text/plain | TextLexer
# TODO there are a few deficiencies in this file:
# * The "namespace" of the labels needs to be worked out. We currently
# piggyback on existing values so color works.
# * Obsolescence isn't considered for node labels. See _cset_labels in
# map-cmdline.default.
showbookmarks = '{if(active, "*", " ")} {pad(bookmark, longestbookmarklen + 4)}{shortest(node, 5)}\n'
showwork = '{cset_shortnode}{cset_names} {cset_shortdesc}'
cset_shortnode = '{label("log.changeset changeset.{phase}", shortest(node, 5))}'
cset_names = '{if(branches, " ({label("log.branch", branch)})")}{if(bookmarks, " ({label("log.bookmarks", bookmarks)})")}'
cset_shortdesc = '{label("log.description", desc|firstline)}'