--- a/contrib/perf.py Mon Oct 01 17:37:38 2018 +0200 +++ b/contrib/perf.py Mon Oct 01 17:23:54 2018 +0200 @@ -1523,6 +1523,9 @@ rl = cmdutil.openrevlog(repo, b'perfrevlogrevisions', file_, opts) rllen = getlen(ui)(rl) + if startrev < 0: + startrev = rllen + startrev + def d(): rl.clearcaches()