Submitter | phabricator |
---|---|
Date | Feb. 13, 2018, 4:13 p.m. |
Message ID | <differential-rev-PHID-DREV-b2jtcqesrtttiukt3jgq-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/27821/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/progress.py b/mercurial/progress.py --- a/mercurial/progress.py +++ b/mercurial/progress.py @@ -119,8 +119,8 @@ add = topic elif indicator == 'number': if total: - add = ('% ' + str(len(str(total))) + - 's/%s') % (pos, total) + padamount = '%d' % len(str(total)) + add = ('% '+ padamount + 's/%s') % (pos, total) else: add = str(pos) elif indicator.startswith('item') and item: