We want to remove getitem support from index entries. Port
a usage in repoview.
Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
| durin42 |
| hg-reviewers |
We want to remove getitem support from index entries. Port
a usage in repoview.
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/repoview.py (2 lines) |
| Status | Author | Revision | |
|---|---|---|---|
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Accepted | indygreg | ||
| Needs Revision | indygreg | ||
| Needs Revision | indygreg | ||
| Needs Revision | indygreg | ||
| Accepted | indygreg | ||
| Needs Revision | indygreg | ||
| Closed | indygreg |
| this changelog must not be used for writing""" | this changelog must not be used for writing""" | ||||
| # some cache may be implemented later | # some cache may be implemented later | ||||
| unfi = self._unfilteredrepo | unfi = self._unfilteredrepo | ||||
| unfichangelog = unfi.changelog | unfichangelog = unfi.changelog | ||||
| # bypass call to changelog.method | # bypass call to changelog.method | ||||
| unfiindex = unfichangelog.index | unfiindex = unfichangelog.index | ||||
| unfilen = len(unfiindex) - 1 | unfilen = len(unfiindex) - 1 | ||||
| unfinode = unfiindex[unfilen - 1][7] | unfinode = unfiindex[unfilen - 1].node | ||||
| revs = filterrevs(unfi, self.filtername, self._visibilityexceptions) | revs = filterrevs(unfi, self.filtername, self._visibilityexceptions) | ||||
| cl = self._clcache | cl = self._clcache | ||||
| newkey = (unfilen, unfinode, hash(revs), unfichangelog._delayed) | newkey = (unfilen, unfinode, hash(revs), unfichangelog._delayed) | ||||
| # if cl.index is not unfiindex, unfi.changelog would be | # if cl.index is not unfiindex, unfi.changelog would be | ||||
| # recreated, and our clcache refers to garbage object | # recreated, and our clcache refers to garbage object | ||||
| if (cl is not None and | if (cl is not None and | ||||
| (cl.index is not unfiindex or newkey != self._clcachekey)): | (cl.index is not unfiindex or newkey != self._clcachekey)): | ||||