changeset 37238:684a6a261f30

bundle2: make source a mandatory argument for bundle2.applybundle() (API) Currently all the callers in the core pass the source argument, making it mandatory will help us storing right source value in bundleoperation() class. Differential Revision: https://phab.mercurial-scm.org/D2996
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 31 Mar 2018 14:54:12 +0530
parents f7d3915d5b3a
children 40ee0af04e3a
files mercurial/bundle2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundle2.py	Sat Mar 31 14:51:34 2018 +0530
+++ b/mercurial/bundle2.py	Sat Mar 31 14:54:12 2018 +0530
@@ -342,7 +342,7 @@
     to be created"""
     raise TransactionUnavailable()
 
-def applybundle(repo, unbundler, tr, source=None, url=None, **kwargs):
+def applybundle(repo, unbundler, tr, source, url=None, **kwargs):
     # transform me into unbundler.apply() as soon as the freeze is lifted
     if isinstance(unbundler, unbundle20):
         tr.hookargs['bundle2'] = '1'