Patchwork D709: bundle2: move part processing to a separate function

login
register
mail settings
Submitter phabricator
Date Sept. 18, 2017, 8:40 p.m.
Message ID <8c1b2a4723762fe1aace347237904ab2@localhost.localdomain>
Download mbox | patch
Permalink /patch/23996/
State Not Applicable
Headers show

Comments

phabricator - Sept. 18, 2017, 8:40 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf010097c885c: bundle2: move part processing to a separate function (authored by durham, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D709?vs=1821&id=1876

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

AFFECTED FILES
  mercurial/bundle2.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -447,12 +447,15 @@ 
         msg.append('\n')
         repo.ui.debug(''.join(msg))
 
+    processparts(repo, op, unbundler)
+
+    return op
+
+def processparts(repo, op, unbundler):
     with partiterator(repo, op, unbundler) as parts:
         for part in parts:
             _processpart(op, part)
 
-    return op
-
 def _processchangegroup(op, cg, tr, source, url, **kwargs):
     ret = cg.apply(op.repo, tr, source, url, **kwargs)
     op.records.add('changegroup', {