changeset 22661:9ea2913e7c41

bundle2: remove an explicit packing The final writing of the empty part was done explicitly. We now using proper pack call using symbolic constant. This open simple change in the bundle2 format.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 02 Oct 2014 00:15:15 -0500
parents 978cce51cc5f
children c4d63f6740b8
files mercurial/bundle2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundle2.py	Wed Oct 01 23:55:22 2014 -0500
+++ b/mercurial/bundle2.py	Thu Oct 02 00:15:15 2014 -0500
@@ -447,7 +447,7 @@
             for chunk in part.getchunks():
                 yield chunk
         self.ui.debug('end of bundle\n')
-        yield '\0\0'
+        yield _pack(_fpartheadersize, 0)
 
     def _paramchunk(self):
         """return a encoded version of all stream parameters"""