Skip to content
Snippets Groups Projects
Commit a8db48e9 authored by Sean Farley's avatar Sean Farley
Browse files

color: fallback and test label as an effect

With this changeset, we can now send a color name directly to the label
function, e.g.

$ hg log -r . -T "{label('red', node|short)}\n"
parent 05086b56
No related branches found
No related tags found
No related merge requests found
......@@ -382,6 +382,8 @@
s = _styles.get(l, '')
if s:
effects.append(s)
elif valideffect(l):
effects.append(l)
effects = ' '.join(effects)
if effects:
return '\n'.join([render_effects(s, effects)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment