diff mercurial/localrepo.py @ 25219:2664f536a97e stable

localrepo: use correct argument name for pretxnclose hooks (BC) Before this patch, "the reason for the transaction" is passed to `pretxnclose` hooks via wrong name argument `xnname` (`HG_XNNAME` for external hooks)
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 20 May 2015 04:34:27 +0900
parents 00d905a12bb6
children 451df92cec49 69c5cab0b893
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed May 20 04:34:27 2015 +0900
+++ b/mercurial/localrepo.py	Wed May 20 04:34:27 2015 +0900
@@ -975,7 +975,7 @@
             """will run pre-closing hooks"""
             pending = lambda: tr.writepending() and self.root or ""
             reporef().hook('pretxnclose', throw=True, pending=pending,
-                           xnname=desc, **tr.hookargs)
+                           txnname=desc, **tr.hookargs)
 
         tr = transaction.transaction(rp, self.sopener, vfsmap,
                                      "journal",