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

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 8:42 p.m.
Message ID <acdc0e2e159df07e8793b26e04c0a3b9@localhost.localdomain>
Download mbox | patch
Permalink /patch/27139/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 8:42 p.m.
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




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

Patch

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.