Pull: show progress bar when applying

[?]
Mar 1, 2021, 9:05 PM
XSRTXUAS3DXJA42TZESMETFVTKU2OBUDGDE4N5F2CVWI4CLOUJ4AC

Dependencies

  • [2] YN63NUZO Sanakirja 1.0
  • [*] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [*] 44BN7FWS Do not output files introduced by patches that were not applied during a push

Change contents

  • edit in pijul/src/commands/pushpull.rs at line 409
    [2.11788]
    [5.155]
    let mut pro = PROGRESS.borrow_mut().unwrap();
    let n = pro.push(crate::progress::Cursor::Bar {
    i: 0,
    n: to_download.len(),
    pre: "Applying".into(),
    });
    std::mem::drop(pro);
  • edit in pijul/src/commands/pushpull.rs at line 418
    [2.11872]
    [4.120565]
    PROGRESS.borrow_mut().unwrap()[n].incr()