Patchwork D7872: lfs: add "bytes" as the unit to the upload/download progress bar

login
register
mail settings
Submitter phabricator
Date Jan. 14, 2020, 10:34 p.m.
Message ID <64cb55c11fe753659324ed163ea770d8@localhost.localdomain>
Download mbox | patch
Permalink /patch/44344/
State Not Applicable
Headers show

Comments

phabricator - Jan. 14, 2020, 10:34 p.m.
Closed by commit rHG05881d002cb2: lfs: add &quot;bytes&quot; as the unit to the upload/download progress bar (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7872?vs=19264&id=19272

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7872/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7872

AFFECTED FILES
  hgext/lfs/blobstore.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/lfs/blobstore.py b/hgext/lfs/blobstore.py
--- a/hgext/lfs/blobstore.py
+++ b/hgext/lfs/blobstore.py
@@ -588,7 +588,9 @@ 
         else:
             oids = transfer(sorted(objects, key=lambda o: o.get(b'oid')))
 
-        with self.ui.makeprogress(topic, total=total) as progress:
+        with self.ui.makeprogress(
+            topic, unit=_(b"bytes"), total=total
+        ) as progress:
             progress.update(0)
             processed = 0
             blobs = 0