Add manifest groups to the output of info

List the user's manifest groups when running `repo info`.

These groups are passed to `repo init` using the -g/--groups flag.

Change-Id: Ie8a4ed74a35b8b90df3b1ee198fe725b1cd68ae7
This commit is contained in:
Conley Owens 2013-03-05 10:35:36 -08:00
parent 45d21685b9
commit 61ac9ae090

View File

@ -53,7 +53,10 @@ class Info(PagedCommand):
self.opt = opt
mergeBranch = self.manifest.manifestProject.config.GetBranch("default").merge
manifestConfig = self.manifest.manifestProject.config
mergeBranch = manifestConfig.GetBranch("default").merge
manifestGroups = (manifestConfig.GetString('manifest.groups')
or 'all,-notdefault')
self.heading("Manifest branch: ")
self.headtext(self.manifest.default.revisionExpr)
@ -61,6 +64,9 @@ class Info(PagedCommand):
self.heading("Manifest merge branch: ")
self.headtext(mergeBranch)
self.out.nl()
self.heading("Manifest groups: ")
self.headtext(manifestGroups)
self.out.nl()
self.printSeparator()