Mercurial > hg
changeset 52161:46c68c0fe137
rust-vfs: add a TODO to remember a decision taken about naming
Explanations inline.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 17 Oct 2024 15:22:38 +0200 |
parents | 039b7caeb4d9 |
children | f2eab4967bfc |
files | rust/hg-core/src/vfs.rs |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/vfs.rs Wed Sep 25 18:24:15 2024 +0200 +++ b/rust/hg-core/src/vfs.rs Thu Oct 17 15:22:38 2024 +0200 @@ -260,6 +260,7 @@ /// Abstracts over the VFS to allow for different implementations of the /// filesystem layer (like passing one from Python). pub trait Vfs: Sync + Send + DynClone { + // TODO make `open` readonly and make `open_read` an `open_write` fn open(&self, filename: &Path) -> Result<std::fs::File, HgError>; fn open_read(&self, filename: &Path) -> Result<std::fs::File, HgError>; fn open_check_ambig(