##// END OF EJS Templates
changegroup: add version argument to getlocalchangegroup...
Pierre-Yves David -
r26508:47a12de9 default
parent child Browse files
Show More
@@ -615,14 +615,15 b' def getlocalchangegroupraw(repo, source,'
615 bundler = packermap[version][0](repo, bundlecaps)
615 bundler = packermap[version][0](repo, bundlecaps)
616 return getsubsetraw(repo, outgoing, bundler, source)
616 return getsubsetraw(repo, outgoing, bundler, source)
617
617
618 def getlocalchangegroup(repo, source, outgoing, bundlecaps=None):
618 def getlocalchangegroup(repo, source, outgoing, bundlecaps=None,
619 version='01'):
619 """Like getbundle, but taking a discovery.outgoing as an argument.
620 """Like getbundle, but taking a discovery.outgoing as an argument.
620
621
621 This is only implemented for local repos and reuses potentially
622 This is only implemented for local repos and reuses potentially
622 precomputed sets in outgoing."""
623 precomputed sets in outgoing."""
623 if not outgoing.missing:
624 if not outgoing.missing:
624 return None
625 return None
625 bundler = cg1packer(repo, bundlecaps)
626 bundler = packermap[version][0](repo, bundlecaps)
626 return getsubset(repo, outgoing, bundler, source)
627 return getsubset(repo, outgoing, bundler, source)
627
628
628 def computeoutgoing(repo, heads, common):
629 def computeoutgoing(repo, heads, common):
General Comments 0
You need to be logged in to leave comments. Login now