revlog: catch revlog corruption in index_baserev
A revision cannot use a base above itself, it can only happens one corrupted
repository.
Ignoring such corrupted could lead to infinite loop.
#require docutils gettext $ $TESTDIR/check-gendoc it checking for parse errors