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 |
| # reports registered via scmutil.registersummarycallback() whose names | # reports registered via scmutil.registersummarycallback() whose names | ||||
| # are 00-txnreport etc. That way, the caches will be warm when the | # are 00-txnreport etc. That way, the caches will be warm when the | ||||
| # callbacks run. | # callbacks run. | ||||
| tr.addpostclose('-warm-cache', self._buildcacheupdater(tr)) | tr.addpostclose('-warm-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 | ||||