From e02ac0af2e69f2c149de942d639bf305e5ae391a Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 14 Mar 2012 15:36:59 -0700 Subject: sync: --no-clone-bundle disables the clone bundle support Change-Id: Ia9ed7da8451b273c1be620c3dd0dcad777b29096 --- project.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'project.py') diff --git a/project.py b/project.py index 9b23b116..350a5e33 100644 --- a/project.py +++ b/project.py @@ -902,7 +902,11 @@ class Project(object): ## Sync ## - def Sync_NetworkHalf(self, quiet=False, is_new=None, current_branch_only=False): + def Sync_NetworkHalf(self, + quiet=False, + is_new=None, + current_branch_only=False, + clone_bundle=True): """Perform only the network IO portion of the sync process. Local working directory/branch state is not affected. """ @@ -925,7 +929,9 @@ class Project(object): else: alt_dir = None - if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet): + if clone_bundle \ + and alt_dir is None \ + and self._ApplyCloneBundle(initial=is_new, quiet=quiet): is_new = False if not self._RemoteFetch(initial=is_new, quiet=quiet, alt_dir=alt_dir, -- cgit v1.2.3-54-g00ecf