Show More
@@ -1101,7 +1101,7 class localrepository(object): | |||||
1101 | def validate(tr): |
|
1101 | def validate(tr): | |
1102 | """will run pre-closing hooks""" |
|
1102 | """will run pre-closing hooks""" | |
1103 | reporef().hook('pretxnclose', throw=True, |
|
1103 | reporef().hook('pretxnclose', throw=True, | |
1104 | txnname=desc, **tr.hookargs) |
|
1104 | txnname=desc, **pycompat.strkwargs(tr.hookargs)) | |
1105 | def releasefn(tr, success): |
|
1105 | def releasefn(tr, success): | |
1106 | repo = reporef() |
|
1106 | repo = reporef() | |
1107 | if success: |
|
1107 | if success: | |
@@ -1142,7 +1142,7 class localrepository(object): | |||||
1142 |
|
1142 | |||
1143 | def hook(): |
|
1143 | def hook(): | |
1144 | reporef().hook('txnclose', throw=False, txnname=desc, |
|
1144 | reporef().hook('txnclose', throw=False, txnname=desc, | |
1145 | **hookargs) |
|
1145 | **pycompat.strkwargs(hookargs)) | |
1146 | reporef()._afterlock(hook) |
|
1146 | reporef()._afterlock(hook) | |
1147 | tr.addfinalize('txnclose-hook', txnclosehook) |
|
1147 | tr.addfinalize('txnclose-hook', txnclosehook) | |
1148 | def txnaborthook(tr2): |
|
1148 | def txnaborthook(tr2): |
General Comments 0
You need to be logged in to leave comments.
Login now