~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Aaron Bentley
  • Date: 2006-09-25 14:52:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2040.
  • Revision ID: abentley@panoramicfeedback.com-20060925145238-385b618dccf07763
Clean up progress properly when interrupted during fetch (#54000)

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
            version_ids,
404
404
            ignore_missing)
405
405
 
406
 
    def iter_lines_added_or_present_in_versions(self, version_ids=None):
 
406
    def iter_lines_added_or_present_in_versions(self, version_ids=None, 
 
407
                                                pb=None):
407
408
        """Iterate over the lines in the versioned file from version_ids.
408
409
 
409
410
        This may return lines from other versions, and does not return the
412
413
        thinks is relevant, but given that such hints are just guesses,
413
414
        its better not to have it if we don't need it.
414
415
 
 
416
        If a progress bar is supplied, it may be used to indicate progress.
 
417
        The caller is responsible for cleaning up progress bars (because this
 
418
        is an iterator).
 
419
 
415
420
        NOTES: Lines are normalised: they will all have \n terminators.
416
421
               Lines are returned in arbitrary order.
417
422
        """