rhg: use persistent nodemap when available
… for node ID → revision number lookups, instead on linear scan in a revlog.
Differential Revision: https://phab.mercurial-scm.org/D9520
#require docutils gettext $ $TESTDIR/check-gendoc ru checking for parse errors