diff mercurial/color.py @ 35347:bd326f3e0e14

debugformat: update label depending on value difference The new label highlight areas where the repo format differs from current config or default. This should help people spot area where a repository mismatch with the expected state.
author Boris Feld <boris.feld@octobus.net>
date Thu, 07 Dec 2017 16:12:32 +0100
parents 6ba79cf34f5e
children a4478f74ad56
line wrap: on
line diff
--- a/mercurial/color.py	Thu Dec 07 16:05:20 2017 +0100
+++ b/mercurial/color.py	Thu Dec 07 16:12:32 2017 +0100
@@ -102,6 +102,15 @@
     'changeset.secret': '',
     'diffstat.deleted': 'red',
     'diffstat.inserted': 'green',
+    'formatvariant.name.mismatchconfig': 'red',
+    'formatvariant.name.mismatchdefault': 'yellow',
+    'formatvariant.name.uptodate': 'green',
+    'formatvariant.repo.mismatchconfig': 'red',
+    'formatvariant.repo.mismatchdefault': 'yellow',
+    'formatvariant.repo.uptodate': 'green',
+    'formatvariant.config.special': 'yellow',
+    'formatvariant.config.default': 'green',
+    'formatvariant.default': '',
     'histedit.remaining': 'red bold',
     'ui.prompt': 'yellow',
     'log.changeset': 'yellow',