mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
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:
parent
d9e2c653ca
commit
7bbaf30f57
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user