Show More
@@ -510,3 +510,7 b' def getbundle(repo, source, heads=None, ' | |||
|
510 | 510 | outgoing = discovery.outgoing(cl, common, heads) |
|
511 | 511 | return getlocalbundle(repo, source, outgoing, bundlecaps=bundlecaps) |
|
512 | 512 | |
|
513 | def changegroup(repo, basenodes, source): | |
|
514 | # to avoid a race we use changegroupsubset() (issue1320) | |
|
515 | return changegroupsubset(repo, basenodes, repo.heads(), source) | |
|
516 |
@@ -140,7 +140,7 b' class locallegacypeer(localpeer):' | |||
|
140 | 140 | return self._repo.between(pairs) |
|
141 | 141 | |
|
142 | 142 | def changegroup(self, basenodes, source): |
|
143 |
return self._repo |
|
|
143 | return changegroup.changegroup(self._repo, basenodes, source) | |
|
144 | 144 | |
|
145 | 145 | def changegroupsubset(self, bases, heads, source): |
|
146 | 146 | return changegroup.changegroupsubset(self._repo, bases, heads, source) |
@@ -1683,11 +1683,6 b' class localrepository(object):' | |||
|
1683 | 1683 | def push(self, remote, force=False, revs=None, newbranch=False): |
|
1684 | 1684 | return exchange.push(self, remote, force, revs, newbranch) |
|
1685 | 1685 | |
|
1686 | def changegroup(self, basenodes, source): | |
|
1687 | # to avoid a race we use changegroupsubset() (issue1320) | |
|
1688 | return changegroup.changegroupsubset(self, basenodes, self.heads(), | |
|
1689 | source) | |
|
1690 | ||
|
1691 | 1686 | @unfilteredmethod |
|
1692 | 1687 | def addchangegroup(self, source, srctype, url, emptyok=False): |
|
1693 | 1688 | """Add the changegroup returned by source.read() to this repo. |
@@ -578,7 +578,7 b' def capabilities(repo, proto):' | |||
|
578 | 578 | @wireprotocommand('changegroup', 'roots') |
|
579 | 579 | def changegroup(repo, proto, roots): |
|
580 | 580 | nodes = decodelist(roots) |
|
581 |
cg = |
|
|
581 | cg = changegroupmod.changegroup(repo, nodes, 'serve') | |
|
582 | 582 | return streamres(proto.groupchunks(cg)) |
|
583 | 583 | |
|
584 | 584 | @wireprotocommand('changegroupsubset', 'bases heads') |
General Comments 0
You need to be logged in to leave comments.
Login now