mercurial/wireprotov1peer.py
changeset 50928 d718eddf01d9
parent 50701 4238e6b22fc4
child 50929 18c8c18993f0
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   497                 [b'hashed', hashutil.sha1(b''.join(sorted(heads))).digest()]
   497                 [b'hashed', hashutil.sha1(b''.join(sorted(heads))).digest()]
   498             )
   498             )
   499         else:
   499         else:
   500             heads = wireprototypes.encodelist(heads)
   500             heads = wireprototypes.encodelist(heads)
   501 
   501 
   502         if util.safehasattr(bundle, 'deltaheader'):
   502         if hasattr(bundle, 'deltaheader'):
   503             # this a bundle10, do the old style call sequence
   503             # this a bundle10, do the old style call sequence
   504             ret, output = self._callpush(b"unbundle", bundle, heads=heads)
   504             ret, output = self._callpush(b"unbundle", bundle, heads=heads)
   505             if ret == b"":
   505             if ret == b"":
   506                 raise error.ResponseError(_(b'push failed:'), output)
   506                 raise error.ResponseError(_(b'push failed:'), output)
   507             try:
   507             try: