hgext/infinitepush/__init__.py
changeset 45144 c93dd9d9f1e6
parent 43550 a936a3455bb1
child 45942 89a2afe31e82
equal deleted inserted replaced
45143:5631b0116374 45144:c93dd9d9f1e6
   464     '''
   464     '''
   465     parts = []
   465     parts = []
   466 
   466 
   467     version = b'02'
   467     version = b'02'
   468     outgoing = discovery.outgoing(
   468     outgoing = discovery.outgoing(
   469         bundlerepo, commonheads=bundleroots, missingheads=[unknownhead]
   469         bundlerepo, commonheads=bundleroots, ancestorsof=[unknownhead]
   470     )
   470     )
   471     cgstream = changegroup.makestream(bundlerepo, outgoing, version, b'pull')
   471     cgstream = changegroup.makestream(bundlerepo, outgoing, version, b'pull')
   472     cgstream = util.chunkbuffer(cgstream).read()
   472     cgstream = util.chunkbuffer(cgstream).read()
   473     cgpart = bundle2.bundlepart(b'changegroup', data=cgstream)
   473     cgpart = bundle2.bundlepart(b'changegroup', data=cgstream)
   474     cgpart.addparam(b'version', version)
   474     cgpart.addparam(b'version', version)