rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
The println macro is not used to avoid string usage. Dealing only with bytes allows us to be compatible with any encoding and not just UTF8. Later on, format macro will be made to have more readable code. Differential Revision: https://phab.mercurial-scm.org/D8612
Showing
- rust/Cargo.lock 3 additions, 0 deletionsrust/Cargo.lock
- rust/rhg/Cargo.toml 1 addition, 0 deletionsrust/rhg/Cargo.toml
- rust/rhg/src/commands.rs 1 addition, 0 deletionsrust/rhg/src/commands.rs
- rust/rhg/src/commands/root.rs 76 additions, 0 deletionsrust/rhg/src/commands/root.rs
- rust/rhg/src/error.rs 58 additions, 1 deletionrust/rhg/src/error.rs
- rust/rhg/src/exitcode.rs 6 additions, 0 deletionsrust/rhg/src/exitcode.rs
- rust/rhg/src/main.rs 1 addition, 0 deletionsrust/rhg/src/main.rs
- rust/rhg/src/ui.rs 54 additions, 0 deletionsrust/rhg/src/ui.rs
Loading
Please register or sign in to comment