summaryrefslogtreecommitdiffstats
path: root/subcmds/status.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/status.py
parent25f17682ca4ecd8acc887462d4bebc7c429cf110 (diff)
parent8a68ff96057ec58e524a3e41a2d8dca7b5d016bc (diff)
downloadgit-repo-3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63.tar.gz
Merge "Coding style cleanup"
Diffstat (limited to 'subcmds/status.py')
-rw-r--r--subcmds/status.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/subcmds/status.py b/subcmds/status.py
index 75d68ebc..7611621e 100644
--- a/subcmds/status.py
+++ b/subcmds/status.py
@@ -98,18 +98,18 @@ the following meanings:
98 sem.release() 98 sem.release()
99 99
100 def Execute(self, opt, args): 100 def Execute(self, opt, args):
101 all = self.GetProjects(args) 101 all_projects = self.GetProjects(args)
102 counter = itertools.count() 102 counter = itertools.count()
103 103
104 if opt.jobs == 1: 104 if opt.jobs == 1:
105 for project in all: 105 for project in all_projects:
106 state = project.PrintWorkTreeStatus() 106 state = project.PrintWorkTreeStatus()
107 if state == 'CLEAN': 107 if state == 'CLEAN':
108 counter.next() 108 counter.next()
109 else: 109 else:
110 sem = _threading.Semaphore(opt.jobs) 110 sem = _threading.Semaphore(opt.jobs)
111 threads_and_output = [] 111 threads_and_output = []
112 for project in all: 112 for project in all_projects:
113 sem.acquire() 113 sem.acquire()
114 114
115 class BufList(StringIO.StringIO): 115 class BufList(StringIO.StringIO):
@@ -128,5 +128,5 @@ the following meanings:
128 t.join() 128 t.join()
129 output.dump(sys.stdout) 129 output.dump(sys.stdout)
130 output.close() 130 output.close()
131 if len(all) == counter.next(): 131 if len(all_projects) == counter.next():
132 print 'nothing to commit (working directory clean)' 132 print 'nothing to commit (working directory clean)'