##// 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 615 bundler = packermap[version][0](repo, bundlecaps)
616 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 620 """Like getbundle, but taking a discovery.outgoing as an argument.
620 621
621 622 This is only implemented for local repos and reuses potentially
622 623 precomputed sets in outgoing."""
623 624 if not outgoing.missing:
624 625 return None
625 bundler = cg1packer(repo, bundlecaps)
626 bundler = packermap[version][0](repo, bundlecaps)
626 627 return getsubset(repo, outgoing, bundler, source)
627 628
628 629 def computeoutgoing(repo, heads, common):
General Comments 0
You need to be logged in to leave comments. Login now