~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Parth Malwankar
  • Date: 2010-05-13 09:54:03 UTC
  • mto: This revision was merged to the branch mainline in revision 5241.
  • Revision ID: parth.malwankar@gmail.com-20100513095403-0zr0oz16ievu9an2
code cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
512
512
            if substream_type == 'revisions':
513
513
                key_count += 1
514
514
            elif rc.is_initialized():
515
 
                if counter == rc.step:
 
515
                if counter == rc.STEP:
516
516
                    rc.increment(counter)
517
517
                    pb.update('', rc.current, rc.max)
518
518
                    counter = 0
530
530
                # later records have no wire representation: we skip them.
531
531
                yield pack_writer.bytes_record(serialised, [(substream_type,)])
532
532
        if substream_type == 'revisions':
533
 
            rc.setup(key_count, current=key_count, stream_type=substream_type)
 
533
            rc.setup(key_count, current=key_count)
534
534
    pb.update('', rc.max, rc.max)
535
535
    pb.finished()
536
536
    yield pack_writer.end()