revisions: refactor handle_revision_opt into parse_revision_opt.