applybundle: set 'bundle2=1' env for all transaction
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 20 Oct 2015 15:48:24 +0200
changeset 26792 a84e0cacb2dd
parent 26791 13b861d1cce9
child 26793 f37de5d44aea
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.
mercurial/bundle2.py
--- 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):