Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 41763:6843379bf99e
changelog: prefilter in headrevs()
In case where headrevs() is called on some revisions, we perform
the check that aren't filtered in advance, and switch revlog to
use its unchecked form.
This allows to work with alternative implementations that don't have knowledge
of the filtering system, such as the Rust one.
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Wed, 20 Feb 2019 11:49:06 +0100 |
parents | f63ba0b9d06f |
children | 37ead13fb3d4 |
comparison
equal
deleted
inserted
replaced
41762:cde37ed080c9 | 41763:6843379bf99e |
---|---|
1119 if revs is None: | 1119 if revs is None: |
1120 try: | 1120 try: |
1121 return self.index.headrevs() | 1121 return self.index.headrevs() |
1122 except AttributeError: | 1122 except AttributeError: |
1123 return self._headrevs() | 1123 return self._headrevs() |
1124 return dagop.headrevs(revs, self.parentrevs) | 1124 return dagop.headrevs(revs, self._uncheckedparentrevs) |
1125 | 1125 |
1126 def computephases(self, roots): | 1126 def computephases(self, roots): |
1127 return self.index.computephasesmapsets(roots) | 1127 return self.index.computephasesmapsets(roots) |
1128 | 1128 |
1129 def _headrevs(self): | 1129 def _headrevs(self): |