bundle2: burn some more of the old code
Some of it survived.
--- 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):