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
diff --git a/ b/
index ea6a7e5..26cc14f 100644
--- a/
+++ b/
@@ -211,7 +211,8 @@
         ce.setAttribute('dest', c.dest)
-      egroups = [g for g in p.groups if g != 'default']
+      default_groups = ['default', 'name:%s' %, 'path:%s' % p.relpath]
+      egroups = [g for g in p.groups if g not in default_groups]
       if egroups:
         e.setAttribute('groups', ','.join(egroups))