Patchwork D671: changegroup: rename getsubsetraw to makestream

login
register
mail settings
Submitter phabricator
Date Sept. 11, 2017, 10:27 p.m.
Message ID <991238cb652e6dbfa74eecc4c0e654de@localhost.localdomain>
Download mbox | patch
Permalink /patch/23802/
State Not Applicable
Headers show

Comments

phabricator - Sept. 11, 2017, 10:27 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG92f1e2be8ab6: changegroup: rename getsubsetraw to makestream (authored by durham).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D671?vs=1698&id=1740

REVISION DETAIL
  https://phab.mercurial-scm.org/D671

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS




To: durham, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -911,19 +911,17 @@ 
         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,
                           fastpath=fastpath, bundlecaps=bundlecaps)
     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