summaryrefslogtreecommitdiffstats
path: root/subcmds/branches.py
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2012-10-09 14:29:46 -0700
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-10-09 14:29:46 -0700
commit3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63 (patch)
tree68ae5094d6530453887fb35a73fd5fa55f55a034 /subcmds/branches.py
parent25f17682ca4ecd8acc887462d4bebc7c429cf110 (diff)
parent8a68ff96057ec58e524a3e41a2d8dca7b5d016bc (diff)
downloadgit-repo-3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63.tar.gz
Merge "Coding style cleanup"
Diffstat (limited to 'subcmds/branches.py')
-rw-r--r--subcmds/branches.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/subcmds/branches.py b/subcmds/branches.py
index a4f8d360..81aa5b18 100644
--- a/subcmds/branches.py
+++ b/subcmds/branches.py
@@ -140,12 +140,12 @@ is shown, then the branch appears in all projects.
140 fmt = out.write 140 fmt = out.write
141 paths = [] 141 paths = []
142 if in_cnt < project_cnt - in_cnt: 142 if in_cnt < project_cnt - in_cnt:
143 type = 'in' 143 in_type = 'in'
144 for b in i.projects: 144 for b in i.projects:
145 paths.append(b.project.relpath) 145 paths.append(b.project.relpath)
146 else: 146 else:
147 fmt = out.notinproject 147 fmt = out.notinproject
148 type = 'not in' 148 in_type = 'not in'
149 have = set() 149 have = set()
150 for b in i.projects: 150 for b in i.projects:
151 have.add(b.project) 151 have.add(b.project)
@@ -153,11 +153,11 @@ is shown, then the branch appears in all projects.
153 if not p in have: 153 if not p in have:
154 paths.append(p.relpath) 154 paths.append(p.relpath)
155 155
156 s = ' %s %s' % (type, ', '.join(paths)) 156 s = ' %s %s' % (in_type, ', '.join(paths))
157 if width + 7 + len(s) < 80: 157 if width + 7 + len(s) < 80:
158 fmt(s) 158 fmt(s)
159 else: 159 else:
160 fmt(' %s:' % type) 160 fmt(' %s:' % in_type)
161 for p in paths: 161 for p in paths:
162 out.nl() 162 out.nl()
163 fmt(width*' ' + ' %s' % p) 163 fmt(width*' ' + ' %s' % p)