# HG changeset patch # User Matt Harbison # Date 2020-01-14 05:52:53 # Node ID 05881d002cb27cb46445bc950110d9bf5be19676 # Parent a7c4bcf7018abeebf4f5a3f25d338f8857ad1e92 lfs: add "bytes" as the unit to the upload/download progress bar Facebook also passes `util.bytecount()` as a pretty formatter here, but our progress bar doesn't support that. Differential Revision: https://phab.mercurial-scm.org/D7872 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 @@ class _gitlfsremote(object): 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