mercurial/changegroup.py
changeset 25505 19717d3c8f94
parent 25400 7759dc97c5c7
child 25517 513c31d8652f
equal deleted inserted replaced
25504:60f4e7022ffe 25505:19717d3c8f94
   632         common = [nullid]
   632         common = [nullid]
   633     if not heads:
   633     if not heads:
   634         heads = cl.heads()
   634         heads = cl.heads()
   635     return discovery.outgoing(cl, common, heads)
   635     return discovery.outgoing(cl, common, heads)
   636 
   636 
   637 def getchangegroupraw(repo, source, heads=None, common=None, bundlecaps=None,
       
   638                       version='01'):
       
   639     """Like changegroupsubset, but returns the set difference between the
       
   640     ancestors of heads and the ancestors common.
       
   641 
       
   642     If heads is None, use the local heads. If common is None, use [nullid].
       
   643 
       
   644     If version is None, use a version '1' changegroup.
       
   645 
       
   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.
       
   648     """
       
   649     outgoing = computeoutgoing(repo, heads, common)
       
   650     return getlocalchangegroupraw(repo, source, outgoing, bundlecaps=bundlecaps,
       
   651                                   version=version)
       
   652 
       
   653 def getchangegroup(repo, source, heads=None, common=None, bundlecaps=None):
   637 def getchangegroup(repo, source, heads=None, common=None, bundlecaps=None):
   654     """Like changegroupsubset, but returns the set difference between the
   638     """Like changegroupsubset, but returns the set difference between the
   655     ancestors of heads and the ancestors common.
   639     ancestors of heads and the ancestors common.
   656 
   640 
   657     If heads is None, use the local heads. If common is None, use [nullid].
   641     If heads is None, use the local heads. If common is None, use [nullid].