##// END OF EJS Templates
rhg: avoid calculating copies for status --no-status...
rhg: avoid calculating copies for status --no-status This changes how rhg status avoids printing copies with --no-status. Originally 668a871454e8 added a check right before printing copies. This changes it to match Python and check it earlier by defining `list_copies = ... && !no_status`. This makes no difference now, but when we implement --rev --rev --copies it will ensure we don't do wasteful copy tracing when it's not going to be printed.

File last commit:

r53057:e01e84e5 default
r53239:53dc147b default
Show More
transaction.rs
11 lines | 422 B | application/rls-services+xml | RustLexer
use std::path::Path;
/// The Mercurial transaction system is based on the append-only nature
/// of its core files. This exposes the necessary methods to safely write to
/// the different core datastructures.
pub trait Transaction {
/// Record the state of an append-only file before update
fn add(&mut self, file: impl AsRef<Path>, offset: usize);
// TODO the rest of the methods once we do more in Rust.
}