Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 34116: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 |
line wrap: on
line diff
--- a/mercurial/exchange.py Sun Sep 10 18:48:42 2017 -0700 +++ b/mercurial/exchange.py Sun Sep 10 18:50:12 2017 -0700 @@ -965,8 +965,8 @@ cg = changegroup.makechangegroup(pushop.repo, outgoing, '01', 'push', fastpath=True, bundlecaps=bundlecaps) else: - cg = changegroup.getchangegroup(pushop.repo, 'push', outgoing, - bundlecaps=bundlecaps) + cg = changegroup.makechangegroup(pushop.repo, outgoing, '01', + 'push', bundlecaps=bundlecaps) # apply changegroup to remote # local repo finds heads on server, finds out what