~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_commit_merge.py

  • Committer: Martin Pool
  • Date: 2005-09-22 13:32:02 UTC
  • Revision ID: mbp@sourcefrog.net-20050922133202-347cfd35d2941dd5
- simple weave-based annotate code (not complete)

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        """Simple commit of two-way merge of empty trees."""
39
39
        os.mkdir('x')
40
40
        os.mkdir('y')
41
 
        bx = Branch.initialize('x')
42
 
        by = Branch.initialize('y')
 
41
        bx = Branch('x', init=True)
 
42
        by = Branch('y', init=True)
43
43
 
44
44
        commit(bx, 'commit one', rev_id='x@u-0-1', allow_pointless=True)
45
45
        commit(by, 'commit two', rev_id='y@u-0-1', allow_pointless=True)
66
66
        """Commit merge of two trees with no overlapping files."""
67
67
        self.build_tree(['x/', 'x/ecks', 'y/', 'y/why'])
68
68
 
69
 
        bx = Branch.initialize('x')
70
 
        by = Branch.initialize('y')
 
69
        bx = Branch('x', init=True)
 
70
        by = Branch('y', init=True)
71
71
        bx.add(['ecks'], ['ecks-id'])
72
72
        by.add(['why'], ['why-id'])
73
73
 
96
96
 
97
97
        check(bx)
98
98
        check(by)
 
99
 
 
100
 
 
101
if __name__ == '__main__':
 
102
    import unittest
 
103
    unittest.main()
 
104