changegroup: remove 'getchangegroupraw' function
authorPierre-Yves David <pierre-yves.david@fb.com>
Sun, 07 Jun 2015 15:49:57 -0700
changeset 25505 19717d3c8f94
parent 25504 60f4e7022ffe
child 25506 86472038dfd2
changegroup: remove 'getchangegroupraw' function There is no remaining caller for this function.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Sun Jun 07 15:49:17 2015 -0700
+++ b/mercurial/changegroup.py	Sun Jun 07 15:49:57 2015 -0700
@@ -634,22 +634,6 @@
         heads = cl.heads()
     return discovery.outgoing(cl, common, heads)
 
-def getchangegroupraw(repo, source, heads=None, common=None, bundlecaps=None,
-                      version='01'):
-    """Like changegroupsubset, but returns the set difference between the
-    ancestors of heads and the ancestors common.
-
-    If heads is None, use the local heads. If common is None, use [nullid].
-
-    If version is None, use a version '1' changegroup.
-
-    The nodes in common might not all be known locally due to the way the
-    current discovery protocol works. Returns a raw changegroup generator.
-    """
-    outgoing = computeoutgoing(repo, heads, common)
-    return getlocalchangegroupraw(repo, source, outgoing, bundlecaps=bundlecaps,
-                                  version=version)
-
 def getchangegroup(repo, source, heads=None, common=None, bundlecaps=None):
     """Like changegroupsubset, but returns the set difference between the
     ancestors of heads and the ancestors common.