fix encoded file add

[?]
Feb 27, 2021, 2:02 AM
GDDYJH7AJYJ2DWTYVP6WS3FPPRTDRQAXZ2BH2CKIFGMIASTSLD4QC

Dependencies

  • [2] Q3GU26WD merge with changes from sanakirja v1.1.2
  • [3] ZRUPLBBT Colours in diff and change: separating concerns and dependencies
  • [4] VO5OQW4W Removing anyhow in libpijul
  • [5] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [6] VYHHOEYH Versions and formatting
  • [7] YN63NUZO Sanakirja 1.0

Change contents

  • replacement in libpijul/src/tests/mod.rs at line 92
    [2.613][2.613:691]()
    let Ok((hash, _)) = record_all_change(repo, store, txn, channel, prefix);
    [2.613]
    [3.291146]
    let (hash, _) = record_all_change(repo, store, txn, channel, prefix).unwrap();
  • edit in libpijul/src/record.rs at line 274
    [2.790][2.790:885]()
    let encoding = working_copy.decode_file(&item.full_path, &mut self.rec.contents)?;
  • edit in libpijul/src/record.rs at line 275
    [3.49474]
    [2.886]
    let encoding = working_copy.decode_file(&item.full_path, &mut self.rec.contents)?;
  • replacement in libpijul/src/change/text_changes.rs at line 1205
    [3.3543][3.3543:3589]()
    write!(self, "{} {}", pref, contents)
    [3.3543]
    [3.3589]
    writeln!(self, "{} {}", pref, contents)