~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-04 14:22:34 UTC
  • mfrom: (3680.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20080904142234-pldim6ie032cb6am
(Jelmer) Deprecate Repository.revision_tree(None).

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
            self.t.branch.repository.revision_tree(revid_2).get_parent_ids())
51
51
        # TODO commit a merge and check it is reported correctly.
52
52
 
53
 
        # the parents for a revision_tree(None) are []:
 
53
        # the parents for a revision_tree(NULL_REVISION) are []:
54
54
        self.assertEqual([],
55
 
            self.t.branch.repository.revision_tree(None).get_parent_ids())
 
55
            self.t.branch.repository.revision_tree(
 
56
                revision.NULL_REVISION).get_parent_ids())
56
57
 
57
58
    def test_empty_no_root(self):
58
59
        null_tree = self.t.branch.repository.revision_tree(