mercurial/wireprotov1server.py
changeset 50928 d718eddf01d9
parent 50701 4238e6b22fc4
child 50929 18c8c18993f0
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   719                     )
   719                     )
   720 
   720 
   721                 r = exchange.unbundle(
   721                 r = exchange.unbundle(
   722                     repo, gen, their_heads, b'serve', proto.client()
   722                     repo, gen, their_heads, b'serve', proto.client()
   723                 )
   723                 )
   724                 if util.safehasattr(r, 'addpart'):
   724                 if hasattr(r, 'addpart'):
   725                     # The return looks streamable, we are in the bundle2 case
   725                     # The return looks streamable, we are in the bundle2 case
   726                     # and should return a stream.
   726                     # and should return a stream.
   727                     return wireprototypes.streamreslegacy(gen=r.getchunks())
   727                     return wireprototypes.streamreslegacy(gen=r.getchunks())
   728                 return wireprototypes.pushres(
   728                 return wireprototypes.pushres(
   729                     r, output.getvalue() if output else b''
   729                     r, output.getvalue() if output else b''