rust/hg-core/src/transaction.rs
raw| 1 | use std::path::Path; |
| 2 | |
| 3 | /// The Mercurial transaction system is based on the append-only nature |
| 4 | /// of its core files. This exposes the necessary methods to safely write to |
| 5 | /// the different core datastructures. |
| 6 | pub trait Transaction { |
| 7 | /// Record the state of an append-only file before update |
| 8 | fn add(&mut self, file: impl AsRef<Path>, offset: usize); |
| 9 | |
| 10 | // TODO the rest of the methods once we do more in Rust. |
| 11 | } |