Mercurial > hg
view rust/hg-core/src/transaction.rs @ 52314:33d8cb64e9da
rust: fix darwin build
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Mon, 18 Nov 2024 15:42:09 +0100 |
parents | e01e84e5e426 |
children |
line wrap: on
line source
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. }