diff rust/hg-core/src/lib.rs @ 47407:6e49769b7f97

rhg: add exit code to HgError::Abort() My previous attempts to have rhg end with correct exit code was more of bug hunting. I found cases which were failing and fixed them. But as one might expect, more tests started failing. Let's add exit code `HgError::Abort()` and make it users explicitly tell what exit code they want. Differential Revision: https://phab.mercurial-scm.org/D10838
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 07 Jun 2021 17:27:49 +0530
parents ed1583a845d2
children 9cd35c8c6044
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Mon Jun 07 17:19:46 2021 +0530
+++ b/rust/hg-core/src/lib.rs	Mon Jun 07 17:27:49 2021 +0530
@@ -11,6 +11,7 @@
 pub mod dirstate;
 pub mod dirstate_tree;
 pub mod discovery;
+pub mod exit_codes;
 pub mod requirements;
 pub mod testing; // unconditionally built, for use from integration tests
 pub use dirstate::{