# HG changeset patch # User Martin von Zweigbergk # Date 1428435307 25200 # Node ID 13a19717ade603d8ef384ecc1a9d26500c796900 # Parent c1cb6523e9681f0c3a426ce360ffe2ec03bdece8 exchange: remove check for 'format' key When the 'kwargs' variable was added in 12f161f08d74 (bundle2: allow pulling changegroups using bundle2, 2014-04-01), it could contain only 'bundlecaps', 'common' and 'heads', so the check for 'format' would always be false. Since then, _pullbundle2extraprepare() has been added for hooks, but it seems unlikely that they would a 'format' key. diff -r c1cb6523e968 -r 13a19717ade6 mercurial/exchange.py --- a/mercurial/exchange.py Fri Mar 27 22:12:53 2015 +0900 +++ b/mercurial/exchange.py Tue Apr 07 12:35:07 2015 -0700 @@ -984,8 +984,6 @@ kwargs['obsmarkers'] = True pullop.stepsdone.add('obsmarkers') _pullbundle2extraprepare(pullop, kwargs) - if kwargs.keys() == ['format']: - return # nothing to pull bundle = pullop.remote.getbundle('pull', **kwargs) try: op = bundle2.processbundle(pullop.repo, bundle, pullop.gettransaction)