summaryrefslogtreecommitdiffstats
path: root/subcmds/forall.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2015-08-05 01:01:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-08-05 01:01:02 +0000
commit43322283dc97b12e6d5b03c27fb780b0110f889a (patch)
treed34bfa5366fffa045f8d82158b19a5add4c588b9 /subcmds/forall.py
parent7e59de2bcc8513ba28701062be2637d90cb6eeff (diff)
parent0369a069ade1602879c16dd33dc592bed3f17c0f (diff)
downloadgit-repo-43322283dc97b12e6d5b03c27fb780b0110f889a.tar.gz
Merge "Support filtering by group on forall and list subcmd"
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r--subcmds/forall.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py
index b93cd6d0..96dc99d1 100644
--- a/subcmds/forall.py
+++ b/subcmds/forall.py
@@ -120,6 +120,9 @@ without iterating through the remaining projects.
120 p.add_option('-r', '--regex', 120 p.add_option('-r', '--regex',
121 dest='regex', action='store_true', 121 dest='regex', action='store_true',
122 help="Execute the command only on projects matching regex or wildcard expression") 122 help="Execute the command only on projects matching regex or wildcard expression")
123 p.add_option('-g', '--groups',
124 dest='groups',
125 help="Execute the command only on projects matching the specified groups")
123 p.add_option('-c', '--command', 126 p.add_option('-c', '--command',
124 help='Command (and arguments) to execute', 127 help='Command (and arguments) to execute',
125 dest='command', 128 dest='command',
@@ -213,7 +216,7 @@ without iterating through the remaining projects.
213 self.manifest.Override(smart_sync_manifest_path) 216 self.manifest.Override(smart_sync_manifest_path)
214 217
215 if not opt.regex: 218 if not opt.regex:
216 projects = self.GetProjects(args) 219 projects = self.GetProjects(args, groups=opt.groups)
217 else: 220 else:
218 projects = self.FindProjects(args) 221 projects = self.FindProjects(args)
219 222