Progress bar for upload and apply

[?]
Nov 28, 2020, 2:29 PM
PCEJFKFXAFGYGHMM4BOBGFV3WRFXEBF2UQYQHLJ7MURRYBKRM3EAC

Dependencies

  • [2] K6GWUOD5 Styling progress bars
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [4] 367UBQ6K Forwarding SSH stderr, and progress bar for push
  • [5] Q45QHPO4 Feedback on network stuff
  • [*] FBXYP7QM Forgot to add remote::http

Change contents

  • replacement in pijul/src/remote/ssh.rs at line 670
    [3.556][3.556:603]()
    progress.println("Uploading changes");
    [3.556]
    [3.44567]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template(" Uploading changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/remote/ssh.rs at line 694
    [3.45389]
    [3.634]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template("✓ Uploading changes {wide_bar} {pos}/{len}"),
    );
  • replacement in pijul/src/remote/http.rs at line 75
    [2.1714][2.1714:1787]()
    .template(" Uploading changes {wide_bar} {pos}/{len}"),
    [2.1714]
    [2.1787]
    .template(" Uploading changes {wide_bar} {pos}/{len}"),
  • replacement in pijul/src/remote/http.rs at line 100
    [2.1879][2.1879:1954]()
    .template("✓ Uploading changes {wide_bar} {pos}/{len}"),
    [2.1879]
    [2.1954]
    .template("✓ Uploading changes {wide_bar} {pos}/{len}"),
  • edit in pijul/src/commands/pushpull.rs at line 391
    [3.120449]
    [3.120449]
    let progress = indicatif::ProgressBar::new(d.len() as u64);
    progress.set_style(
    indicatif::ProgressStyle::default_spinner()
    .template(" Applying changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/commands/pushpull.rs at line 398
    [3.120565]
    [3.120565]
    progress.inc(1);
  • edit in pijul/src/commands/pushpull.rs at line 400
    [3.120579]
    [3.120579]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template("✓ Applying changes {wide_bar} {pos}/{len}"),
    );
    progress.finish();