Comments
Patch
@@ -943,28 +943,16 @@ def changegroupsubset(repo, roots, heads
# TODO: remove call to nodesbetween.
csets, roots, heads = cl.nodesbetween(roots, heads)
included = set(csets)
discbases = [n for n in discbases if n not in included]
outgoing = discovery.outgoing(cl, discbases, heads)
bundler = getbundler(version, repo)
return getsubset(repo, outgoing, bundler, source)
-def getlocalchangegroupraw(repo, source, outgoing, bundlecaps=None,
- version='01'):
- """Like getbundle, but taking a discovery.outgoing as an argument.
-
- This is only implemented for local repos and reuses potentially
- precomputed sets in outgoing. Returns a raw changegroup generator."""
- if not outgoing.missing:
- return None
-
- emitter = changegroupemitter.fromoutgoing(repo, outgoing)
- return emitter.emitchangegroupdata(version, source, bundlecaps=bundlecaps)
-
def getlocalchangegroup(repo, source, outgoing, bundlecaps=None,
version='01'):
"""Like getbundle, but taking a discovery.outgoing as an argument.
This is only implemented for local repos and reuses potentially
precomputed sets in outgoing."""
if not outgoing.missing:
return None