Mercurial > hg
comparison mercurial/exchange.py @ 34101:5ede882c249c
changegroup: replace getchangegroup with makechangegroup
As part of reducing the number of changegroup creation APIs, let's replace
getchangegroup with calls to makechangegroup. This is mostly a drop in
replacement, but it does change the version specifier to be required, so it's
more obvious which callers are creating old version 1 changegroups still.
Differential Revision: https://phab.mercurial-scm.org/D669
author | Durham Goode <durham@fb.com> |
---|---|
date | Sun, 10 Sep 2017 18:50:12 -0700 |
parents | d8245139e720 |
children | dbf598196f05 |
comparison
equal
deleted
inserted
replaced
34100:1632999d4bed | 34101:5ede882c249c |
---|---|
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 |