summaryrefslogtreecommitdiffstats
path: root/subcmds/info.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/info.py')
-rw-r--r--subcmds/info.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/subcmds/info.py b/subcmds/info.py
index 8fb363f3..d42860ae 100644
--- a/subcmds/info.py
+++ b/subcmds/info.py
@@ -27,7 +27,7 @@ class Info(PagedCommand):
27 helpSummary = "Get info on the manifest branch, current branch or unmerged branches" 27 helpSummary = "Get info on the manifest branch, current branch or unmerged branches"
28 helpUsage = "%prog [-dl] [-o [-b]] [<project>...]" 28 helpUsage = "%prog [-dl] [-o [-b]] [<project>...]"
29 29
30 def _Options(self, p, show_smart=True): 30 def _Options(self, p):
31 p.add_option('-d', '--diff', 31 p.add_option('-d', '--diff',
32 dest='all', action='store_true', 32 dest='all', action='store_true',
33 help="show full info and commit diff including remote branches") 33 help="show full info and commit diff including remote branches")
@@ -53,7 +53,10 @@ class Info(PagedCommand):
53 53
54 self.opt = opt 54 self.opt = opt
55 55
56 mergeBranch = self.manifest.manifestProject.config.GetBranch("default").merge 56 manifestConfig = self.manifest.manifestProject.config
57 mergeBranch = manifestConfig.GetBranch("default").merge
58 manifestGroups = (manifestConfig.GetString('manifest.groups')
59 or 'all,-notdefault')
57 60
58 self.heading("Manifest branch: ") 61 self.heading("Manifest branch: ")
59 self.headtext(self.manifest.default.revisionExpr) 62 self.headtext(self.manifest.default.revisionExpr)
@@ -61,6 +64,9 @@ class Info(PagedCommand):
61 self.heading("Manifest merge branch: ") 64 self.heading("Manifest merge branch: ")
62 self.headtext(mergeBranch) 65 self.headtext(mergeBranch)
63 self.out.nl() 66 self.out.nl()
67 self.heading("Manifest groups: ")
68 self.headtext(manifestGroups)
69 self.out.nl()
64 70
65 self.printSeparator() 71 self.printSeparator()
66 72
@@ -157,7 +163,7 @@ class Info(PagedCommand):
157 all_branches = [] 163 all_branches = []
158 for project in self.GetProjects(args): 164 for project in self.GetProjects(args):
159 br = [project.GetUploadableBranch(x) 165 br = [project.GetUploadableBranch(x)
160 for x in project.GetBranches().keys()] 166 for x in project.GetBranches()]
161 br = [x for x in br if x] 167 br = [x for x in br if x]
162 if self.opt.current_branch: 168 if self.opt.current_branch:
163 br = [x for x in br if x.name == project.CurrentBranch] 169 br = [x for x in br if x.name == project.CurrentBranch]