~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-12 03:39:10 UTC
  • mfrom: (4103.3.5 progress)
  • Revision ID: pqm@pqm.ubuntu.com-20090312033910-9umj7rwjo98zl7up
(mbp) small progress improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1605
1605
        batch_size = 10 # should be ~150MB on a 55K path tree
1606
1606
        batch_count = len(revision_order) / batch_size + 1
1607
1607
        processed_texts = 0
1608
 
        pb.update("Calculating text parents.", processed_texts, text_count)
 
1608
        pb.update("Calculating text parents", processed_texts, text_count)
1609
1609
        for offset in xrange(batch_count):
1610
1610
            to_query = revision_order[offset * batch_size:(offset + 1) *
1611
1611
                batch_size]
1615
1615
                revision_id = rev_tree.get_revision_id()
1616
1616
                parent_ids = ancestors[revision_id]
1617
1617
                for text_key in revision_keys[revision_id]:
1618
 
                    pb.update("Calculating text parents.", processed_texts)
 
1618
                    pb.update("Calculating text parents", processed_texts)
1619
1619
                    processed_texts += 1
1620
1620
                    candidate_parents = []
1621
1621
                    for parent_id in parent_ids: