rust-vfs: add a TODO to remember a decision taken about naming
Explanations inline.
--- 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(