Mercurial > public > mercurial-scm > hg
annotate rust/rhg/src/exitcode.rs @ 46736:2255e7eb39e5
rhg: Add support for --cwd
This affect the meaning of relative paths in `--repository`,
which are resolved "early" by rhg in order to load config
which is needed before fallback to Python is considered.
An incorrect path could cause errors when loading a non-existent repo,
leading to failing tests even when fallback is enabled.
Differential Revision: https://phab.mercurial-scm.org/D10134
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 05 Mar 2021 11:21:15 +0100 |
parents | ca3f73cc3cf4 |
children | b1f2c2b336ec |
rev | line source |
---|---|
44981 | 1 pub type ExitCode = i32; |
2 | |
45049
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44981
diff
changeset
|
3 /// Successful exit |
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44981
diff
changeset
|
4 pub const OK: ExitCode = 0; |
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44981
diff
changeset
|
5 |
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44981
diff
changeset
|
6 /// Generic abort |
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44981
diff
changeset
|
7 pub const ABORT: ExitCode = 255; |
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44981
diff
changeset
|
8 |
46445
ca3f73cc3cf4
rhg: Simplify CommandError based on its use
Simon Sapin <simon.sapin@octobus.net>
parents:
45049
diff
changeset
|
9 /// Command or feature not implemented by rhg |
ca3f73cc3cf4
rhg: Simplify CommandError based on its use
Simon Sapin <simon.sapin@octobus.net>
parents:
45049
diff
changeset
|
10 pub const UNIMPLEMENTED: ExitCode = 252; |