Completing dependencies only with changes the remote does not have

[?]
Dec 11, 2020, 6:42 PM
BE7GUCI2N6TX3P2HRMFSH7XLJKILDPOKOXKA7HWOABBFNKCKMZLAC

Dependencies

  • [2] M5FK3ABT Complete dependencies when pushing and pulling
  • [3] I52XSRUH Massive cleanup, and simplification
  • [4] BBKV6VMN Fixing push/pull messages, and do not reverse the changes to download/upload
  • [5] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • replacement in pijul/src/commands/pushpull.rs at line 240
    [2.158][2.158:232]()
    let comp = complete_deps(&repo.changes, &to_upload, &d)?;
    [2.158]
    [2.232]
    let comp = complete_deps(&txn, &remote_changes, &repo.changes, &to_upload, &d)?;
  • replacement in pijul/src/commands/pushpull.rs at line 365
    [2.566][2.566:642]()
    let comp = complete_deps(&repo.changes, &to_download, &d)?;
    [2.566]
    [2.642]
    let comp = complete_deps(&txn, &None, &repo.changes, &to_download, &d)?;
  • replacement in pijul/src/commands/pushpull.rs at line 489
    [3.122682][2.809:843]()
    fn complete_deps<C: ChangeStore>(
    [3.122682]
    [2.843]
    fn complete_deps<T: TxnT, C: ChangeStore>(
    txn: &T,
    remote_changes: &Option<libpijul::RemoteRef<T>>,
  • edit in pijul/src/commands/pushpull.rs at line 502
    [2.1255]
    [2.1255]
    if let Some(ref rem) = remote_changes {
    if txn.remote_has_change(rem, d) {
    continue;
    }
    }