Mercurial > hg
changeset 26792:a84e0cacb2dd
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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 20 Oct 2015 15:48:24 +0200 |
parents | 13b861d1cce9 |
children | f37de5d44aea |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Tue Oct 20 15:47:20 2015 +0200 +++ b/mercurial/bundle2.py Tue Oct 20 15:48:24 2015 +0200 @@ -304,6 +304,7 @@ 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):