Mercurial > public > mercurial-scm > hg
view rust/hg-core/src/exit_codes.rs @ 49439:b07465adbcc8
rhg: make [rhg status -v] work when it needs no extra output
Add support for verbose [status] when no extra output is actually needed.
This makes it so that [rhg status] is actually useful when
[tweakdefaults] is true. (since tweakdefaults implies verbose status)
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Wed, 24 Aug 2022 16:38:13 +0100 |
parents | 006688e36e12 |
children | 7c93e38a0bbd |
line wrap: on
line source
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; // Abort when there is an error while parsing config pub const CONFIG_PARSE_ERROR_ABORT: ExitCode = 10; /// Generic something completed but did not succeed pub const UNSUCCESSFUL: ExitCode = 1; /// Command or feature not implemented by rhg pub const UNIMPLEMENTED: ExitCode = 252; /// The fallback path is not valid pub const INVALID_FALLBACK: ExitCode = 253;