From 61ac9ae090d81bfd086ed8b3ca961de1cc77e3cc Mon Sep 17 00:00:00 2001 From: Conley Owens Date: Tue, 5 Mar 2013 10:35:36 -0800 Subject: [PATCH] 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 --- subcmds/info.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/subcmds/info.py b/subcmds/info.py index 8fb363f3..325874b5 100644 --- a/subcmds/info.py +++ b/subcmds/info.py @@ -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()