Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 34097:f7d41b85bbf6
changegroup: replace changegroupsubset with makechangegroup
As part of getting rid of all the permutations of changegroup creation, let's
remove changegroupsubset and call makechangegroup instead. This moves the
responsibility of creating the outgoing set to the caller, but that seems like a
relatively reasonable unit of functionality for the caller to have to care about
(i.e. what commits should be bundled).
Differential Revision: https://phab.mercurial-scm.org/D665
author | Durham Goode <durham@fb.com> |
---|---|
date | Sun, 10 Sep 2017 18:43:59 -0700 |
parents | 707750e5310b |
children | 1632999d4bed |
comparison
equal
deleted
inserted
replaced
34096:f85dfde1731a | 34097:f7d41b85bbf6 |
---|---|
29 changelog, | 29 changelog, |
30 color, | 30 color, |
31 context, | 31 context, |
32 dirstate, | 32 dirstate, |
33 dirstateguard, | 33 dirstateguard, |
34 discovery, | |
34 encoding, | 35 encoding, |
35 error, | 36 error, |
36 exchange, | 37 exchange, |
37 extensions, | 38 extensions, |
38 filelog, | 39 filelog, |
287 | 288 |
288 def changegroup(self, basenodes, source): | 289 def changegroup(self, basenodes, source): |
289 return changegroup.changegroup(self._repo, basenodes, source) | 290 return changegroup.changegroup(self._repo, basenodes, source) |
290 | 291 |
291 def changegroupsubset(self, bases, heads, source): | 292 def changegroupsubset(self, bases, heads, source): |
292 return changegroup.changegroupsubset(self._repo, bases, heads, source) | 293 outgoing = discovery.outgoing(self._repo, missingroots=bases, |
294 missingheads=heads) | |
295 return changegroup.makechangegroup(self._repo, outgoing, '01', source) | |
293 | 296 |
294 # End of baselegacywirecommands interface. | 297 # End of baselegacywirecommands interface. |
295 | 298 |
296 # Increment the sub-version when the revlog v2 format changes to lock out old | 299 # Increment the sub-version when the revlog v2 format changes to lock out old |
297 # clients. | 300 # clients. |