dont unwrap name() for RemoteRepo::LocalChannel

ammkrn
Jul 26, 2021, 10:58 PM
2V33SO6IVPKBRPIJ3U3WYD6QKGN36BJVPP3M2YUDN7GTX3YH5UCAC

Dependencies

  • [2] QU6T6J6W Use the change time in addition to the modified time when detecting untouched files (at least on Unix)
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [4] 76PCXGML Pushing to, and pulling from the local repository
  • [5] A3RM526Y Integrating identity malleability
  • [6] EAAJNZ3J Make recursive directory removal optional

Change contents

  • replacement in pijul/src/remote/mod.rs at line 174
    [3.1636][3.6412:6499]()
    let mut remote = txn.open_or_create_remote(id, self.name().unwrap()).unwrap();
    [3.1636]
    [3.56987]
    let mut remote = if let Some(name) = self.name() {
    txn.open_or_create_remote(id, name)?
    } else {
    return Ok(None);
    };
  • replacement in libpijul/src/working_copy/filesystem.rs at line 344
    [2.274][2.274:383]()
    let ctime = std::time::SystemTime::UNIX_EPOCH + std::time::Duration::from_secs(attr.ctime() as u64);
    [2.274]
    [2.383]
    let ctime =
    std::time::SystemTime::UNIX_EPOCH + std::time::Duration::from_secs(attr.ctime() as u64);