##// END OF EJS Templates
changelog: use headrevsfiltered...
Mads Kiilerich -
r23088:fe5f044b stable
parent child Browse files
Show More
@@ -172,10 +172,10 b' class changelog(revlog.revlog):'
172 def headrevs(self):
172 def headrevs(self):
173 if self.filteredrevs:
173 if self.filteredrevs:
174 try:
174 try:
175 return self.index.headrevs(self.filteredrevs)
175 return self.index.headrevsfiltered(self.filteredrevs)
176 # AttributeError covers non-c-extension environments.
176 # AttributeError covers non-c-extension environments and
177 # TypeError allows us work with old c extensions.
177 # old c extensions without filter handling.
178 except (AttributeError, TypeError):
178 except AttributeError:
179 return self._headrevs()
179 return self._headrevs()
180
180
181 return super(changelog, self).headrevs()
181 return super(changelog, self).headrevs()
General Comments 0
You need to be logged in to leave comments. Login now