~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_revision_info.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:
44
44
 
45
45
        b = Branch.initialize('.')
46
46
 
47
 
        b.commit('Commit one', rev_id='a@r-0-1')
48
 
        b.commit('Commit two', rev_id='a@r-0-2')
49
 
        b.commit('Commit three', rev_id='a@r-0-3')
 
47
        b.working_tree().commit('Commit one', rev_id='a@r-0-1')
 
48
        b.working_tree().commit('Commit two', rev_id='a@r-0-2')
 
49
        b.working_tree().commit('Commit three', rev_id='a@r-0-3')
50
50
 
51
51
        # Make sure revision-info without any arguments throws an exception
52
52
        self.check_error('bzr: ERROR: You must supply a revision identifier\n',
86
86
        """
87
87
        b = Branch.initialize('.')
88
88
 
89
 
        b.commit('Commit one', rev_id='a@r-0-1')
90
 
        b.commit('Commit two', rev_id='a@r-0-2')
91
 
        b.commit('Commit three', rev_id='a@r-0-3')
 
89
        b.working_tree().commit('Commit one', rev_id='a@r-0-1')
 
90
        b.working_tree().commit('Commit two', rev_id='a@r-0-2')
 
91
        b.working_tree().commit('Commit three', rev_id='a@r-0-3')
92
92
 
93
93
        revs = {
94
94
            1:b.get_revision_xml_file('a@r-0-1').read(),