Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Unified Diff: git_map_branches.py

Issue 1175103004: Fix "git cl map-branches -vvv" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_map_branches.py
diff --git a/git_map_branches.py b/git_map_branches.py
index 96e6896b371815d4a782b8a2b32004368fca89f2..cd43900597e16758610c39b6d6cd5446efabd492 100755
--- a/git_map_branches.py
+++ b/git_map_branches.py
@@ -126,7 +126,7 @@ class BranchMapper(object):
include_tracking_status=self.verbosity >= 1)
if (self.verbosity >= 2):
# Avoid heavy import unless necessary.
- from git_cl import get_cl_statuses
+ from git_cl import get_cl_statuses, color_for_status
status_info = get_cl_statuses(self.__branches_info.keys(),
fine_grained=self.verbosity > 2,
@@ -135,8 +135,8 @@ class BranchMapper(object):
for _ in xrange(len(self.__branches_info)):
# This is a blocking get which waits for the remote CL status to be
# retrieved.
- (branch, url, color) = status_info.next()
- self.__status_info[branch] = (url, color);
+ (branch, url, status) = status_info.next()
+ self.__status_info[branch] = (url, color_for_status(status))
roots = set()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698