--- a/mercurial/bundle2.py Tue Mar 29 18:15:49 2022 +0900
+++ b/mercurial/bundle2.py Thu Mar 24 12:27:21 2022 -0400
@@ -2528,7 +2528,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'])