diff mercurial/localrepo.py @ 24739:ea0d5c8e047f

transaction: actually use tr.hookargs in pretxnclose The 'tr.hookargs' is a dictionary containing all the arguments to be passed to hooks. It is actually used for hooks now...
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 14 Apr 2015 13:07:41 -0400
parents 553dc2b094d9
children d283517b260b
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sat Apr 11 13:58:36 2015 -0400
+++ b/mercurial/localrepo.py	Tue Apr 14 13:07:41 2015 -0400
@@ -956,7 +956,7 @@
             """will run pre-closing hooks"""
             pending = lambda: tr.writepending() and self.root or ""
             reporef().hook('pretxnclose', throw=True, pending=pending,
-                           xnname=desc)
+                           xnname=desc, **tr.hookargs)
 
         tr = transaction.transaction(rp, self.sopener, vfsmap,
                                      "journal",