mercurial/wireprotov1peer.py
changeset 50551 b1fb4185e47c
parent 49284 d44e3c45f0e4
child 50666 60f9602b413e
equal deleted inserted replaced
50550:9e24f8442640 50551:b1fb4185e47c
   481                 [b'hashed', hashutil.sha1(b''.join(sorted(heads))).digest()]
   481                 [b'hashed', hashutil.sha1(b''.join(sorted(heads))).digest()]
   482             )
   482             )
   483         else:
   483         else:
   484             heads = wireprototypes.encodelist(heads)
   484             heads = wireprototypes.encodelist(heads)
   485 
   485 
   486         if util.safehasattr(bundle, b'deltaheader'):
   486         if util.safehasattr(bundle, 'deltaheader'):
   487             # this a bundle10, do the old style call sequence
   487             # this a bundle10, do the old style call sequence
   488             ret, output = self._callpush(b"unbundle", bundle, heads=heads)
   488             ret, output = self._callpush(b"unbundle", bundle, heads=heads)
   489             if ret == b"":
   489             if ret == b"":
   490                 raise error.ResponseError(_(b'push failed:'), output)
   490                 raise error.ResponseError(_(b'push failed:'), output)
   491             try:
   491             try: