diff options
author | Conley Owens <cco3@android.com> | 2012-10-09 14:29:46 -0700 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-10-09 14:29:46 -0700 |
commit | 3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63 (patch) | |
tree | 68ae5094d6530453887fb35a73fd5fa55f55a034 /subcmds/prune.py | |
parent | 25f17682ca4ecd8acc887462d4bebc7c429cf110 (diff) | |
parent | 8a68ff96057ec58e524a3e41a2d8dca7b5d016bc (diff) | |
download | git-repo-3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63.tar.gz |
Merge "Coding style cleanup"
Diffstat (limited to 'subcmds/prune.py')
-rw-r--r-- | subcmds/prune.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/subcmds/prune.py b/subcmds/prune.py index f412bd48..c50a5507 100644 --- a/subcmds/prune.py +++ b/subcmds/prune.py | |||
@@ -24,11 +24,11 @@ class Prune(PagedCommand): | |||
24 | """ | 24 | """ |
25 | 25 | ||
26 | def Execute(self, opt, args): | 26 | def Execute(self, opt, args): |
27 | all = [] | 27 | all_branches = [] |
28 | for project in self.GetProjects(args): | 28 | for project in self.GetProjects(args): |
29 | all.extend(project.PruneHeads()) | 29 | all_branches.extend(project.PruneHeads()) |
30 | 30 | ||
31 | if not all: | 31 | if not all_branches: |
32 | return | 32 | return |
33 | 33 | ||
34 | class Report(Coloring): | 34 | class Report(Coloring): |
@@ -36,13 +36,13 @@ class Prune(PagedCommand): | |||
36 | Coloring.__init__(self, config, 'status') | 36 | Coloring.__init__(self, config, 'status') |
37 | self.project = self.printer('header', attr='bold') | 37 | self.project = self.printer('header', attr='bold') |
38 | 38 | ||
39 | out = Report(all[0].project.config) | 39 | out = Report(all_branches[0].project.config) |
40 | out.project('Pending Branches') | 40 | out.project('Pending Branches') |
41 | out.nl() | 41 | out.nl() |
42 | 42 | ||
43 | project = None | 43 | project = None |
44 | 44 | ||
45 | for branch in all: | 45 | for branch in all_branches: |
46 | if project != branch.project: | 46 | if project != branch.project: |
47 | project = branch.project | 47 | project = branch.project |
48 | out.nl() | 48 | out.nl() |