From b961869edac9469be93f2c3ac7a24562d3186860 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 15 Mar 2015 11:31:56 -0700 Subject: [PATCH] Explicitly draw progress bar when resuming file uploads in `arc upload` 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workflow/ArcanistUploadWorkflow.php b/src/workflow/ArcanistUploadWorkflow.php index 62beb76f..12548e2b 100644 --- a/src/workflow/ArcanistUploadWorkflow.php +++ b/src/workflow/ArcanistUploadWorkflow.php @@ -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']; -- 2.43.0