~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.py

  • Committer: Martin Pool
  • Date: 2005-09-30 04:32:09 UTC
  • mto: (1185.14.2)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: mbp@sourcefrog.net-20050930043209-b581cadabab2d986
doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        if pb is None:
126
126
            pb = bzrlib.ui.ui_factory.progress_bar()
127
127
 
 
128
        # XXX: Is there any reason why we couldn't make this accept a generator
 
129
        # and build a list as it finds things to copy?
128
130
        ids = list(ids) # Make sure we don't have a generator, since we iterate 2 times
129
131
        pb.update('preparing to copy')
130
132
        to_copy = []
187
189
 
188
190
def copy_all(store_from, store_to):
189
191
    """Copy all ids from one store to another."""
 
192
    # TODO: Optional progress indicator
190
193
    if not hasattr(store_from, "__iter__"):
191
194
        raise UnlistableStore(store_from)
192
195
    try: