# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1408915648 14400 # Node ID f8e2aebbb24cf94b97e1a91ec4bbc1d07a9cfe65 # Parent 964dd1c491ca29d928553297b2148b5deb71f50e color: document that changeset phases have labels It's very useful to be able to colourise csets according to their phases. There was no indication anywhere in the docs that this is possible. We use e.g. `changeset.secret = ` instead of `changeset.secret ='none'`, because otherwise this is a BC: it would nullify the effects given to log.changeset label that usually surrounds the changeset.{phase} labels. Specifying the label without any effect instead of 'none' is a true no-op change and purely documentation. diff -r 964dd1c491ca -r f8e2aebbb24c hgext/color.py --- a/hgext/color.py Fri Sep 19 12:51:15 2014 -0500 +++ b/hgext/color.py Sun Aug 24 17:27:28 2014 -0400 @@ -63,6 +63,11 @@ diff.changed = white diff.trailingwhitespace = bold red_background + # Blank so it inherits the style of the surrounding label + changeset.public = + changeset.draft = + changeset.secret = + resolve.unresolved = red bold resolve.resolved = green bold @@ -275,6 +280,9 @@ 'diff.hunk': 'magenta', 'diff.inserted': 'green', 'diff.trailingwhitespace': 'bold red_background', + 'changeset.public' : '', + 'changeset.draft' : '', + 'changeset.secret' : '', 'diffstat.deleted': 'red', 'diffstat.inserted': 'green', 'histedit.remaining': 'red bold',