D1899: localrepo: pass transaction kwargs as strings, not bytes

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 1 15:42:38 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa630fc9cc674: localrepo: pass transaction kwargs as strings, not bytes (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1899?vs=5044&id=5069

REVISION DETAIL
  https://phab.mercurial-scm.org/D1899

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1332,7 +1332,7 @@
             """To be run if transaction is aborted
             """
             reporef().hook('txnabort', throw=False, txnname=desc,
-                           **tr2.hookargs)
+                           **pycompat.strkwargs(tr2.hookargs))
         tr.addabort('txnabort-hook', txnaborthook)
         # avoid eager cache invalidation. in-memory data should be identical
         # to stored data if transaction has no error.



To: durin42, #hg-reviewers, pulkit, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list