~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Martin Pool
  • Date: 2005-06-20 03:29:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050620032921-240d0ade23545055
- remove redundant precursor check

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
                missing_inventory_sha_cnt += 1
95
95
                mutter("no inventory_sha1 on revision {%s}" % rev_id)
96
96
 
97
 
            if rev.precursor:
98
 
                if rev.precursor_sha1:
99
 
                    precursor_sha1 = branch.get_revision_sha1(rev.precursor)
100
 
                    #mutter('    checking precursor hash {%s}' % rev.precursor_sha1)
101
 
                    if rev.precursor_sha1 != precursor_sha1:
102
 
                        raise BzrCheckError('Precursor sha1 hash doesn\'t match'
103
 
                            ' value in revision {%s}' % rev_id)
104
 
 
105
97
            inv = branch.get_inventory(rev.inventory_id)
106
98
            seen_ids = {}
107
99
            seen_names = {}