Fixing change hunk text parsing

pmeunier
Jan 18, 2026, 6:20 PM
65EOJOTATWLXGVA7OIZLIQM2NN5DW7OS3LCUXXBRSYX2KBLSBZKAC

Dependencies

  • [2] FVN4TICG Refusing to parse patches to binary files converted to text format, as there is no way to make sense of them
  • [3] L5I5B4PV Fixing another parsing issue preventing delete edit hunks to be recorded
  • [4] ALKSQF2F Return parse errors in the text format when a hunk description is parsed, but the hunk fails to parse
  • [5] 5FI6SBEZ Re-implement change printing and parsing

Change contents

  • replacement in libpijul/src/change/parse.rs at line 445
    [2.44][3.0:161](),[3.161][4.11629:11646](),[4.11646][3.177:381](),[3.177][3.177:381]()
    if encoding.is_none() {
    return Err(nom::Err::Error(nom::error::Error::new(
    i,
    nom::error::ErrorKind::Verify,
    )));
    } else {
    fold_many0(
    complete(|i| parse_content_line(leading_char, i)),
    String::new,
    |s, r| s + r.as_str(),
    )(i)?
    }
    [2.44]
    [2.201]
    fold_many0(
    complete(|i| parse_content_line(leading_char, i)),
    String::new,
    |s, r| s + r.as_str(),
    )(i)?