diff options
| author | Dmitry Fink <dmitry@finik.net> | 2012-08-06 14:52:29 -0700 |
|---|---|---|
| committer | gerrit code review <noreply-gerritcodereview@google.com> | 2012-08-07 11:42:54 -0700 |
| commit | 17f85eab24739c2982bf0613a13b155f712e045d (patch) | |
| tree | 0ae1dffe2eed0bd32b89ab126de70562661593b3 | |
| parent | b9477bc2dd8ef1e931f208733976c56a0f2344a3 (diff) | |
| download | git-repo-17f85eab24739c2982bf0613a13b155f712e045d.tar.gz | |
Omit all default groups when generating a manifest
One of the recent changes introduced implicit path:xxx and name:xxx groups
to every project, however they are not being stripped when generating
a manifest using "repo manifest" command resulting in clutter
Change-Id: Iec8610ba794b2fe4a6cdf0f59ca561595b66f9b5
| -rw-r--r-- | manifest_xml.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index ea6a7e52..26cc14f6 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
| @@ -211,7 +211,8 @@ class XmlManifest(object): | |||
| 211 | ce.setAttribute('dest', c.dest) | 211 | ce.setAttribute('dest', c.dest) |
| 212 | e.appendChild(ce) | 212 | e.appendChild(ce) |
| 213 | 213 | ||
| 214 | egroups = [g for g in p.groups if g != 'default'] | 214 | default_groups = ['default', 'name:%s' % p.name, 'path:%s' % p.relpath] |
| 215 | egroups = [g for g in p.groups if g not in default_groups] | ||
| 215 | if egroups: | 216 | if egroups: |
| 216 | e.setAttribute('groups', ','.join(egroups)) | 217 | e.setAttribute('groups', ','.join(egroups)) |
| 217 | 218 | ||
