revlog: adjust doctest examples to be portable to Python 3

Authored by durin42.

Description

revlog: adjust doctest examples to be portable to Python 3

The range() builtin returns a special object rather than a list, but
we really wanted a list in these examples.

Differential Revision: https://phab.mercurial-scm.org/D3922

Details