~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/pack.py

  • Committer: Aaron Bentley
  • Date: 2009-06-20 01:17:38 UTC
  • mto: This revision was merged to the branch mainline in revision 4465.
  • Revision ID: aaron@aaronbentley.com-20090620011738-ui5v1f48fluueiix
ContainerPushParser.accept_bytes handles zero-length records correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
        # the buffer.
407
407
        last_buffer_length = None
408
408
        cur_buffer_length = len(self._buffer)
409
 
        while cur_buffer_length != last_buffer_length:
 
409
        last_state_handler = None
 
410
        while (cur_buffer_length != last_buffer_length
 
411
               or last_state_handler != self._state_handler):
410
412
            last_buffer_length = cur_buffer_length
 
413
            last_state_handler = self._state_handler
411
414
            self._state_handler()
412
415
            cur_buffer_length = len(self._buffer)
413
416