963 # push everything, |
963 # push everything, |
964 # use the fast path, no race possible on push |
964 # use the fast path, no race possible on push |
965 cg = changegroup.makechangegroup(pushop.repo, outgoing, '01', 'push', |
965 cg = changegroup.makechangegroup(pushop.repo, outgoing, '01', 'push', |
966 fastpath=True, bundlecaps=bundlecaps) |
966 fastpath=True, bundlecaps=bundlecaps) |
967 else: |
967 else: |
968 cg = changegroup.getchangegroup(pushop.repo, 'push', outgoing, |
968 cg = changegroup.makechangegroup(pushop.repo, outgoing, '01', |
969 bundlecaps=bundlecaps) |
969 'push', bundlecaps=bundlecaps) |
970 |
970 |
971 # apply changegroup to remote |
971 # apply changegroup to remote |
972 # local repo finds heads on server, finds out what |
972 # local repo finds heads on server, finds out what |
973 # revs it must push. once revs transferred, if server |
973 # revs it must push. once revs transferred, if server |
974 # finds it has different heads (someone else won |
974 # finds it has different heads (someone else won |