~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Andrew Bennetts
  • Date: 2007-09-28 04:40:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2905.
  • Revision ID: andrew.bennetts@canonical.com-20070928044046-fyl5mq8gszi78g5y
Deprecate revision_ids arg to Repository.check and other tweaks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1415
1415
                                                       self.get_transaction())
1416
1416
 
1417
1417
    @needs_read_lock
1418
 
    def check(self, revision_ids):
 
1418
    def check(self, revision_ids=None):
1419
1419
        """Check consistency of all history of given revision_ids.
1420
1420
 
1421
1421
        Different repository implementations should override _check().
1423
1423
        :param revision_ids: A non-empty list of revision_ids whose ancestry
1424
1424
             will be checked.  Typically the last revision_id of a branch.
1425
1425
        """
1426
 
        if not revision_ids:
1427
 
            raise ValueError("revision_ids must be non-empty in %s.check" 
1428
 
                    % (self,))
1429
 
        revision_ids = [osutils.safe_revision_id(r) for r in revision_ids]
 
1426
        if revision_ids is not None:
 
1427
            symbol_versioning.warn('revision_ids should not be supplied to'
 
1428
                ' Repostiory.check, as of bzr 0.92.',
 
1429
                 DeprecationWarning, stacklevel=2)
1430
1430
        return self._check(revision_ids)
1431
1431
 
1432
1432
    def _check(self, revision_ids):