~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Martin Pool
  • Date: 2005-09-19 08:02:41 UTC
  • Revision ID: mbp@sourcefrog.net-20050919080241-d9460223db8f7d90
- rename to Revision.parent_ids to avoid confusion with old usage
  where Revision.parents held objects rather than strings\t

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
                                    % rev_id)
116
116
 
117
117
            # check the previous history entry is a parent of this entry
118
 
            if rev.parents:
 
118
            if rev.parent_ids:
119
119
                if last_rev_id is None:
120
120
                    raise BzrCheckError("revision {%s} has %d parents, but is the "
121
121
                                        "start of the branch"
122
 
                                        % (rev_id, len(rev.parents)))
123
 
                for parent_id in rev.parents:
 
122
                                        % (rev_id, len(rev.parent_ids)))
 
123
                for parent_id in rev.parent_ids:
124
124
                    if parent_id == last_rev_id:
125
125
                        break
126
126
                else: