Using state_from_prefix and hash_from_prefix on remotes to complete (or find) hashes and states
Dependencies
- [2]
DO2Y5TY5Tag synchronisation - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [4]
3QGE6HRDVersion bump (upgrade to zstd-seekable 0.2, take 2) - [5]
SMMBFECLConverting to the new patch format "online" - [6]
VO5OQW4WRemoving anyhow in libpijul - [7]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [8]
IVLLXQ5ZImproved push/pull reporting
Change contents
- edit in pijul/src/remote/mod.rs at line 602
is_pull: bool, - replacement in pijul/src/remote/mod.rs at line 698
if is_tag {Ok(CS::State(txn.state_from_prefix(&*current_channel.read(), h)?.0,))if is_pull {if is_tag {Ok(CS::State(txn.state_from_prefix(&remote_ref.lock().states, h)?.0,))} else {Ok(CS::Change(txn.hash_from_prefix_remote(&remote_ref, h)?))} - replacement in pijul/src/remote/mod.rs at line 707
Ok(CS::Change(txn.hash_from_prefix(h)?.0))if is_tag {Ok(CS::State(txn.state_from_prefix(¤t_channel.read().states, h)?.0,))} else {Ok(CS::Change(txn.hash_from_prefix(h)?.0))} - edit in pijul/src/commands/pushpull.rs at line 163
false, - edit in pijul/src/commands/pushpull.rs at line 360
true, - replacement in libpijul/src/pristine/sanakirja.rs at line 1254
channel: &Self::Channel,channel: &Self::States, - replacement in libpijul/src/pristine/sanakirja.rs at line 1264
for x in btree::iter(&self.txn, &channel.states, Some((&h, None)))for x in btree::iter(&self.txn, &channel, Some((&h, None))) - replacement in libpijul/src/pristine/mod.rs at line 664
channel: &Self::Channel,channel: &Self::States, - edit in libpijul/src/change.rs at line 32
#[error("while retrieving {:?}: {}", hash, err)]IoHash {err: std::io::Error,hash: crate::pristine::Hash,}, - replacement in libpijul/src/change.rs at line 1528
let mut r = std::fs::File::open(file)?;let mut r = std::fs::File::open(file).map_err(|err| if let Some(h) = hash {ChangeError::IoHash {err,hash: *h,}} else {ChangeError::Io(err)})?; - replacement in libpijul/src/change/change_file.rs at line 41
let mut r = std::fs::File::open(path)?;let mut r = std::fs::File::open(path).map_err(|err| ChangeError::IoHash {err,hash,})?;