edb16fb75b47

Add color for signoffs in the CLI.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 27 Mar 2010 11:10:18 -0400
parents 22de90ef33ed
children 1f723957f6e5
branches/tags (none)
files review/extension_ui.py

Changes

--- a/review/extension_ui.py	Sat Mar 27 11:10:12 2010 -0400
+++ b/review/extension_ui.py	Sat Mar 27 11:10:18 2010 -0400
@@ -204,11 +204,13 @@
     'deleted': ['red'],
     'inserted': ['green'],
     'comments': ['cyan'],
+    'signoffs': ['yellow'],
 }
 _review_re = [
     (re.compile(r'^(?P<rest> *\d+:  )(?P<colorized>[-].*)'), 'deleted'),
     (re.compile(r'^(?P<rest> *\d+:  )(?P<colorized>[+].*)'), 'inserted'),
     (re.compile(r'^(?P<colorized>#.*)'), 'comments'),
+    (re.compile(r'^(?P<colorized>\$.*)'), 'signoffs'),
 ]
 
 def colorwrap(orig, *args):