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

login
register
mail settings
Submitter phabricator
Date Jan. 19, 2018, 8:12 p.m.
Message ID <976fa4309f8746a6bbd7354fbb99e9dc@localhost.localdomain>
Download mbox | patch
Permalink /patch/26975/
State Not Applicable
Headers show

Comments

phabricator - Jan. 19, 2018, 8:12 p.m.
durin42 updated this revision to Diff 4951.

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1327,7 +1327,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.