diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/status.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/subcmds/status.py b/subcmds/status.py index 1615b423..853f1508 100644 --- a/subcmds/status.py +++ b/subcmds/status.py | |||
@@ -23,5 +23,12 @@ class Status(PagedCommand): | |||
23 | """ | 23 | """ |
24 | 24 | ||
25 | def Execute(self, opt, args): | 25 | def Execute(self, opt, args): |
26 | for project in self.GetProjects(args): | 26 | all = self.GetProjects(args) |
27 | project.PrintWorkTreeStatus() | 27 | clean = 0 |
28 | |||
29 | for project in all: | ||
30 | state = project.PrintWorkTreeStatus() | ||
31 | if state == 'CLEAN': | ||
32 | clean += 1 | ||
33 | if len(all) == clean: | ||
34 | print 'nothing to commit (working directory clean)' | ||