exchange: remove check for 'format' key
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 07 Apr 2015 12:35:07 -0700
changeset 24638 13a19717ade6
parent 24637 c1cb6523e968
child 24639 c79b1e690110
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.
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)