Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
( )
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/changelog.py (6 lines) | |||
M | mercurial/repoview.py (6 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
b43a25593629 | db19b7782f29 | Martin von Zweigbergk | Nov 5 2019, 5:23 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
self._realopener = opener | self._realopener = opener | ||||
self._delayed = False | self._delayed = False | ||||
self._delaybuf = None | self._delaybuf = None | ||||
self._divert = False | self._divert = False | ||||
self.filteredrevs = frozenset() | self.filteredrevs = frozenset() | ||||
self._copiesstorage = opener.options.get(b'copies-storage') | self._copiesstorage = opener.options.get(b'copies-storage') | ||||
def linkrev(self, rev): | |||||
"""filtered version of revlog.linkrev""" | |||||
if rev in self.filteredrevs: | |||||
raise error.FilteredIndexError(rev) | |||||
return super(changelog, self).linkrev(rev) | |||||
def parentrevs(self, rev): | def parentrevs(self, rev): | ||||
"""filtered version of revlog.parentrevs""" | """filtered version of revlog.parentrevs""" | ||||
if rev in self.filteredrevs: | if rev in self.filteredrevs: | ||||
raise error.FilteredIndexError(rev) | raise error.FilteredIndexError(rev) | ||||
return super(changelog, self).parentrevs(rev) | return super(changelog, self).parentrevs(rev) | ||||
def flags(self, rev): | def flags(self, rev): | ||||
"""filtered version of revlog.flags""" | """filtered version of revlog.flags""" |
return r | return r | ||||
def node(self, rev): | def node(self, rev): | ||||
"""filtered version of revlog.node""" | """filtered version of revlog.node""" | ||||
if rev in self.filteredrevs: | if rev in self.filteredrevs: | ||||
raise error.FilteredIndexError(rev) | raise error.FilteredIndexError(rev) | ||||
return super(filteredchangelog, self).node(rev) | return super(filteredchangelog, self).node(rev) | ||||
def linkrev(self, rev): | |||||
"""filtered version of revlog.linkrev""" | |||||
if rev in self.filteredrevs: | |||||
raise error.FilteredIndexError(rev) | |||||
return super(filteredchangelog, self).linkrev(rev) | |||||
cl.__class__ = filteredchangelog | cl.__class__ = filteredchangelog | ||||
return cl | return cl | ||||
class repoview(object): | class repoview(object): | ||||
"""Provide a read/write view of a repo through a filtered changelog | """Provide a read/write view of a repo through a filtered changelog | ||||
This object is used to access a filtered version of a repository without | This object is used to access a filtered version of a repository without |