# HG changeset patch # User Pierre-Yves David # Date 2015-10-20 13:48:24 # Node ID a84e0cacb2dd0527eecd99c07d25e672c18eca2c # Parent 13b861d1cce9d6bf2df879ffc782ad3e2dbdef6c applybundle: set 'bundle2=1' env for all transaction This should be set for all bundle2 application, we enforce that at a low level. This is for courtesy with hooks. diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -304,6 +304,7 @@ def _notransaction(): def applybundle(repo, unbundler, tr, op=None): # transform me into unbundler.apply() as soon as the freeze is lifted + tr.hookargs['bundle2'] = '1' return processbundle(repo, unbundler, lambda: tr, op=op) def processbundle(repo, unbundler, transactiongetter=None, op=None):