[PATCH] bundle2: explicitly use network byte order
David Soria Parra
davidsp at fb.com
Mon Mar 31 16:24:31 CDT 2014
# HG changeset patch
# User David Soria Parra <davidsp at fb.com>
# Date 1396300921 25200
# Mon Mar 31 14:22:01 2014 -0700
# Node ID 19fcef51b60e985d0348da592ea63c94b3f1ccce
# Parent f6fe185a37954b86d57a8d02d88e255b35238b54
bundle2: explicitly use network byte order
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -106,9 +106,9 @@
_magicstring = 'HG20'
-_fstreamparamsize = '>H'
-_fpartheadersize = '>H'
-_fparttypesize = '>B'
+_fstreamparamsize = '!H'
+_fpartheadersize = '!H'
+_fparttypesize = '!B'
class bundle20(object):
"""represent an outgoing bundle2 container
More information about the Mercurial-devel
mailing list