~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-06-28 07:08:27 UTC
  • mfrom: (2553.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070628070827-h5s313dg5tnag9vj
(robertc) Show the names of commit hooks during commit.

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('null:', 'null:', branch))
 
47
        self.assertTrue(is_ancestor(None, None, 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('null:', 'null:', branch))
54
 
        self.assertTrue(is_ancestor(rev_id, 'null:',  branch))
55
 
        self.assertFalse(is_ancestor('null:', rev_id, 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))
56
56
 
57
57
 
58
58
# TODO: check that ancestry is updated to include indirectly merged revisions