--- 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'])