Mercurial > public > mercurial-scm > hg
view rust/rhg/src/exitcode.rs @ 46734:1a036d33bc18
rhg: Add an allow-list of ignored extensions
Because rhg doesn?t know how a Python extension would affect
behavior it implements in Rust, when an unsupported extension
is enabled it conservatively falls back to Python-based hg.
However many users will have unsupported extensions enabled in practice.
Maybe they don?t actually affect rhg behavior, but we don?t know.
This adds a `rhg.ignored-extensions` configuration that lets
users list extensions that rhg can safely ignore and proceed even
if they?re not supported in Rust.
Differential Revision: https://phab.mercurial-scm.org/D10188
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 12 Mar 2021 22:38:40 +0100 |
parents | ca3f73cc3cf4 |
children | b1f2c2b336ec |
line wrap: on
line source
pub type ExitCode = i32; /// Successful exit pub const OK: ExitCode = 0; /// Generic abort pub const ABORT: ExitCode = 255; /// Command or feature not implemented by rhg pub const UNIMPLEMENTED: ExitCode = 252;