~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/weave.py

  • Committer: John Arbash Meinel
  • Date: 2006-02-16 17:10:15 UTC
  • mto: (1185.50.81 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: john@arbash-meinel.com-20060216171015-1c017977993fbe9b
Adding progress bars to copy_all and copy_multi, fixing ordering of repository.clone() to pull inventories after weaves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        w.add_identical(old_rev_id, new_rev_id, parent_idxs)
165
165
        self.put_weave(file_id, w, transaction)
166
166
     
167
 
    def copy_multi(self, from_store, file_ids):
 
167
    def copy_multi(self, from_store, file_ids, pb=None):
168
168
        assert isinstance(from_store, WeaveStore)
169
 
        for f in file_ids:
 
169
        for count, f in enumerate(file_ids):
170
170
            mutter("copy weave {%s} into %s", f, self)
 
171
            if pb:
 
172
                pb.update('copy', count, len(file_ids))
171
173
            self._put(f, from_store._get(f))
 
174
        if pb:
 
175
            pb.clear()