revlog: accept a revs argument in headrevs
Computing the heads of an arbitrary set of revision is useful, we make it
possible to do so through the headrevs method of the revlog.
Right now, this is just calling dagop's implementation. However, we expect to
plug a native implementation soon.