diff options
Diffstat (limited to 'subcmds/status.py')
| -rw-r--r-- | subcmds/status.py | 8 | 
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)' | 
