mercurial/bundle2.py
changeset 35788 b116a66bcc44
parent 35787 a84dbc87dae9
child 35790 c1b9eb15a51c
--- 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'])