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
Showing
- rust/hg-core/src/config/layer.rs 8 additions, 4 deletionsrust/hg-core/src/config/layer.rs
- rust/hg-core/src/errors.rs 16 additions, 5 deletionsrust/hg-core/src/errors.rs
- rust/hg-core/src/exit_codes.rs 19 additions, 0 deletionsrust/hg-core/src/exit_codes.rs
- rust/hg-core/src/lib.rs 1 addition, 0 deletionsrust/hg-core/src/lib.rs
- rust/hg-core/src/repo.rs 3 additions, 0 deletionsrust/hg-core/src/repo.rs
- rust/rhg/src/error.rs 8 additions, 8 deletionsrust/rhg/src/error.rs
- rust/rhg/src/exitcode.rs 0 additions, 16 deletionsrust/rhg/src/exitcode.rs
- rust/rhg/src/main.rs 6 additions, 6 deletionsrust/rhg/src/main.rs
Loading
Please register or sign in to comment