Skip to content
Snippets Groups Projects
Commit e69274f8d444 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

clfilter: split `revlog.headrevs` C call from python code

Make the pure python implementation of headrevs available to derived classes. It
is important because filtering logic applied by `revlog` derived class won't
have effect on `index`. We want to be able to bypass this C call to implement
our own.
parent d686c6876ef6
No related branches found
No related tags found
No related merge requests found
......@@ -607,7 +607,9 @@
try:
return self.index.headrevs()
except AttributeError:
pass
return self._headrevs()
def _headrevs(self):
count = len(self)
if not count:
return [nullrev]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment