mercurial/progress.py
changeset 34486 a57c938e7ac8
parent 34314 a667f0ca1d5f
child 34746 54fa3db5becf
equal deleted inserted replaced
34485:37b7581e5737 34486:a57c938e7ac8
   172                 # cursor bounce between the right and left sides
   172                 # cursor bounce between the right and left sides
   173                 amt = self.indetcount % (2 * progwidth)
   173                 amt = self.indetcount % (2 * progwidth)
   174                 amt -= progwidth
   174                 amt -= progwidth
   175                 bar = (' ' * int(progwidth - abs(amt)) + '<=>' +
   175                 bar = (' ' * int(progwidth - abs(amt)) + '<=>' +
   176                        ' ' * int(abs(amt)))
   176                        ' ' * int(abs(amt)))
   177             prog = ''.join(('[', bar , ']'))
   177             prog = ''.join(('[', bar, ']'))
   178             out = spacejoin(head, prog, tail)
   178             out = spacejoin(head, prog, tail)
   179         else:
   179         else:
   180             out = spacejoin(head, tail)
   180             out = spacejoin(head, tail)
   181         self._writeerr('\r' + encoding.trim(out, termwidth))
   181         self._writeerr('\r' + encoding.trim(out, termwidth))
   182         self.lasttopic = topic
   182         self.lasttopic = topic