D1899: localrepo: pass transaction kwargs as strings, not bytes
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Feb 1 20:05:53 UTC 2018
durin42 updated this revision to Diff 5044.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1899?vs=4951&id=5044
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list