Commit 05881d002cb by Matt Harbison

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:
parent a7c4bcf7018
......@@ -588,7 +588,9 @@ class _gitlfsremote(object):
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:
processed = 0
blobs = 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment