diff mercurial/exchange.py @ 35762:40df727b6f4f

pull: preindent some code Next changesets will add support for using stream cloning with bundle2. We introduce indentation change first for clarity.
author Boris Feld <boris.feld@octobus.net>
date Wed, 17 Jan 2018 14:13:46 +0100
parents 1908d360f977
children 7eedbd5d4880
line wrap: on
line diff
--- a/mercurial/exchange.py	Wed Jan 17 16:32:05 2018 +0100
+++ b/mercurial/exchange.py	Wed Jan 17 14:13:46 2018 +0100
@@ -1461,10 +1461,11 @@
     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', ())