summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorJulien Campergue <julien.campergue@parrot.com>2013-10-16 11:02:35 +0200
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2013-12-10 08:27:07 +0000
commit335f5ef4ad25a85c69fe6d8c848c5d1d447e22c8 (patch)
tree6a64a34ce5063d8d255c7840e167db2484e68c9a /manifest_xml.py
parent61df418c599a0359b33b8a65a12660023fc37a2a (diff)
downloadgit-repo-335f5ef4ad25a85c69fe6d8c848c5d1d447e22c8.tar.gz
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 <julien.campergue@parrot.com>
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py4
1 files changed, 4 insertions, 0 deletions
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):
329 def IsMirror(self): 329 def IsMirror(self):
330 return self.manifestProject.config.GetBoolean('repo.mirror') 330 return self.manifestProject.config.GetBoolean('repo.mirror')
331 331
332 @property
333 def IsArchive(self):
334 return self.manifestProject.config.GetBoolean('repo.archive')
335
332 def _Unload(self): 336 def _Unload(self):
333 self._loaded = False 337 self._loaded = False
334 self._projects = {} 338 self._projects = {}