Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
35761:1908d360f977 | 35762:40df727b6f4f |
---|---|
1459 | 1459 |
1460 # declare pull perimeters | 1460 # declare pull perimeters |
1461 kwargs['common'] = pullop.common | 1461 kwargs['common'] = pullop.common |
1462 kwargs['heads'] = pullop.heads or pullop.rheads | 1462 kwargs['heads'] = pullop.heads or pullop.rheads |
1463 | 1463 |
1464 # pulling changegroup | 1464 if True: |
1465 pullop.stepsdone.add('changegroup') | 1465 # pulling changegroup |
1466 | 1466 pullop.stepsdone.add('changegroup') |
1467 kwargs['cg'] = pullop.fetch | 1467 |
1468 kwargs['cg'] = pullop.fetch | |
1468 | 1469 |
1469 legacyphase = 'phases' in ui.configlist('devel', 'legacy.exchange') | 1470 legacyphase = 'phases' in ui.configlist('devel', 'legacy.exchange') |
1470 hasbinaryphase = 'heads' in pullop.remotebundle2caps.get('phases', ()) | 1471 hasbinaryphase = 'heads' in pullop.remotebundle2caps.get('phases', ()) |
1471 if (not legacyphase and hasbinaryphase): | 1472 if (not legacyphase and hasbinaryphase): |
1472 kwargs['phases'] = True | 1473 kwargs['phases'] = True |