~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: 2009-01-13 05:14:24 UTC
  • mfrom: (3936.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090113051424-nrk3zkfe09h46i9y
(mbp) merge 1.11 and advance to 1.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    )
23
23
import bzrlib
24
24
from bzrlib.tests import TestCaseWithTransport
25
 
from bzrlib.tree import RevisionTree
26
25
 
27
26
 
28
27
class TestTreeWithCommits(TestCaseWithTransport):
51
50
            self.t.branch.repository.revision_tree(revid_2).get_parent_ids())
52
51
        # TODO commit a merge and check it is reported correctly.
53
52
 
54
 
        # the parents for a revision_tree(None) are []:
 
53
        # the parents for a revision_tree(NULL_REVISION) are []:
55
54
        self.assertEqual([],
56
 
            self.t.branch.repository.revision_tree(None).get_parent_ids())
 
55
            self.t.branch.repository.revision_tree(
 
56
                revision.NULL_REVISION).get_parent_ids())
57
57
 
58
58
    def test_empty_no_root(self):
59
59
        null_tree = self.t.branch.repository.revision_tree(