bundle2: inform transaction that we are in a bundle2 unbundle

That way, hooks called during the unbundle process are aware that a bigger picture
is going on.
This commit is contained in:
Pierre-Yves David 2014-04-17 17:16:21 -04:00
parent d9e2c653ca
commit 7bbaf30f57

View File

@ -726,6 +726,7 @@ def unbundle(repo, cg, heads, source, url):
# push can proceed
if util.safehasattr(cg, 'params'):
tr = repo.transaction('unbundle')
tr.hookargs['bundle2-exp'] = '1'
r = bundle2.processbundle(repo, cg, lambda: tr).reply
tr.close()
else: