# HG changeset patch # User Gregory Szorc # Date 1444773302 25200 # Node ID 2c9f15366982d3db6e2907d3cbe1ca9adc6ab8a8 # Parent 7394536338bb1d3ee7c5c89c121a0336d0518b1e exchange: record that we attempted to fetch a clone bundle This is needed so a subsequent patch can conditionally add a bundle2 part to the "getbundle" wire protocol command depending on whether a clone bundle was attempted. diff -r 7394536338bb -r 2c9f15366982 mercurial/exchange.py --- a/mercurial/exchange.py Tue Oct 13 12:41:32 2015 -0700 +++ b/mercurial/exchange.py Tue Oct 13 14:55:02 2015 -0700 @@ -958,6 +958,8 @@ 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): @@ -1603,6 +1605,11 @@ 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; '