Returns all commits prior to the given revision.