~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-09 01:20:42 UTC
  • mfrom: (5766.1.4 can-have-wrong-parents)
  • Revision ID: pqm@pqm.ubuntu.com-20110409012042-1c0hnd2ryglf85y3
(jelmer) Move revision_graph_can_have_wrong_parents from Repository to
 RepositoryFormat. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        self.assertFormatAttribute('supports_leaving_lock',
100
100
            (True, False))
101
101
 
 
102
    def test_attribute_format_revision_graph_can_have_wrong_parents(self):
 
103
        self.assertFormatAttribute('revision_graph_can_have_wrong_parents',
 
104
            (True, False))
 
105
 
102
106
    def test_format_is_deprecated(self):
103
107
        repo = self.make_repository('repo')
104
108
        self.assertSubset([repo._format.is_deprecated()], (True, False))
695
699
        """
696
700
        repo = self.make_repository('.')
697
701
        # This should work, not raise NotImplementedError:
698
 
        if not repo.revision_graph_can_have_wrong_parents():
 
702
        if not repo._format.revision_graph_can_have_wrong_parents:
699
703
            return
700
704
        repo.lock_read()
701
705
        self.addCleanup(repo.unlock)