D2994: bunlde2: add 'source' as an optional argument to processbundle()
This revision was automatically updated to reflect the committed changes. Closed by commit rHG9041c91561fc: bunlde2: add source as an optional argument to processbundle() (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2994?vs=7461=7471 REVISION DETAIL https://phab.mercurial-scm.org/D2994 AFFECTED FILES mercurial/bundle2.py CHANGE DETAILS diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -350,7 +350,7 @@ 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) +return processbundle(repo, unbundler, lambda: tr, source=source) else: # the transactiongetter won't be used, but we might as well set it op = bundleoperation(repo, lambda: tr) @@ -425,7 +425,7 @@ self.repo.ui.debug('bundle2-input-bundle: %i parts total\n' % self.count) -def processbundle(repo, unbundler, transactiongetter=None, op=None): +def processbundle(repo, unbundler, transactiongetter=None, op=None, source=''): """This function process a bundle, apply effect to/from a repo It iterates over each part then searches for and uses the proper handling To: pulkit, #hg-reviewers, indygreg Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D2994: bunlde2: add 'source' as an optional argument to processbundle()
pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This will help us to pass the source variable to bundleoperation class. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2994 AFFECTED FILES mercurial/bundle2.py CHANGE DETAILS diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -350,7 +350,7 @@ 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) +return processbundle(repo, unbundler, lambda: tr, source=source) else: # the transactiongetter won't be used, but we might as well set it op = bundleoperation(repo, lambda: tr) @@ -425,7 +425,7 @@ self.repo.ui.debug('bundle2-input-bundle: %i parts total\n' % self.count) -def processbundle(repo, unbundler, transactiongetter=None, op=None): +def processbundle(repo, unbundler, transactiongetter=None, op=None, source=''): """This function process a bundle, apply effect to/from a repo It iterates over each part then searches for and uses the proper handling To: pulkit, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel