##// END OF EJS Templates
narrow: delete a stale TODO about not sending groups the client already has...
narrow: delete a stale TODO about not sending groups the client already has 2c5835b4246b changed the changegroup generation to not send treemanifests for directories the client had before widening. As that commit mentions, we had already stopped before that commit to send the changelog and filelogs for files the client already had. Differential Revision: https://phab.mercurial-scm.org/D9898

File last commit:

r46782:8a491439 default
r47138:29e3e46b default
Show More
debugrequirements.rs
30 lines | 706 B | application/rls-services+xml | RustLexer
/ rust / rhg / src / commands / debugrequirements.rs
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 use crate::commands::Command;
Simon Sapin
requirements: move loading to hg-core and add parsing...
r46536 use crate::error::CommandError;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 use crate::ui::Ui;
Simon Sapin
rust: introduce Repo and Vfs types for filesystem abstraction...
r46782 use hg::repo::Repo;
Simon Sapin
requirements: move loading to hg-core and add parsing...
r46536 use hg::requirements;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535
pub const HELP_TEXT: &str = "
Print the current repo requirements.
";
pub struct DebugRequirementsCommand {}
impl DebugRequirementsCommand {
pub fn new() -> Self {
DebugRequirementsCommand {}
}
}
impl Command for DebugRequirementsCommand {
fn run(&self, ui: &Ui) -> Result<(), CommandError> {
Simon Sapin
rust: introduce Repo and Vfs types for filesystem abstraction...
r46782 let repo = Repo::find()?;
Simon Sapin
requirements: move loading to hg-core and add parsing...
r46536 let mut output = String::new();
Simon Sapin
rust: introduce Repo and Vfs types for filesystem abstraction...
r46782 for req in requirements::load(&repo)? {
Simon Sapin
requirements: move loading to hg-core and add parsing...
r46536 output.push_str(&req);
output.push('\n');
}
ui.write_stdout(output.as_bytes())?;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 Ok(())
}
}