From 335f5ef4ad25a85c69fe6d8c848c5d1d447e22c8 Mon Sep 17 00:00:00 2001 From: Julien Campergue Date: Wed, 16 Oct 2013 11:02:35 +0200 Subject: Add --archive option to init to sync using git archive This significantly reduces sync time and used brandwidth as only a tar of each project's revision is checked out, but git is not accessible from projects anymore. This is relevant when git is not needed in projects but sync speed/brandwidth may be important like on CI servers when building several versions from scratch regularly for example. Archive is not supported over http/https. Change-Id: I48c3c7de2cd5a1faec33e295fcdafbc7807d0e4d Signed-off-by: Julien Campergue --- manifest_xml.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'manifest_xml.py') diff --git a/manifest_xml.py b/manifest_xml.py index 457d5ab0..785976bc 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -329,6 +329,10 @@ class XmlManifest(object): def IsMirror(self): return self.manifestProject.config.GetBoolean('repo.mirror') + @property + def IsArchive(self): + return self.manifestProject.config.GetBoolean('repo.archive') + def _Unload(self): self._loaded = False self._projects = {} -- cgit v1.2.3-54-g00ecf