diff mercurial/localrepo.py @ 44894:09da5cf44772

hooks: provide access to transaction changes for internal hooks External hooks are skipped here as the environment often has a size limit in the low MBs and that can easily be reached by larger transactions. Differential Revision: https://phab.mercurial-scm.org/D8490
author Joerg Sonnenberger <joerg@bec.de>
date Fri, 01 May 2020 01:32:08 +0200
parents d36283e20833
children fd3b94f1712d
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu May 07 23:54:37 2020 +0200
+++ b/mercurial/localrepo.py	Fri May 01 01:32:08 2020 +0200
@@ -2243,6 +2243,7 @@
 
         tr.hookargs[b'txnid'] = txnid
         tr.hookargs[b'txnname'] = desc
+        tr.hookargs[b'changes'] = tr.changes
         # note: writing the fncache only during finalize mean that the file is
         # outdated when running hooks. As fncache is used for streaming clone,
         # this is not expected to break anything that happen during the hooks.