Do not remove files not tracked in the new channel when outputting
Dependencies
- [2]
FXEDPLRIResurrecting tests, and type cleanup (no need for Arc<RwLock<…>> anymore) - [3]
VO5OQW4WRemoving anyhow in libpijul - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [5]
YN63NUZOSanakirja 1.0 - [6]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [7]
U4F5G3AUDo not delete unknown files during a reset - [8]
I24UEJQLVarious post-fire fixes - [9]
5BRU2RRWCleanup (debugging a crash related to trees/inodes)
Change contents
- replacement in libpijul/src/output/output.rs at line 167
kill_dead_files::<T, R, P>(&mut *txn, &repo, &dead)?;kill_dead_files::<T, R, P>(&mut *txn, &channel, &repo, &dead)?; - replacement in libpijul/src/output/output.rs at line 287
kill_dead_files::<T, R, P>(&mut *txn, &repo, &dead)?;kill_dead_files::<T, R, P>(&mut *txn, &channel, &repo, &dead)?; - replacement in libpijul/src/output/output.rs at line 545
fn kill_dead_files<T: TreeMutTxnT, W: WorkingCopy + Clone, C: ChangeStore>(fn kill_dead_files<T: ChannelTxnT<GraphError = T::TreeError> + TreeMutTxnT, W: WorkingCopy + Clone, C: ChangeStore>( - edit in libpijul/src/output/output.rs at line 547
channel: &ChannelRef<T>, - replacement in libpijul/src/output/output.rs at line 550
) -> Result<(), OutputError<C::Error, T::TreeError, W::Error>> {) -> Result<(), OutputError<C::Error, T::TreeError, W::Error>>{let channel = channel.read(); - edit in libpijul/src/output/output.rs at line 557
for i in txn.iter_inodes().unwrap() {debug!("inodes = {:?}", i);} - replacement in libpijul/src/output/output.rs at line 560
if let Some(name) = name {repo.remove_path(&name).map_err(OutputError::WorkingCopy)?if txn.get_graph(txn.graph(&*channel), &vertex.inode_vertex(), None).map_err(|x| OutputError::Pristine(x.into()))?.is_some() {if let Some(name) = name {repo.remove_path(&name).map_err(OutputError::WorkingCopy)?}