~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Robert Collins
  • Date: 2007-10-29 21:00:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2949.
  • Revision ID: robertc@robertcollins.net-20071029210022-xd9vv00ud44w8cx8
Review feedback - progress bars do not get periods in the status message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
659
659
            packs, 'revision_index')[0]
660
660
        revision_nodes = self._index_contents(revision_index_map, revision_keys)
661
661
        # copy revision keys and adjust values
662
 
        pb.update("Copying revision texts.", 1)
 
662
        pb.update("Copying revision texts", 1)
663
663
        list(self._copy_nodes_graph(revision_nodes, revision_index_map,
664
664
            new_pack._writer, new_pack.revision_index))
665
665
        if 'pack' in debug.debug_flags:
678
678
        # copy inventory keys and adjust values
679
679
        # XXX: Should be a helper function to allow different inv representation
680
680
        # at this point.
681
 
        pb.update("Copying inventory texts.", 2)
 
681
        pb.update("Copying inventory texts", 2)
682
682
        inv_lines = self._copy_nodes_graph(inv_nodes, inventory_index_map,
683
683
            new_pack._writer, new_pack.inventory_index, output_lines=True)
684
684
        if revision_ids:
718
718
                raise errors.RevisionNotPresent(a_missing_key[1],
719
719
                    a_missing_key[0])
720
720
        # copy text keys and adjust values
721
 
        pb.update("Copying content texts.", 3)
 
721
        pb.update("Copying content texts", 3)
722
722
        list(self._copy_nodes_graph(text_nodes, text_index_map,
723
723
            new_pack._writer, new_pack.text_index))
724
724
        if 'pack' in debug.debug_flags:
733
733
        signature_nodes = self._index_contents(signature_index_map,
734
734
            signature_filter)
735
735
        # copy signature keys and adjust values
736
 
        pb.update("Copying signature texts.", 4)
 
736
        pb.update("Copying signature texts", 4)
737
737
        self._copy_nodes(signature_nodes, signature_index_map, new_pack._writer,
738
738
            new_pack.signature_index)
739
739
        if 'pack' in debug.debug_flags:
744
744
        if not new_pack.data_inserted():
745
745
            new_pack.abort()
746
746
            return None
747
 
        pb.update("Finishing pack.", 5)
 
747
        pb.update("Finishing pack", 5)
748
748
        new_pack.finish()
749
749
        self.allocate(new_pack)
750
750
        return new_pack