Returning an error when recording non-existent paths
[?]
Apr 29, 2021, 5:28 PM
G7VOM2IMN4SOHOOCFLMNPKTU5DB5EEJMK7SSBA3DLWWXFA672RUACDependencies
- [2]
I24UEJQLVarious post-fire fixes - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [4]
VO5OQW4WRemoving anyhow in libpijul - [5]
OJZWJUF2MUCH faster `pijul add -r` - [6]
4VWXL6KQCorrect handling of ignore files - [7]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [8]
JP3BYVXXFixing file paths on Windows - [9]
4OCC6D42Recursive add - [10]
ZHABNS3SCanonicalize all paths
Change contents
- replacement in pijul/src/commands/file_operations.rs at line 146[3.340]→[3.462:561](∅→∅),[3.561]→[3.807:861](∅→∅),[3.807]→[3.807:861](∅→∅),[3.861]→[2.19641:19678](∅→∅),[2.19678]→[3.895:1065](∅→∅),[3.895]→[3.895:1065](∅→∅),[3.320]→[3.538:556](∅→∅),[3.1065]→[3.538:556](∅→∅),[3.538]→[3.538:556](∅→∅)
if let Ok((full, prefix)) = get_prefix(Some(repo_path.as_ref()), path.as_path()) {repo.working_copy.add_prefix_rec(txn.clone(),repo_path.clone(),full.clone(),&prefix,threads,)?}let (full, _) = get_prefix(Some(repo_path.as_ref()), path.as_path())?;repo.working_copy.add_prefix_rec(txn.clone(),repo_path.clone(),full.clone(),threads,)? - edit in libpijul/src/working_copy/filesystem.rs at line 143
prefix: &str, - edit in libpijul/src/working_copy/filesystem.rs at line 145
debug!("record_prefix {:?}", prefix); - replacement in libpijul/src/working_copy/filesystem.rs at line 238[3.19819]→[3.2643:2726](∅→∅),[2.28457]→[3.2643:2726](∅→∅),[3.3917]→[3.2643:2726](∅→∅),[3.2726]→[2.28458:28540](∅→∅),[3.2800]→[3.213590:213648](∅→∅),[3.3206]→[3.213590:213648](∅→∅),[3.3802]→[3.213590:213648](∅→∅),[2.28540]→[3.213590:213648](∅→∅),[3.213590]→[3.213590:213648](∅→∅),[3.213648]→[2.28541:28596](∅→∅),[2.28596]→[3.213695:213837](∅→∅),[3.213695]→[3.213695:213837](∅→∅),[3.213837]→[2.28597:28616](∅→∅),[2.28616]→[3.213837:213895](∅→∅),[3.213837]→[3.213837:213895](∅→∅)
if let Ok((full, prefix)) = get_prefix(Some(repo_path.as_ref()), prefix) {self.add_prefix_rec(txn.clone(), repo_path, full, &prefix, threads)?;debug!("recording from prefix {:?}", prefix);state.record(txn.clone(),crate::Algorithm::default(),channel,self,changes,&prefix,1,)?;debug!("recorded");}let (full, prefix) = get_prefix(Some(repo_path.as_ref()), prefix).map_err(AddError::Io)?;self.add_prefix_rec(txn.clone(), repo_path, full, threads)?;debug!("recording from prefix {:?}", prefix);state.record(txn.clone(),crate::Algorithm::default(),channel,self,changes,&prefix,1,)?;debug!("recorded");