[PATCH] Tidy up some rev-list-related stuff