Mercurial > public > mercurial-scm > hg-stable
annotate rust/rhg/src/exitcode.rs @ 46513:ca3f73cc3cf4
rhg: Simplify CommandError based on its use
Differential Revision: https://phab.mercurial-scm.org/D9905
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Thu, 28 Jan 2021 19:13:55 +0100 |
parents | 513b3ef277a3 |
children | b1f2c2b336ec |
rev | line source |
---|---|
45001 | 1 pub type ExitCode = i32; |
2 | |
45050
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45001
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:
45001
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:
45001
diff
changeset
|
5 |
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45001
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:
45001
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:
45001
diff
changeset
|
8 |
46513
ca3f73cc3cf4
rhg: Simplify CommandError based on its use
Simon Sapin <simon.sapin@octobus.net>
parents:
45050
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:
45050
diff
changeset
|
10 pub const UNIMPLEMENTED: ExitCode = 252; |