Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 34111:f85dfde1731a
changegroup: replace getsubset with makechangegroup
The current changegroup APIs are a bit of a mess. Currently you can use
getsubsetraw, getsubset, changegroupsubset, getlocalchangegroupraw,
getchangegroup, and getlocalchangroup to produce changegroups. This patch is the
beginning of a refactor to boil all of that away to just makechangegroup and
makestream.
The first step adds the new functions and replaces getsubset function with them.
Differential Revision: https://phab.mercurial-scm.org/D664
author | Durham Goode <durham@fb.com> |
---|---|
date | Sun, 10 Sep 2017 18:39:02 -0700 |
parents | 13dc7f29531e |
children | d8245139e720 |
line wrap: on
line diff
--- a/mercurial/exchange.py Wed Sep 06 16:17:04 2017 -0700 +++ b/mercurial/exchange.py Sun Sep 10 18:39:02 2017 -0700 @@ -963,12 +963,8 @@ or pushop.repo.changelog.filteredrevs): # push everything, # use the fast path, no race possible on push - bundler = changegroup.cg1packer(pushop.repo, bundlecaps) - cg = changegroup.getsubset(pushop.repo, - outgoing, - bundler, - 'push', - fastpath=True) + cg = changegroup.makechangegroup(pushop.repo, outgoing, '01', 'push', + fastpath=True, bundlecaps=bundlecaps) else: cg = changegroup.getchangegroup(pushop.repo, 'push', outgoing, bundlecaps=bundlecaps)