##// END OF EJS Templates
graft: gather arg compatibility code...
graft: gather arg compatibility code Lets do it all in one place and at the start, this is easier to maintain consistently. We also take this as an opportunity to do this before we resolve commit options, that so user do not get error about "--date" when they actually they specified the "--current-date" argument.

File last commit:

r53056:44823c50 default
r53233:8faabe8a 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.
}