diff options
Diffstat (limited to 'subcmds/branches.py')
-rw-r--r-- | subcmds/branches.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/subcmds/branches.py b/subcmds/branches.py index 81aa5b18..a7ba3d6d 100644 --- a/subcmds/branches.py +++ b/subcmds/branches.py | |||
@@ -93,17 +93,17 @@ is shown, then the branch appears in all projects. | |||
93 | def Execute(self, opt, args): | 93 | def Execute(self, opt, args): |
94 | projects = self.GetProjects(args) | 94 | projects = self.GetProjects(args) |
95 | out = BranchColoring(self.manifest.manifestProject.config) | 95 | out = BranchColoring(self.manifest.manifestProject.config) |
96 | all = {} | 96 | all_branches = {} |
97 | project_cnt = len(projects) | 97 | project_cnt = len(projects) |
98 | 98 | ||
99 | for project in projects: | 99 | for project in projects: |
100 | for name, b in project.GetBranches().iteritems(): | 100 | for name, b in project.GetBranches().iteritems(): |
101 | b.project = project | 101 | b.project = project |
102 | if name not in all: | 102 | if name not in all_branches: |
103 | all[name] = BranchInfo(name) | 103 | all_branches[name] = BranchInfo(name) |
104 | all[name].add(b) | 104 | all_branches[name].add(b) |
105 | 105 | ||
106 | names = all.keys() | 106 | names = all_branches.keys() |
107 | names.sort() | 107 | names.sort() |
108 | 108 | ||
109 | if not names: | 109 | if not names: |
@@ -116,7 +116,7 @@ is shown, then the branch appears in all projects. | |||
116 | width = len(name) | 116 | width = len(name) |
117 | 117 | ||
118 | for name in names: | 118 | for name in names: |
119 | i = all[name] | 119 | i = all_branches[name] |
120 | in_cnt = len(i.projects) | 120 | in_cnt = len(i.projects) |
121 | 121 | ||
122 | if i.IsCurrent: | 122 | if i.IsCurrent: |