mercurial/bundle2.py
changeset 34256 ab379eed2e31
parent 34228 8e0358024a36
child 34265 e71890f27767
equal deleted inserted replaced
34255:b59620c52eec 34256:ab379eed2e31
  1048             header.append(value)
  1048             header.append(value)
  1049         for key, value in advpar:
  1049         for key, value in advpar:
  1050             header.append(key)
  1050             header.append(key)
  1051             header.append(value)
  1051             header.append(value)
  1052         ## finalize header
  1052         ## finalize header
  1053         headerchunk = ''.join(header)
  1053         try:
       
  1054             headerchunk = ''.join(header)
       
  1055         except TypeError:
       
  1056             raise TypeError(r'Found a non-bytes trying to '
       
  1057                             r'build bundle part header: %r' % header)
  1054         outdebug(ui, 'header chunk size: %i' % len(headerchunk))
  1058         outdebug(ui, 'header chunk size: %i' % len(headerchunk))
  1055         yield _pack(_fpartheadersize, len(headerchunk))
  1059         yield _pack(_fpartheadersize, len(headerchunk))
  1056         yield headerchunk
  1060         yield headerchunk
  1057         ## payload
  1061         ## payload
  1058         try:
  1062         try: