Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/localrepo.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
**pycompat.strkwargs(hookargs)) | **pycompat.strkwargs(hookargs)) | ||||
reporef()._afterlock(hookfunc) | reporef()._afterlock(hookfunc) | ||||
tr.addfinalize('txnclose-hook', txnclosehook) | tr.addfinalize('txnclose-hook', txnclosehook) | ||||
tr.addpostclose('warms-cache', self._buildcacheupdater(tr)) | tr.addpostclose('warms-cache', self._buildcacheupdater(tr)) | ||||
def txnaborthook(tr2): | def txnaborthook(tr2): | ||||
"""To be run if transaction is aborted | """To be run if transaction is aborted | ||||
""" | """ | ||||
reporef().hook('txnabort', throw=False, txnname=desc, | reporef().hook('txnabort', throw=False, txnname=desc, | ||||
**tr2.hookargs) | **pycompat.strkwargs(tr2.hookargs)) | ||||
tr.addabort('txnabort-hook', txnaborthook) | tr.addabort('txnabort-hook', txnaborthook) | ||||
# avoid eager cache invalidation. in-memory data should be identical | # avoid eager cache invalidation. in-memory data should be identical | ||||
# to stored data if transaction has no error. | # to stored data if transaction has no error. | ||||
tr.addpostclose('refresh-filecachestats', self._refreshfilecachestats) | tr.addpostclose('refresh-filecachestats', self._refreshfilecachestats) | ||||
self._transref = weakref.ref(tr) | self._transref = weakref.ref(tr) | ||||
scmutil.registersummarycallback(self, tr, desc) | scmutil.registersummarycallback(self, tr, desc) | ||||
return tr | return tr | ||||