Make recursive directory removal optional
Dependencies
- [2]
GJZWSXHQDo not remove files not tracked in the new channel when outputting - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [4]
TVVW53HZConflict resolution - [5]
FXEDPLRIResurrecting tests, and type cleanup (no need for Arc<RwLock<…>> anymore) - [6]
YN63NUZOSanakirja 1.0 - [7]
VO5OQW4WRemoving anyhow in libpijul - [8]
5BRU2RRWCleanup (debugging a crash related to trees/inodes) - [9]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [10]
U4F5G3AUDo not delete unknown files during a reset - [11]
GJOE3RZ6Converting a benign error message into an info - [12]
JP3BYVXXFixing file paths on Windows - [13]
I24UEJQLVarious post-fire fixes
Change contents
- replacement in libpijul/src/working_copy/mod.rs at line 20
fn remove_path(&self, name: &str) -> Result<(), Self::Error>;fn remove_path(&self, name: &str, rec: bool) -> Result<(), Self::Error>; - replacement in libpijul/src/working_copy/memory.rs at line 266
fn remove_path(&self, path: &str) -> Result<(), Self::Error> {fn remove_path(&self, path: &str, _rec: bool) -> Result<(), Self::Error> { - replacement in libpijul/src/working_copy/filesystem.rs at line 337
fn remove_path(&self, path: &str) -> Result<(), Self::Error> {fn remove_path(&self, path: &str, rec: bool) -> Result<(), Self::Error> { - replacement in libpijul/src/working_copy/filesystem.rs at line 342
std::fs::remove_dir_all(&path)if rec {std::fs::remove_dir_all(&path)} else {std::fs::remove_dir(&path)} - replacement in libpijul/src/output/output.rs at line 545
fn kill_dead_files<T: ChannelTxnT<GraphError = T::TreeError> + TreeMutTxnT, W: WorkingCopy + Clone, C: ChangeStore>(fn kill_dead_files<T: ChannelTxnT<GraphError = T::TreeError> + TreeMutTxnT,W: WorkingCopy + Clone,C: ChangeStore,>( - replacement in libpijul/src/output/output.rs at line 554
) -> Result<(), OutputError<C::Error, T::TreeError, W::Error>>{) -> Result<(), OutputError<C::Error, T::TreeError, W::Error>> { - replacement in libpijul/src/output/output.rs at line 563
if txn.get_graph(txn.graph(&*channel), &vertex.inode_vertex(), None).map_err(|x| OutputError::Pristine(x.into()))?.is_some() {if txn.get_graph(txn.graph(&*channel), &vertex.inode_vertex(), None).map_err(|x| OutputError::Pristine(x.into()))?.is_some(){ - replacement in libpijul/src/output/output.rs at line 569
repo.remove_path(&name).map_err(OutputError::WorkingCopy)?repo.remove_path(&name, false).map_err(OutputError::WorkingCopy)?