equal
deleted
inserted
replaced
2380 assert heads |
2380 assert heads |
2381 return (orderedout, roots, heads) |
2381 return (orderedout, roots, heads) |
2382 |
2382 |
2383 def headrevs(self, revs=None, stop_rev=None): |
2383 def headrevs(self, revs=None, stop_rev=None): |
2384 if revs is None: |
2384 if revs is None: |
2385 excluded = None |
2385 return self.index.headrevs(None, stop_rev) |
2386 if stop_rev is not None and stop_rev < len(self.index): |
|
2387 # We should let the native code handle it, but that a |
|
2388 # simple enough first step. |
|
2389 excluded = range(stop_rev, len(self.index)) |
|
2390 return self.index.headrevs(excluded) |
|
2391 assert stop_rev is None |
2386 assert stop_rev is None |
2392 if rustdagop is not None and self.index.rust_ext_compat: |
2387 if rustdagop is not None and self.index.rust_ext_compat: |
2393 return rustdagop.headrevs(self.index, revs) |
2388 return rustdagop.headrevs(self.index, revs) |
2394 return dagop.headrevs(revs, self._uncheckedparentrevs) |
2389 return dagop.headrevs(revs, self._uncheckedparentrevs) |
2395 |
2390 |