--- a/mercurial/bundle2.py Mon Jan 22 12:12:29 2018 -0800
+++ b/mercurial/bundle2.py Mon Jan 22 12:19:49 2018 -0800
@@ -2130,12 +2130,9 @@
hookargs[key] = value
op.addhookargs(hookargs)
-@parthandler('stream', ('requirements', 'filecount', 'bytecount', 'version'))
-def handlestreambundle(op, part):
+@parthandler('stream2', ('requirements', 'filecount', 'bytecount'))
+def handlestreamv2bundle(op, part):
- version = part.params['version']
- if version != 'v2':
- raise error.Abort(_('unknown stream bundle version %s') % version)
requirements = part.params['requirements'].split()
filecount = int(part.params['filecount'])
bytecount = int(part.params['bytecount'])