hgext/progress.py
changeset 21863 f9c91c638378
parent 21862 ba7f75e7f4e5
child 23905 8b5b963ba95a
equal deleted inserted replaced
21862:ba7f75e7f4e5 21863:f9c91c638378
   140                     wid = 20
   140                     wid = 20
   141                 if slice == 'end':
   141                 if slice == 'end':
   142                     add = encoding.trim(item, wid, leftside=True)
   142                     add = encoding.trim(item, wid, leftside=True)
   143                 else:
   143                 else:
   144                     add = encoding.trim(item, wid)
   144                     add = encoding.trim(item, wid)
   145                 add += (wid - len(add)) * ' '
   145                 add += (wid - encoding.colwidth(add)) * ' '
   146             elif indicator == 'bar':
   146             elif indicator == 'bar':
   147                 add = ''
   147                 add = ''
   148                 needprogress = True
   148                 needprogress = True
   149             elif indicator == 'unit' and unit:
   149             elif indicator == 'unit' and unit:
   150                 add = unit
   150                 add = unit