~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-11-25 20:35:28 UTC
  • mfrom: (3831.1.6 revision_strictness)
  • Revision ID: pqm@pqm.ubuntu.com-20081125203528-0vccybk8fasrh3fn
(jam) Part of bug #295161, prohibit characters that won't round trip.

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
        self.log('log entries:')
147
147
        for logentry in lf.logs:
148
148
            self.log('%4s %s' % (logentry.revno, logentry.rev.message))
149
 
        
 
149
 
150
150
        # first one is most recent
151
151
        logentry = lf.logs[0]
152
152
        eq(logentry.revno, '2')
154
154
        d = logentry.delta
155
155
        self.log('log 2 delta: %r' % d)
156
156
        self.checkDelta(d, added=['hello'])
157
 
        
 
157
 
158
158
        # commit a log message with control characters
159
 
        msg = "All 8-bit chars: " +  ''.join([unichr(x) for x in range(256)])
 
159
        msg = u"All 8-bit chars: " +  ''.join([unichr(x) for x in range(256)])
 
160
        msg = msg.replace(u'\r', u'\n')
160
161
        self.log("original commit message: %r", msg)
161
162
        wt.commit(msg)
162
163
        lf = LogCatcher()