]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Explicitly draw progress bar when resuming file uploads in `arc upload`
authorepriestley <git@epriestley.com>
Sun, 15 Mar 2015 18:31:56 +0000 (11:31 -0700)
committerepriestley <git@epriestley.com>
Sun, 15 Mar 2015 18:31:56 +0000 (11:31 -0700)
Summary: Ref T7149. Make sure we sit at "Resuming: 60%" or whatever while uploading the first chunk.

Test Plan: Ran `arc upload` on a large file, cancelled it, resumed it, got sensible progress bar.

Reviewers: chad, btrahan

Reviewed By: chad, btrahan

Subscribers: epriestley

Maniphest Tasks: T7149

Differential Revision: https://secure.phabricator.com/D12082

src/workflow/ArcanistUploadWorkflow.php

index 62beb76f95033336fbeefc54bedb2eb77565fd1e..12548e2b8c4f4d33843bc6b4c291c9cb3698f7dc 100644 (file)
@@ -190,6 +190,8 @@ EOTEXT
       $progress->update(1);
     }
 
+    $progress->draw();
+
     // TODO: We could do these in parallel to improve upload performance.
     foreach ($remaining as $chunk) {
       $offset = $chunk['byteStart'];