summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2013-03-05 10:35:36 -0800
committerConley Owens <cco3@android.com>2013-03-07 09:47:29 -0800
commit61ac9ae090d81bfd086ed8b3ca961de1cc77e3cc (patch)
treeba0c8b1f88d02e7e6216acba3c4f759cc48b4f8c
parent45d21685b93f80b67239849b2d2cfe6b217e335a (diff)
downloadgit-repo-61ac9ae090d81bfd086ed8b3ca961de1cc77e3cc.tar.gz
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
-rw-r--r--subcmds/info.py8
1 files changed, 7 insertions, 1 deletions
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):
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