~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Martin Pool
  • Date: 2005-05-05 07:01:54 UTC
  • Revision ID: mbp@sourcefrog.net-20050505070154-466b100b3b05ff0f
- Add consistency check when checking log

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        print 'timestamp: %s' % (format_date(rev.timestamp, rev.timezone or 0,
56
56
                                             show_timezone))
57
57
 
 
58
        if revision_id != rev.revision_id:
 
59
            raise BzrCheckError("retrieved wrong revision: %r"
 
60
                                % (revision_id, rev.revision_id))
 
61
 
58
62
        ## opportunistic consistency check, same as check_patch_chaining
59
63
        if rev.precursor != precursor:
60
64
            raise BzrCheckError("mismatched precursor!")