~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 06:41:26 UTC
  • mto: (1608.2.1 bzr.mbp.escape-stores)
  • mto: This revision was merged to the branch mainline in revision 1657.
  • Revision ID: john@arbash-meinel.com-20060216064126-bc29375f7e01c08d
Adding progress indicators and improved get order for 'bzr branch'

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
from bzrlib.atomicfile import AtomicFile
32
32
from bzrlib.errors import NoSuchFile, FileExists
33
33
from bzrlib.trace import mutter
 
34
import bzrlib.ui
34
35
 
35
36
 
36
37
class WeaveStore(TransportStore):
167
168
     
168
169
    def copy_multi(self, from_store, file_ids):
169
170
        assert isinstance(from_store, WeaveStore)
170
 
        for f in file_ids:
 
171
        pb = bzrlib.ui.ui_factory.progress_bar()
 
172
        for count, f in enumerate(file_ids):
171
173
            mutter("copy weave {%s} into %s", f, self)
 
174
            pb.update('copy', count, len(file_ids))
172
175
            self._put(f, from_store._get(f))
 
176
        pb.clear()