Comments
Patch
@@ -957,8 +957,10 @@ class pulloperation(object):
# result of changegroup pulling (used as return code by pull)
self.cgresult = None
# list of step already done
self.stepsdone = set()
+ # Whether we attempted a clone from pre-generated bundles.
+ self.clonebundleattempted = False
@util.propertycache
def pulledsubset(self):
"""heads of the set of changeset target by the pull"""
@@ -1602,8 +1604,13 @@ def _maybeapplyclonebundle(pullop):
if not remote.capable('clonebundles'):
return
res = remote._call('clonebundles')
+
+ # If we call the wire protocol command, that's good enough to record the
+ # attempt.
+ pullop.clonebundleattempted = True
+
entries = parseclonebundlesmanifest(repo, res)
if not entries:
repo.ui.note(_('no clone bundles available on remote; '
'falling back to regular clone\n'))