##// END OF EJS Templates
rhg: use a release-mode executable in tests...
rhg: use a release-mode executable in tests This allows the rhg build for test-rhg.t to share compiled dependencies such as hg-core with the hg-cpython build for other tests. For context, my wrapper script for the typical edit-compile-test cycle now looks like this: (cd rust && cargo +nightly-2020-10-04 fmt) (cd rust && cargo build --release -p rhg) make --silent local PURE=--rust python test/run-tests.py --local "$@" Differential Revision: https://phab.mercurial-scm.org/D9728

File last commit:

r46535:ead435aa default
r46845:e73b40c7 default
Show More
commands.rs
14 lines | 320 B | application/rls-services+xml | RustLexer
Antoine Cezar
rhg: add a limited `rhg cat -r` subcommand...
r46113 pub mod cat;
Antoine Cezar
rhg: add a `DebugData` `Command` to prepare the `rhg debugdata` subcommand...
r46099 pub mod debugdata;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 pub mod debugrequirements;
Antoine Cezar
rhg: add a `Files` `Command` to prepare the `rhg files` subcommand...
r45923 pub mod files;
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45592 pub mod root;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515 use crate::error::CommandError;
Antoine Cezar
rhg: pass `ui` to `Command` `run`...
r46009 use crate::ui::Ui;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
Antoine Cezar
rhg: pass `ui` to `Command` `run`...
r46009 pub trait Command {
fn run(&self, ui: &Ui) -> Result<(), CommandError>;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515 }