# HG changeset patch # User Pierre-Yves David # Date 1409318359 -7200 # Node ID bb2c01cd096ff2c82d1a89c03a7ce38102d28285 # Parent a49f2e7a2755ffc8f2afade8f636a20d79e3caae bundle2: burn some more of the old code Some of it survived. diff -r a49f2e7a2755 -r bb2c01cd096f hgext/evolve.py --- a/hgext/evolve.py Wed Aug 27 18:59:11 2014 +0200 +++ b/hgext/evolve.py Fri Aug 29 15:19:19 2014 +0200 @@ -2494,32 +2494,7 @@ @eh.uisetup def addgetbundleargs(self): - if gboptsmap is not None: - gboptsmap['evo_obsmarker'] = 'plain' - gboptsmap['evo_obscommon'] = 'plain' - gboptsmap['evo_obsheads'] = 'plain' - else: - gboptslist.append('evo_obsheads') - gboptslist.append('evo_obscommon') - gboptslist.append('evo_obsmarker') - - - -@eh.wrapfunction(exchange, '_getbundleextrapart') -def _getbundleextrapart(orig, bundler, repo, source, **kwargs): - if int(kwargs.pop('evo_obsmarker', False)): - common = kwargs.pop('evo_obscommon') - common = wireproto.decodelist(common) - heads = kwargs.pop('evo_obsheads') - heads = wireproto.decodelist(heads) - obsdata = _getobsmarkersstream(repo, common=common, heads=heads) - if len(obsdata.getvalue()) > 5: - advparams = [('totalbytes', str(len(obsdata.getvalue())))] - obspart = bundle2.bundlepart('EVOLVE:B2X:OBSMARKERV1', - advisoryparams=advparams, - data=obsdata) - bundler.addpart(obspart) - orig(bundler, repo, source) + gboptsmap['evo_obscommon'] = 'plain' @eh.wrapfunction(exchange, '_pullobsolete') def _pullobsolete(orig, pullop):