[Pkg-bazaar-commits] ./bzr/unstable r372: - Add consistency check when checking log
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 07:52:04 UTC 2009
------------------------------------------------------------
revno: 372
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Thu 2005-05-05 17:01:54 +1000
message:
- Add consistency check when checking log
modified:
bzrlib/log.py
-------------- next part --------------
=== modified file 'bzrlib/log.py'
--- a/bzrlib/log.py 2005-05-05 06:59:12 +0000
+++ b/bzrlib/log.py 2005-05-05 07:01:54 +0000
@@ -55,6 +55,10 @@
print 'timestamp: %s' % (format_date(rev.timestamp, rev.timezone or 0,
show_timezone))
+ if revision_id != rev.revision_id:
+ raise BzrCheckError("retrieved wrong revision: %r"
+ % (revision_id, rev.revision_id))
+
## opportunistic consistency check, same as check_patch_chaining
if rev.precursor != precursor:
raise BzrCheckError("mismatched precursor!")
More information about the Pkg-bazaar-commits
mailing list