Fixing a bug when unrecording directory deletions (the "directory marker" in the tree table was not set)

[?]
Apr 28, 2021, 8:32 PM
MDBC27ZUG7U3IWGBIPK5ADCAODQJOVEJVZARAUXB6HW6QMUSLOQAC

Dependencies

  • [2] IIV3EL2X Cleanup, formatting, and fixing the Git feature
  • [3] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump
  • [4] VO5OQW4W Removing anyhow in libpijul
  • [5] YN63NUZO Sanakirja 1.0
  • [6] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [*] 7UPL3Y2A Unrecord: don't restore the same unrecorded file deletion twice in the inodes and tree tables

Change contents

  • replacement in libpijul/src/unrecord/working_copy.rs at line 104
    [3.229205][3.7078:7110]()
    let (_, basename) = changes
    [3.229205]
    [2.2151]
    let (meta, basename) = changes
  • edit in libpijul/src/unrecord/working_copy.rs at line 122
    [3.15327]
    [8.338]
    if meta.is_dir() {
    let id = OwnedPathId {
    parent_inode: inode,
    basename: SmallString::new(),
    };
    put_tree_with_rev(txn, &id, &inode)?;
    }