Fix the comparison between channels states when one is empty
[?]
Apr 25, 2021, 5:44 AM
WQQJLPTXGJGK2LPRV633QTPLDXE4E5N7GQ4Y7FOLSFTJBWF6GHRQCDependencies
- [2]
I24UEJQLVarious post-fire fixes - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [4]
I52XSRUHMassive cleanup, and simplification - [5]
QMTANHVNReset: only output changed files - [6]
YN63NUZOSanakirja 1.0
Change contents
- edit in pijul/src/commands/reset.rs at line 145
let s: libpijul::Merkle = s.into(); - edit in pijul/src/commands/reset.rs at line 147
let (a, b) = if s == libpijul::Merkle::zero() {(None, None)} else {(Some(a), Some(b))}; - replacement in pijul/src/commands/reset.rs at line 248
from: u64,from: Option<u64>, - replacement in pijul/src/commands/reset.rs at line 252
for x in libpijul::pristine::changeid_log(txn, chan, from.into())? {let f = if let Some(f) = from {(f + 1).into()} else {0u64.into()};for x in libpijul::pristine::changeid_log(txn, chan, f)? { - edit in pijul/src/commands/reset.rs at line 261
if n <= from {continue;} - edit in libpijul/src/pristine/mod.rs at line 1892
let mut a_was_found = false; - edit in libpijul/src/pristine/mod.rs at line 1899
a_was_found = true; - replacement in libpijul/src/pristine/mod.rs at line 1905
Ok((aa, a, state))if a_was_found {Ok((aa, a, state))} else {Ok((0, 0, Merkle::zero().into()))}