Mercurial > hg
annotate rust/rhg/src/exitcode.rs @ 46387:c41ac8985fe4
perf: test the formatting of a command help
Since we are about to addd ':' in command name I want this covered.
Differential Revision: https://phab.mercurial-scm.org/D9871
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 25 Jan 2021 23:13:01 +0100 |
parents | 513b3ef277a3 |
children | ca3f73cc3cf4 |
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 |
44981 | 9 /// Command not implemented by rhg |
10 pub const UNIMPLEMENTED_COMMAND: ExitCode = 252; |