~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

Merge integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
        # no entries yet
116
116
        eq(lf.logs, [])
117
117
 
118
 
        b.working_tree().commit('empty commit')
 
118
        wt.commit('empty commit')
119
119
        lf = LogCatcher()
120
120
        show_log(b, lf, verbose=True)
121
121
        eq(len(lf.logs), 1)
126
126
        self.checkDelta(d)
127
127
 
128
128
        self.build_tree(['hello'])
129
 
        b.working_tree().add('hello')
130
 
        b.working_tree().commit('add one file')
 
129
        wt.add('hello')
 
130
        wt.commit('add one file')
131
131
 
132
132
        lf = StringIO()
133
133
        # log using regular thing
155
155
        # commit a log message with control characters
156
156
        msg = "All 8-bit chars: " +  ''.join([unichr(x) for x in range(256)])
157
157
        self.log("original commit message: %r", msg)
158
 
        b.working_tree().commit(msg)
 
158
        wt.commit(msg)
159
159
        lf = LogCatcher()
160
160
        show_log(b, lf, verbose=True)
161
161
        committed_msg = lf.logs[0].rev.message
170
170
        # valid XML 1.0 characters.
171
171
        msg = "\x09" + ''.join([unichr(x) for x in range(0x20, 256)])
172
172
        self.log("original commit message: %r", msg)
173
 
        b.working_tree().commit(msg)
 
173
        wt.commit(msg)
174
174
        lf = LogCatcher()
175
175
        show_log(b, lf, verbose=True)
176
176
        committed_msg = lf.logs[0].rev.message
181
181
        wt = self.make_branch_and_tree('.')
182
182
        b = wt.branch
183
183
        b.nick='test'
184
 
        wt = b.working_tree()
185
184
        open('a', 'wb').write('hello moto\n')
186
185
        wt.add('a')
187
186
        wt.commit('simple log message', rev_id='a1'