Fixing a bug in deletions (the encoding was improperly set)
Dependencies
- [2]
I24UEJQLVarious post-fire fixes - [3]
ZSF3YFZTencoded file deletion - [4]
IIV3EL2XCleanup, formatting, and fixing the Git feature - [5]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [6]
TVVW53HZConflict resolution - [7]
ZAEUSICJFile deletions were not shown with their names in the metadata during record - [8]
YN63NUZOSanakirja 1.0 - [9]
ZXTHL45Oaddress clippy lints - [10]
O4DNWMPDCleaunp and proofreading of libpijul::record - [11]
WZVCLZKYaddress clippy lints - [12]
I52XSRUHMassive cleanup, and simplification - [13]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump
Change contents
- replacement in libpijul/src/record.rs at line 524
if name.len() > 2 {if let Ok(name) = std::str::from_utf8(&name[2..]) {if !full_path.is_empty() {full_path.push('/');}full_path.push_str(name);}let meta = FileMetadata::read(&name);if !full_path.is_empty() {full_path.push('/'); - edit in libpijul/src/record.rs at line 528
full_path.push_str(meta.basename); - edit in libpijul/src/record.rs at line 1232
let name_dest = txn.find_block_end(channel, current_vertex).unwrap();let mut meta = Vec::new();let FileMetadata { encoding, .. } = changes.get_file_meta(|p| txn.get_external(&p).unwrap().map(From::from),*name_dest,&mut meta,).map_err(RecordError::Changestore)?; - replacement in libpijul/src/record.rs at line 1256
self.delete_inode_vertex(self.delete_inode_vertex::<_, _, W>(changes, - edit in libpijul/src/record.rs at line 1263
encoding, - replacement in libpijul/src/record.rs at line 1296
fn delete_inode_vertex<T: GraphTxnT>(fn delete_inode_vertex<T: GraphTxnT, C: ChangeStore, W: WorkingCopy>( - edit in libpijul/src/record.rs at line 1298
changes: &C, - replacement in libpijul/src/record.rs at line 1304
encoding: Option<Encoding>,) -> Result<(), TxnErr<T::GraphError>> {) -> Result<(), RecordError<C::Error, W::Error, T::GraphError>>where<W as WorkingCopy>::Error: 'static,{ - edit in libpijul/src/record.rs at line 1310
let mut enc = None;let mut previous_name = Vec::new(); - edit in libpijul/src/record.rs at line 1325
if enc.is_none() {let FileMetadata { encoding, .. } = changes.get_file_meta(|p| txn.get_external(&p).unwrap().map(From::from),*parent_dest,&mut previous_name,).map_err(RecordError::Changestore)?;enc = Some(encoding);} - replacement in libpijul/src/record.rs at line 1378
encoding,encoding: enc.unwrap(),