changegroup: rename getsubsetraw to makestream
authorDurham Goode <durham@fb.com>
Sun, 10 Sep 2017 18:52:40 -0700
changeset 34118 92f1e2be8ab6
parent 34117 dbf598196f05
child 34119 f698bb31bdfb
changegroup: rename getsubsetraw to makestream Now that nothing uses getsubsetraw except makestream, let's move the functionality into the makestream. This removes the last remaining excess changegroup creation function, getsubsetraw. Differential Revision: https://phab.mercurial-scm.org/D671
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Sun Sep 10 18:51:31 2017 -0700
+++ b/mercurial/changegroup.py	Sun Sep 10 18:52:40 2017 -0700
@@ -911,11 +911,6 @@
         for node in nodes:
             repo.ui.debug("%s\n" % hex(node))
 
-def makestream(repo, outgoing, version, source, fastpath=False,
-               bundlecaps=None):
-    bundler = getbundler(version, repo, bundlecaps=bundlecaps)
-    return getsubsetraw(repo, outgoing, bundler, source, fastpath=fastpath)
-
 def makechangegroup(repo, outgoing, version, source, fastpath=False,
                     bundlecaps=None):
     cgstream = makestream(repo, outgoing, version, source,
@@ -923,7 +918,10 @@
     return getunbundler(version, util.chunkbuffer(cgstream), None,
                         {'clcount': len(outgoing.missing) })
 
-def getsubsetraw(repo, outgoing, bundler, source, fastpath=False):
+def makestream(repo, outgoing, version, source, fastpath=False,
+               bundlecaps=None):
+    bundler = getbundler(version, repo, bundlecaps=bundlecaps)
+
     repo = repo.unfiltered()
     commonrevs = outgoing.common
     csets = outgoing.missing