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 |
---|---|---|---|---|
feb42fc7b6f5 | b43a25593629 | Martin von Zweigbergk | Nov 5 2019, 5:31 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 parentrevs(self, rev): | |||||
"""filtered version of revlog.parentrevs""" | |||||
if rev in self.filteredrevs: | |||||
raise error.FilteredIndexError(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""" | ||||
if rev in self.filteredrevs: | if rev in self.filteredrevs: | ||||
raise error.FilteredIndexError(rev) | raise error.FilteredIndexError(rev) | ||||
return super(changelog, self).flags(rev) | return super(changelog, self).flags(rev) | ||||
def delayupdate(self, tr): | def delayupdate(self, tr): | ||||
b"delay visibility of index updates to other readers" | b"delay visibility of index updates to other readers" |
return super(filteredchangelog, self).node(rev) | return super(filteredchangelog, self).node(rev) | ||||
def linkrev(self, rev): | def linkrev(self, rev): | ||||
"""filtered version of revlog.linkrev""" | """filtered version of revlog.linkrev""" | ||||
if rev in self.filteredrevs: | if rev in self.filteredrevs: | ||||
raise error.FilteredIndexError(rev) | raise error.FilteredIndexError(rev) | ||||
return super(filteredchangelog, self).linkrev(rev) | return super(filteredchangelog, self).linkrev(rev) | ||||
def parentrevs(self, rev): | |||||
"""filtered version of revlog.parentrevs""" | |||||
if rev in self.filteredrevs: | |||||
raise error.FilteredIndexError(rev) | |||||
return super(filteredchangelog, self).parentrevs(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 |