changeset 33818:6e3a6774d998

bundle: remove 'op' argument from applybundle() No callers pass in an operation.
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 21 Jun 2017 14:42:04 -0700
parents 181ca34883e6
children 52c7060b707a
files mercurial/bundle2.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -310,14 +310,14 @@
     to be created"""
     raise TransactionUnavailable()
 
-def applybundle(repo, unbundler, tr, source=None, url=None, op=None):
+def applybundle(repo, unbundler, tr, source=None, url=None):
     # transform me into unbundler.apply() as soon as the freeze is lifted
     tr.hookargs['bundle2'] = '1'
     if source is not None and 'source' not in tr.hookargs:
         tr.hookargs['source'] = source
     if url is not None and 'url' not in tr.hookargs:
         tr.hookargs['url'] = url
-    return processbundle(repo, unbundler, lambda: tr, op=op)
+    return processbundle(repo, unbundler, lambda: tr)
 
 def processbundle(repo, unbundler, transactiongetter=None, op=None):
     """This function process a bundle, apply effect to/from a repo