From c34b91c9d80d6d6510c500cb8a8a9ee448963f09 Mon Sep 17 00:00:00 2001 From: Michael Kelly Date: Fri, 2 Jul 2021 09:25:48 -0700 Subject: 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 Reviewed-by: Mike Frysinger --- manifest_xml.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'manifest_xml.py') diff --git a/manifest_xml.py b/manifest_xml.py index be74bf49..22758cfd 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -625,6 +625,13 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md 'repo.partialcloneexclude') or '' return set(x.strip() for x in exclude.split(',')) + @property + def UseLocalManifests(self): + return self._load_local_manifests + + def SetUseLocalManifests(self, value): + self._load_local_manifests = value + @property def HasLocalManifests(self): return self._load_local_manifests and self.local_manifests -- cgit v1.2.3-54-g00ecf