[PATCH 09 of 14] pull: preindent some code
Boris Feld
boris.feld at octobus.net
Thu Jan 18 11:21:35 UTC 2018
# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1516194826 -3600
# Wed Jan 17 14:13:46 2018 +0100
# Node ID f6756018edb842659d1ab340427b1da06f19bd24
# Parent 30ee2777bbdcc41781c260619f6278b80c32e34d
# EXP-Topic b2-stream
# Available At https://bitbucket.org/octobus/mercurial-devel/
# hg pull https://bitbucket.org/octobus/mercurial-devel/ -r f6756018edb8
pull: preindent some code
Next changesets will add support for using stream cloning with bundle2. We
introduce indentation change first for clarity.
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', ())
More information about the Mercurial-devel
mailing list