345 yield i |
345 yield i |
346 |
346 |
347 def reachableroots(self, minroot, heads, roots, includepath=False): |
347 def reachableroots(self, minroot, heads, roots, includepath=False): |
348 return self.index.reachableroots2(minroot, heads, roots, includepath) |
348 return self.index.reachableroots2(minroot, heads, roots, includepath) |
349 |
349 |
350 def headrevs(self): |
350 def headrevs(self, revs=None): |
351 if self.filteredrevs: |
351 if revs is None and self.filteredrevs: |
352 try: |
352 try: |
353 return self.index.headrevsfiltered(self.filteredrevs) |
353 return self.index.headrevsfiltered(self.filteredrevs) |
354 # AttributeError covers non-c-extension environments and |
354 # AttributeError covers non-c-extension environments and |
355 # old c extensions without filter handling. |
355 # old c extensions without filter handling. |
356 except AttributeError: |
356 except AttributeError: |
357 return self._headrevs() |
357 return self._headrevs() |
358 |
358 |
359 return super(changelog, self).headrevs() |
359 return super(changelog, self).headrevs(revs) |
360 |
360 |
361 def strip(self, *args, **kwargs): |
361 def strip(self, *args, **kwargs): |
362 # XXX make something better than assert |
362 # XXX make something better than assert |
363 # We can't expect proper strip behavior if we are filtered. |
363 # We can't expect proper strip behavior if we are filtered. |
364 assert not self.filteredrevs |
364 assert not self.filteredrevs |