handle_revision_arg: add handle_dotdot() helper