revisions: split out handle_revision_pseudo_opt function