changeset 24638:13a19717ade6

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 07 Apr 2015 12:35:07 -0700
parents c1cb6523e968
children c79b1e690110
files mercurial/exchange.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)