~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.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:
329
329
    # TODO: Optional progress indicator
330
330
    if not store_from.listable():
331
331
        raise UnlistableStore(store_from)
332
 
    ids = [f for f in store_from]
 
332
    pb = bzrlib.ui.ui_factory.progress_bar()
 
333
    ids = []
 
334
    for count, file_id in enumerate(store_from):
 
335
        pb.update('listing files', count, count)
 
336
        ids.append(file_id)
333
337
    mutter('copy_all ids: %r', ids)
334
338
    store_to.copy_multi(store_from, ids)
335
339