mercurial/bundle2.py
changeset 48992 bde2e4ef968a
parent 48946 642e31cb55f0
parent 48990 d9ed7c5e915d
child 49336 290c29df1915
--- a/mercurial/bundle2.py	Thu Mar 24 21:26:45 2022 -0500
+++ b/mercurial/bundle2.py	Tue Mar 29 14:27:45 2022 +0200
@@ -2527,7 +2527,8 @@
 @parthandler(b'stream2', (b'requirements', b'filecount', b'bytecount'))
 def handlestreamv2bundle(op, part):
 
-    requirements = urlreq.unquote(part.params[b'requirements']).split(b',')
+    requirements = urlreq.unquote(part.params[b'requirements'])
+    requirements = requirements.split(b',') if requirements else []
     filecount = int(part.params[b'filecount'])
     bytecount = int(part.params[b'bytecount'])