~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Parth Malwankar
  • Date: 2010-05-14 08:22:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5241.
  • Revision ID: parth.malwankar@gmail.com-20100514082210-5hpm0l1s71m213yj
moved progress bar logic to SourceStream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4316
4316
                new_pack.set_write_cache_size(1024*1024)
4317
4317
        current_count = 0
4318
4318
        rc = RecordCounter()
4319
 
        pb = ui.ui_factory.nested_progress_bar()
4320
 
        pb.update('Estimate')
 
4319
        #pb = ui.ui_factory.nested_progress_bar()
 
4320
        #pb.update('Estimate')
4321
4321
 
4322
4322
        for substream_type, substream in stream:
4323
4323
            if 'stream' in debug.debug_flags:
4368
4368
 
4369
4369
        # Indicate the record copy is complete.
4370
4370
        # We do this as max is only an estimate
4371
 
        pb.update('Estimate', rc.max, rc.max)
4372
 
        pb.finished()
 
4371
        #pb.update('Estimate', rc.max, rc.max)
 
4372
        #pb.finished()
4373
4373
 
4374
4374
        # Done inserting data, and the missing_keys calculations will try to
4375
4375
        # read back from the inserted data, so flush the writes to the new pack
4477
4477
        """Create a StreamSource streaming from from_repository."""
4478
4478
        self.from_repository = from_repository
4479
4479
        self.to_format = to_format
 
4480
        self._record_counter = RecordCounter()
4480
4481
 
4481
4482
    def delta_on_metadata(self):
4482
4483
        """Return True if delta's are permitted on metadata streams.