~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ancestry.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-12 09:49:37 UTC
  • mfrom: (2598.5.9 nullrevision)
  • Revision ID: pqm@pqm.ubuntu.com-20070712094937-rw5qbi81enh0pvhw
Make most functions prefer NULL_REVISION

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
    def test_none_is_ancestor_empty_branch(self):
46
46
        branch = self.make_branch('.')
47
 
        self.assertTrue(is_ancestor(None, None, branch))
 
47
        self.assertTrue(is_ancestor('null:', 'null:', branch))
48
48
 
49
49
    def test_none_is_ancestor_non_empty_branch(self):
50
50
        builder = BranchBuilder(self.get_transport())
51
51
        rev_id = builder.build_commit()
52
52
        branch = builder.get_branch()
53
 
        self.assertTrue(is_ancestor(None, None, branch))
54
 
        self.assertTrue(is_ancestor(rev_id, None, branch))
55
 
        self.assertFalse(is_ancestor(None, rev_id, branch))
 
53
        self.assertTrue(is_ancestor('null:', 'null:', branch))
 
54
        self.assertTrue(is_ancestor(rev_id, 'null:',  branch))
 
55
        self.assertFalse(is_ancestor('null:', rev_id, branch))
56
56
 
57
57
 
58
58
# TODO: check that ancestry is updated to include indirectly merged revisions