summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 32f6b687..12614c64 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -502,7 +502,8 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md
502 """ 502 """
503 return [x for x in re.split(r'[,\s]+', field) if x] 503 return [x for x in re.split(r'[,\s]+', field) if x]
504 504
505 def ToXml(self, peg_rev=False, peg_rev_upstream=True, peg_rev_dest_branch=True, groups=None): 505 def ToXml(self, peg_rev=False, peg_rev_upstream=True,
506 peg_rev_dest_branch=True, groups=None, omit_local=False):
506 """Return the current manifest XML.""" 507 """Return the current manifest XML."""
507 mp = self.manifestProject 508 mp = self.manifestProject
508 509
@@ -583,6 +584,9 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md
583 if not p.MatchesGroups(groups): 584 if not p.MatchesGroups(groups):
584 return 585 return
585 586
587 if omit_local and self.IsFromLocalManifest(p):
588 return
589
586 name = p.name 590 name = p.name
587 relpath = p.relpath 591 relpath = p.relpath
588 if parent: 592 if parent: