##// END OF EJS Templates
rust: make RevlogError AmbiguousPrefix case contain the actual prefix...
rust: make RevlogError AmbiguousPrefix case contain the actual prefix This brings the work started in `652149ed64f0` to its logical conclusion and makes the RevlogError self-sufficient so it can be directly converted to CommandError, without an extra rev text annotation. Without this change, it's confusing that the extra annotation is ignored in most-but-not-all cases.

File last commit:

r53057:e01e84e5 default
r53240:393ad268 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.
}