rust/rhg/src/exitcode.rs
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sun, 21 Mar 2021 16:31:42 +0100
changeset 46825 4821cb414a5c
parent 46820 821929d59e01
permissions -rw-r--r--
path: extract sub-option logic into its own method We will need to re-use this logic for `path://` so we first extract it into its own method. Differential Revision: https://phab.mercurial-scm.org/D10262

pub type ExitCode = i32;

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

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

// Abort when there is a config related error
pub const CONFIG_ERROR_ABORT: ExitCode = 30;

/// Generic something completed but did not succeed
pub const UNSUCCESSFUL: ExitCode = 1;

/// Command or feature not implemented by rhg
pub const UNIMPLEMENTED: ExitCode = 252;