mercurial/localrepo.py
changeset 6407 12377957948d
parent 6385 0d4e068e9e52
child 6526 cfeeac24fc1e
child 6535 93e140dbcd44
equal deleted inserted replaced
6404:f08662abdf3f 6407:12377957948d
  2073             raise util.Abort(_('the server sent an unknown error code'))
  2073             raise util.Abort(_('the server sent an unknown error code'))
  2074         self.ui.status(_('streaming all changes\n'))
  2074         self.ui.status(_('streaming all changes\n'))
  2075         l = fp.readline()
  2075         l = fp.readline()
  2076         try:
  2076         try:
  2077             total_files, total_bytes = map(int, l.split(' ', 1))
  2077             total_files, total_bytes = map(int, l.split(' ', 1))
  2078         except ValueError, TypeError:
  2078         except (ValueError, TypeError):
  2079             raise util.UnexpectedOutput(
  2079             raise util.UnexpectedOutput(
  2080                 _('Unexpected response from remote server:'), l)
  2080                 _('Unexpected response from remote server:'), l)
  2081         self.ui.status(_('%d files to transfer, %s of data\n') %
  2081         self.ui.status(_('%d files to transfer, %s of data\n') %
  2082                        (total_files, util.bytecount(total_bytes)))
  2082                        (total_files, util.bytecount(total_bytes)))
  2083         start = time.time()
  2083         start = time.time()