##// END OF EJS Templates
localrepo: turn hook kwargs back into strs before calling hook...
Augie Fackler -
r31509:5c993619 default
parent child Browse files
Show More
@@ -1101,7 +1101,7 b' class localrepository(object):'
1101 1101 def validate(tr):
1102 1102 """will run pre-closing hooks"""
1103 1103 reporef().hook('pretxnclose', throw=True,
1104 txnname=desc, **tr.hookargs)
1104 txnname=desc, **pycompat.strkwargs(tr.hookargs))
1105 1105 def releasefn(tr, success):
1106 1106 repo = reporef()
1107 1107 if success:
@@ -1142,7 +1142,7 b' class localrepository(object):'
1142 1142
1143 1143 def hook():
1144 1144 reporef().hook('txnclose', throw=False, txnname=desc,
1145 **hookargs)
1145 **pycompat.strkwargs(hookargs))
1146 1146 reporef()._afterlock(hook)
1147 1147 tr.addfinalize('txnclose-hook', txnclosehook)
1148 1148 def txnaborthook(tr2):
General Comments 0
You need to be logged in to leave comments. Login now