index: use index.get_rev in obsutil.getobsoleted
Differential Revision: https://phab.mercurial-scm.org/D7335