~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testtestament.py

  • Committer: Robert Collins
  • Date: 2005-11-07 20:29:51 UTC
  • mfrom: (1457.1.17)
  • Revision ID: robertc@robertcollins.net-20051107202951-6ae936c7a3e57f6f
Branch.commit() has moved to WorkingTree.commit(). (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    def setUp(self):
36
36
        super(TestamentTests, self).setUp()
37
37
        b = self.b = Branch.initialize('.')
38
 
        b.commit(message='initial null commit',
 
38
        b.working_tree().commit(message='initial null commit',
39
39
                 committer='test@user',
40
40
                 timestamp=1129025423, # 'Tue Oct 11 20:10:23 2005'
41
41
                 timezone=0,
45
45
                             ('src/foo.c', 'int main()\n{\n}\n')])
46
46
        b.add(['hello', 'src', 'src/foo.c'],
47
47
              ['hello-id', 'src-id', 'foo.c-id'])
48
 
        b.commit(message='add files and directories',
 
48
        b.working_tree().commit(message='add files and directories',
49
49
                 timestamp=1129025483,
50
50
                 timezone=36000,
51
51
                 rev_id='test@user-2',
96
96
            return
97
97
        os.symlink('wibble/linktarget', 'link')
98
98
        self.b.add(['link'], ['link-id'])
99
 
        self.b.commit(message='add symlink',
 
99
        self.b.working_tree().commit(message='add symlink',
100
100
                 timestamp=1129025493,
101
101
                 timezone=36000,
102
102
                 rev_id='test@user-3',
108
108
        """Testament to revision with extra properties"""
109
109
        props = dict(flavor='sour cherry\ncream cheese',
110
110
                     size='medium')
111
 
        self.b.commit(message='revision with properties',
 
111
        self.b.working_tree().commit(message='revision with properties',
112
112
                      timestamp=1129025493,
113
113
                      timezone=36000,
114
114
                      rev_id='test@user-3',