Patchwork [10,of,15] pull: preindent some code

login
register
mail settings
Submitter Boris Feld
Date Jan. 19, 2018, 8:08 p.m.
Message ID <36876df4b7cf74f276da.1516392534@FB>
Download mbox | patch
Permalink /patch/26963/
State Deferred, archived
Headers show

Comments

Boris Feld - Jan. 19, 2018, 8:08 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1516194826 -3600
#      Wed Jan 17 14:13:46 2018 +0100
# Node ID 36876df4b7cf74f276da656a9da1fe8e47597e15
# Parent  0db72f8d443d7ca27d57e650aa44b5d74ef965c2
# EXP-Topic b2-stream
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 36876df4b7cf
pull: preindent some code

Next changesets will add support for using stream cloning with bundle2. We
introduce indentation change first for clarity.

Patch

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -1461,10 +1461,11 @@  def _pullbundle2(pullop):
     kwargs['common'] = pullop.common
     kwargs['heads'] = pullop.heads or pullop.rheads
 
-    # pulling changegroup
-    pullop.stepsdone.add('changegroup')
+    if True:
+        # pulling changegroup
+        pullop.stepsdone.add('changegroup')
 
-    kwargs['cg'] = pullop.fetch
+        kwargs['cg'] = pullop.fetch
 
     legacyphase = 'phases' in ui.configlist('devel', 'legacy.exchange')
     hasbinaryphase = 'heads' in pullop.remotebundle2caps.get('phases', ())