~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 07:05:00 UTC
  • mfrom: (3376.2.15 no-asserts)
  • Revision ID: pqm@pqm.ubuntu.com-20080508070500-9zyyvsk0eev20t4w
(mbp) remove and disallow assert statements

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
        :returns: an iterator yielding tuples of (revison-id, parents-in-index,
303
303
            parents-in-revision).
304
304
        """
305
 
        assert self.is_locked()
 
305
        if not self.is_locked():
 
306
            raise AssertionError()
306
307
        vf = self._get_revision_vf()
307
308
        for index_version in vf.versions():
308
309
            parents_according_to_index = tuple(vf.get_parents_with_ghosts(
429
430
        """
430
431
        if not _found:
431
432
            format = RepositoryFormat.find_format(a_bzrdir)
432
 
            assert format.__class__ ==  self.__class__
433
433
        if _override_transport is not None:
434
434
            repo_transport = _override_transport
435
435
        else: