Recursive file deletions: show the correct paths

pmeunier
Dec 4, 2021, 12:19 PM
SMMRGKCXLDFNI7RAACOTGRGUPZLWY5MKVBL6WB2ZPEUCKDQ4PLIAC

Dependencies

  • [2] 5FI6SBEZ Re-implement change printing and parsing
  • [3] ZSF3YFZT encoded file deletion
  • [4] MQ7TZOT6 Edits can delete lines too
  • [5] FGIVSUFH Fixing conflicts with the new patch parsing code, and introducing AddRoot
  • [6] SBSM3VZV Fixing a bug in deletions (the encoding was improperly set)
  • [*] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [*] I24UEJQL Various post-fire fixes

Change contents

  • edit in libpijul/src/record.rs at line 1494
    [9.60986]
    [8.518750]
    let mut full_path = std::borrow::Cow::Borrowed(full_path);
  • edit in libpijul/src/record.rs at line 1502
    [8.519102]
    [8.519102]
    full_path = path.into()
  • replacement in libpijul/src/record.rs at line 1534
    [3.3619][3.3619:3650]()
    full_path,
    [3.3619]
    [3.3680]
    &full_path,
  • replacement in libpijul/src/change/printable.rs at line 415
    [2.47117][2.47117:47199]()
    writeln!(w, "{}", PrintableAtom::Edges(content_edges.to_vec()))?;
    [2.47117]
    [2.47199]
    if !content_edges.is_empty() {
    writeln!(w, "{}", PrintableAtom::Edges(content_edges.to_vec()))?;
    }
  • replacement in libpijul/src/change/printable.rs at line 436
    [2.47786][2.47786:47868]()
    writeln!(w, "{}", PrintableAtom::Edges(content_edges.to_vec()))?;
    [2.47786]
    [2.47868]
    if !content_edges.is_empty() {
    writeln!(w, "{}", PrintableAtom::Edges(content_edges.to_vec()))?;
    }
  • edit in libpijul/src/change/printable.rs at line 629
    [2.52949]
    [2.52949]
    if contents.is_empty() {
    return Ok(())
    }