diff -r 112ba1c7d65d -r 75e93d95aae6 contrib/perf.py --- a/contrib/perf.py Sat May 06 12:02:31 2017 -0700 +++ b/contrib/perf.py Sat May 06 12:12:53 2017 -0700 @@ -887,7 +887,12 @@ see ``perfrevlog`` and ``perfrevlogrevision``. """ rl = cmdutil.openrevlog(repo, 'perfrevlogchunks', file_, opts) - segmentforrevs = rl._chunkraw + + # _chunkraw was renamed to _getsegmentforrevs. + try: + segmentforrevs = rl._getsegmentforrevs + except AttributeError: + segmentforrevs = rl._chunkraw # Verify engines argument. if engines: @@ -1003,7 +1008,13 @@ raise error.CommandError('perfrevlogrevision', 'invalid arguments') r = cmdutil.openrevlog(repo, 'perfrevlogrevision', file_, opts) - segmentforrevs = r._chunkraw + + # _chunkraw was renamed to _getsegmentforrevs. + try: + segmentforrevs = r._getsegmentforrevs + except AttributeError: + segmentforrevs = r._chunkraw + node = r.lookup(rev) rev = r.rev(node)