Show More
@@ -615,7 +615,7 def getlocalchangegroup(repo, source, ou | |||||
615 | bundler = cg1packer(repo, bundlecaps) |
|
615 | bundler = cg1packer(repo, bundlecaps) | |
616 | return getsubset(repo, outgoing, bundler, source) |
|
616 | return getsubset(repo, outgoing, bundler, source) | |
617 |
|
617 | |||
618 |
def |
|
618 | def computeoutgoing(repo, heads, common): | |
619 | """Computes which revs are outgoing given a set of common |
|
619 | """Computes which revs are outgoing given a set of common | |
620 | and a set of heads. |
|
620 | and a set of heads. | |
621 |
|
621 | |||
@@ -646,7 +646,7 def getchangegroupraw(repo, source, head | |||||
646 | The nodes in common might not all be known locally due to the way the |
|
646 | The nodes in common might not all be known locally due to the way the | |
647 | current discovery protocol works. Returns a raw changegroup generator. |
|
647 | current discovery protocol works. Returns a raw changegroup generator. | |
648 | """ |
|
648 | """ | |
649 |
outgoing = |
|
649 | outgoing = computeoutgoing(repo, heads, common) | |
650 | return getlocalchangegroupraw(repo, source, outgoing, bundlecaps=bundlecaps, |
|
650 | return getlocalchangegroupraw(repo, source, outgoing, bundlecaps=bundlecaps, | |
651 | version=version) |
|
651 | version=version) | |
652 |
|
652 | |||
@@ -659,7 +659,7 def getchangegroup(repo, source, heads=N | |||||
659 | The nodes in common might not all be known locally due to the way the |
|
659 | The nodes in common might not all be known locally due to the way the | |
660 | current discovery protocol works. |
|
660 | current discovery protocol works. | |
661 | """ |
|
661 | """ | |
662 |
outgoing = |
|
662 | outgoing = computeoutgoing(repo, heads, common) | |
663 | return getlocalchangegroup(repo, source, outgoing, bundlecaps=bundlecaps) |
|
663 | return getlocalchangegroup(repo, source, outgoing, bundlecaps=bundlecaps) | |
664 |
|
664 | |||
665 | def changegroup(repo, basenodes, source): |
|
665 | def changegroup(repo, basenodes, source): |
General Comments 0
You need to be logged in to leave comments.
Login now