index: use index.get_rev in phases.newheads
Differential Revision: https://phab.mercurial-scm.org/D7332