bundle2: work around zip() being lazy in Python 3
authorAugie Fackler <augie@google.com>
Mon, 24 Jul 2017 11:20:08 -0400
changeset 33674 9a323773216c
parent 33673 5ae35a1347fd
child 33675 24b7c75c6441
bundle2: work around zip() being lazy in Python 3
mercurial/bundle2.py
--- a/mercurial/bundle2.py	Mon Jul 24 11:19:45 2017 -0400
+++ b/mercurial/bundle2.py	Mon Jul 24 11:20:08 2017 -0400
@@ -1249,7 +1249,7 @@
         fparamsizes = _makefpartparamsizes(mancount + advcount)
         paramsizes = self._unpackheader(fparamsizes)
         # make it a list of couple again
-        paramsizes = zip(paramsizes[::2], paramsizes[1::2])
+        paramsizes = list(zip(paramsizes[::2], paramsizes[1::2]))
         # split mandatory from advisory
         mansizes = paramsizes[:mancount]
         advsizes = paramsizes[mancount:]