rust/rhg/src/exitcode.rs
author Martin von Zweigbergk <martinvonz@google.com>
Wed, 02 Dec 2020 15:15:16 -0800
changeset 46024 d767f71b9158
parent 45050 513b3ef277a3
child 46513 ca3f73cc3cf4
permissions -rw-r--r--
tests: show that in-memory rebase leaves state when working copy is dirty When in-memory rebase falls back to on-disk rebase, it checks if the working copy is dirty. If it is, it aborts the rebase. However, it leaves the rebase state on disk. I broke it in feffeb18d412 (rebase: teach in-memory rebase to not restart with on-disk rebase on conflict, 2020-09-18). Differential Revision: https://phab.mercurial-scm.org/D9508

pub type ExitCode = i32;

/// Successful exit
pub const OK: ExitCode = 0;

/// Generic abort
pub const ABORT: ExitCode = 255;

/// Command not implemented by rhg
pub const UNIMPLEMENTED_COMMAND: ExitCode = 252;