Now you can `pijul remove` the root of a repository
[?]
Dec 6, 2020, 2:34 PM
7T5STZYBIUN5AQPFKASNYO24QFLNBX3YCE4YIIXEQNJYR5LSZ6EQCDependencies
- [2]
VO5OQW4WRemoving anyhow in libpijul - [3]
LCERQSWMCleanup - [4]
6T5ULULMFixing conflicts with the changes from discussion #143 - [5]
WZVCLZKYaddress clippy lints - [6]
5BRU2RRWCleanup (debugging a crash related to trees/inodes) - [7]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in libpijul/src/fs.rs at line 298
assert!(txn.del_tree(file_id.as_file_id(), Some(inode)).map_err(FsError::Txn)?);assert!(inode.is_root()|| txn.del_tree(file_id.as_file_id(), Some(inode)).map_err(FsError::Txn)?); - replacement in libpijul/src/fs.rs at line 305
if del_tree_with_rev(txn, parent.as_file_id(), inode).map_err(FsError::Txn)? {if !inode.is_root()&& del_tree_with_rev(txn, parent.as_file_id(), inode).map_err(FsError::Txn)?{ - replacement in libpijul/src/fs.rs at line 325
let parent = txn.get_revtree(inode, None).unwrap().to_owned();let parent = if inode.is_root() {OwnedPathId {parent_inode: Inode::ROOT,basename: SmallString::new(),}} else {txn.get_revtree(inode, None).unwrap().to_owned()};