pub async fn discard(
conn: &mut PgConnection,
changeset_id: Uuid,
reviewed_revision: Option<i32>,
) -> ModelResult<DiscardOutcome>Expand description
Drops every staged change of an open changeset. With reviewed_revision, refuses if the
changeset is at another revision, so that changes staged after the user looked are not dropped
unseen.