##// END OF EJS Templates
rust: normalize `_for_unchecked_rev` naming among revlogs and the index...
rust: normalize `_for_unchecked_rev` naming among revlogs and the index This normalizes the naming scheme between the `Revlog`, `Changelog`, etc. which is less suprising, though no real bugs could stem from this because of the type signature mismatch. The very high-level `Repo` object still uses an `UncheckedRevision` parameter for its methods because that's what most callers will want.

File last commit:

r53057:e01e84e5 default
r53187:a3fa37bd 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.
}