mercurial/progress.py
changeset 36423 2831d918e1b4
parent 36202 707aba4d48b5
child 38417 6bd9f18d31a8
equal deleted inserted replaced
36422:04c319a07c7b 36423:2831d918e1b4
   119                 add = topic
   119                 add = topic
   120             elif indicator == 'number':
   120             elif indicator == 'number':
   121                 if total:
   121                 if total:
   122                     add = b'%*d/%d' % (len(str(total)), pos, total)
   122                     add = b'%*d/%d' % (len(str(total)), pos, total)
   123                 else:
   123                 else:
   124                     add = str(pos)
   124                     add = b'%d' % pos
   125             elif indicator.startswith('item') and item:
   125             elif indicator.startswith('item') and item:
   126                 slice = 'end'
   126                 slice = 'end'
   127                 if '-' in indicator:
   127                 if '-' in indicator:
   128                     wid = int(indicator.split('-')[1])
   128                     wid = int(indicator.split('-')[1])
   129                 elif '+' in indicator:
   129                 elif '+' in indicator: