change status colors to match update: modified items in cyan

This commit is contained in:
Josh Holtrop 2012-04-18 11:25:22 -04:00
parent b485f8c752
commit 7bbf0ef4e2

7
jsvn
View File

@ -786,14 +786,19 @@ def status(argv, svn, out):
external_printed = True external_printed = True
if re.match(STATUS_LINE_REGEX, line): if re.match(STATUS_LINE_REGEX, line):
action = line[0] action = line[0]
if action == 'A' or action == 'M': prop_action = line[1]
if action == 'A':
ansi_color(out, 'green') ansi_color(out, 'green')
elif action == 'M':
ansi_color(out, 'cyan')
elif action == 'C': elif action == 'C':
ansi_color(out, 'yellow') ansi_color(out, 'yellow')
elif action == 'D': elif action == 'D':
ansi_color(out, 'red') ansi_color(out, 'red')
elif action == 'R': elif action == 'R':
ansi_color(out, 'magenta') ansi_color(out, 'magenta')
elif action == ' ' and prop_action == 'M':
ansi_color(out, 'cyan')
elif action == 'X': elif action == 'X':
continue # don't print externals continue # don't print externals
out.write(line) out.write(line)