pull: preindent some code
authorBoris Feld <boris.feld@octobus.net>
Wed, 17 Jan 2018 14:13:46 +0100
changeset 35762 40df727b6f4f
parent 35761 1908d360f977
child 35763 7eedbd5d4880
pull: preindent some code Next changesets will add support for using stream cloning with bundle2. We introduce indentation change first for clarity.
mercurial/exchange.py
--- 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', ())