##// END OF EJS Templates
perf: fix perfrevlogrevisions --reverse...
perf: fix perfrevlogrevisions --reverse Currently, 'endrev' equals `len(revlog)`, a revision that does not exist. When asking for the reverse order, the arguments passed to xrange are `xrange(len(revlog), startrev)` which then crash. We need to offset 'endrev' by one so we don't crash anymore. Also, we offset 'startrev' to ensure we get the same number of revisions with and without the `--reverse` option. Differential Revision: https://phab.mercurial-scm.org/D5228

File last commit:

r37642:33db69b6 default
r40573:cbd251d4 default
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer