Actually downloading changelists from channels without an id

pmeunier
Jul 4, 2021, 5:28 PM
QZ77NIXCOQDZJTTVQNN22CAZSMRPGVOZAW4X6RKIZ534UG4XCWEQC

Dependencies

  • [2] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • edit in pijul/src/remote/mod.rs at line 342
    [2.65140]
    [2.65140]
    }
    pub async fn download_changelist_nocache(
    &mut self,
    from: u64,
    paths: &[String],
    v: &mut Vec<Hash>,
    ) -> Result<HashSet<Position<Hash>>, anyhow::Error> {
    let f = |v: &mut Vec<Hash>, _n, h, _m| {
    debug!("no cache: {:?}", h);
    Ok(v.push(h))
    };
    let r = match *self {
    RemoteRepo::Local(ref mut l) => l.download_changelist(f, v, from, paths)?,
    RemoteRepo::Ssh(ref mut s) => s.download_changelist(f, v, from, paths).await?,
    RemoteRepo::Http(ref h) => h.download_changelist(f, v, from, paths).await?,
    RemoteRepo::LocalChannel(_) => HashSet::new(),
    RemoteRepo::None => unreachable!(),
    };
    Ok(r)
  • edit in pijul/src/commands/pushpull.rs at line 388
    [2.119102]
    [2.119102]
    } else {
    inodes = remote
    .download_changelist_nocache(0, &self.path, &mut to_download)
    .await?