~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testlog.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:
68
68
        b = Branch('.', init=True)
69
69
 
70
70
        lf = LogCatcher()
71
 
        b.commit('empty commit')
 
71
        b.working_tree().commit('empty commit')
72
72
        show_log(b, lf, verbose=True, start_revision=1, end_revision=1)
73
73
        self.assertRaises(InvalidRevisionNumber, show_log, b, lf,
74
74
                          start_revision=2, end_revision=1) 
87
87
        b = Branch.initialize('.')
88
88
 
89
89
        lf = LogCatcher()
90
 
        b.commit('empty commit')
 
90
        b.working_tree().commit('empty commit')
91
91
        show_log(b, lf, verbose=True, start_revision=1, end_revision=1)
92
92
        self.assertRaises(InvalidRevisionNumber, show_log, b, lf,
93
93
                          start_revision=2, end_revision=1) 
113
113
        eq(lf.logs, [])
114
114
 
115
115
 
116
 
        b.commit('empty commit')
 
116
        b.working_tree().commit('empty commit')
117
117
        lf = LogCatcher()
118
118
        show_log(b, lf, verbose=True)
119
119
        eq(len(lf.logs), 1)
126
126
 
127
127
        self.build_tree(['hello'])
128
128
        b.add('hello')
129
 
        b.commit('add one file')
 
129
        b.working_tree().commit('add one file')
130
130
 
131
131
        lf = StringIO()
132
132
        # log using regular thing
153
153
        
154
154
        # commit a log message with control characters
155
155
        msg = "All 8-bit chars: " +  ''.join([unichr(x) for x in range(256)])
156
 
        b.commit(msg)
 
156
        b.working_tree().commit(msg)
157
157
        lf = LogCatcher()
158
158
        show_log(b, lf, verbose=True)
159
159
        committed_msg = lf.logs[0].rev.message