Fixing two bugs around conflicts on the last line, where invalid patches were produced (first bug) and applied (second bug)
[?]
Jan 27, 2021, 3:19 PM
BZCGXVS77ZS3N4QPLIHNWZ3YFVV7H4PXQD3U6RN5ZFVOC7QL7MBQCDependencies
- [2]
GHO6DWPIRefactoring iterators - [3]
ZRUPLBBTColours in diff and change: separating concerns and dependencies - [4]
CCFJ7VO3Renaming "Record" to "Hunk" in the changes - [5]
VO5OQW4WRemoving anyhow in libpijul - [6]
CIEUBH46Fixing an index-out-of-bounds error when serialising bad changes - [*]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [*]
KVBLRDOUConcatenating edits with order conflict resolutions (if relevant), and parsing the text format of the result
Change contents
- edit in libpijul/src/pristine/sanakirja.rs at line 1337
assert!(pos > key.start);assert!(pos < key.end); - edit in libpijul/src/diff/replace.rs at line 72[9.45][8.782161]
if start <= end {return} - edit in libpijul/src/change/text_changes.rs at line 432
writeln!(w, "\\")? - edit in libpijul/src/change/text_changes.rs at line 432
writeln!(w, "\n\\")? - edit in libpijul/src/change/text_changes.rs at line 1236
writeln!(w, "\\")? - edit in libpijul/src/change/text_changes.rs at line 1236
writeln!(w, "\n\\")? - edit in libpijul/src/apply.rs at line 414
if txn.find_block_end(graph, vertex.end_pos()).is_ok()|| txn.find_block(graph, vertex.start_pos()).is_ok() {error!("Invalid change: {:?}", vertex);return Err(LocalApplyError::InvalidChange);}