summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorMichael Kelly <mkelly@arista.com>2021-07-02 09:25:48 -0700
committerMichael Kelly <mkelly@arista.com>2021-07-20 04:56:12 +0000
commitc34b91c9d80d6d6510c500cb8a8a9ee448963f09 (patch)
tree6e9010879d883384caa50faa1b3adb60f8d59fe8 /manifest_xml.py
parent0a1f533e2835c856473e3e4046341a4d2f66764b (diff)
downloadgit-repo-c34b91c9d80d6d6510c500cb8a8a9ee448963f09.tar.gz
manifest: Support ignoring local manifests with 'repo manifest'
Currently users need to look up the baseline manifest by loading the specific manifest file. This exposes them to the internals of how the manifest is stored which may potentially be fragile (eg: It was switched from a symlink pointing at the file in the report to an actual file with an 'include' tag). Instead of doing this, we can provide an option to the 'repo manifest' command which will emit the baseline manifest and decouple users from the internal manifest details. Change-Id: I12ee9160feaa591484ae71f404bc529be500ae4e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/311202 Tested-by: Michael Kelly <mkelly@arista.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index be74bf49..22758cfd 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -626,6 +626,13 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md
626 return set(x.strip() for x in exclude.split(',')) 626 return set(x.strip() for x in exclude.split(','))
627 627
628 @property 628 @property
629 def UseLocalManifests(self):
630 return self._load_local_manifests
631
632 def SetUseLocalManifests(self, value):
633 self._load_local_manifests = value
634
635 @property
629 def HasLocalManifests(self): 636 def HasLocalManifests(self):
630 return self._load_local_manifests and self.local_manifests 637 return self._load_local_manifests and self.local_manifests
631 638