mercurial/bundle2.py
changeset 20805 c5aaeca0cfbf
parent 20804 db9d3991d2c6
child 20808 4c9130c7a29f
--- a/mercurial/bundle2.py	Wed Mar 19 14:52:03 2014 -0700
+++ b/mercurial/bundle2.py	Tue Mar 18 15:56:24 2014 -0700
@@ -142,9 +142,12 @@
     @util.propertycache
     def params(self):
         """dictionnary of stream level parameters"""
-        paramsize = self._readexact(2)
-        assert paramsize == '\0\0'
-        return {}
+        params = {}
+        paramssize = self._unpack(_fstreamparamsize)[0]
+        if paramssize:
+            for p in self._readexact(paramssize).split(' '):
+                params[p] = None
+        return params
 
     def __iter__(self):
         """yield all parts contained in the stream"""