~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Robert Collins
  • Date: 2005-10-23 14:07:20 UTC
  • Revision ID: robertc@robertcollins.net-20051023140720-aaa80c33984831a3
Allow the first revision on revision-history to have parents.

'bzr check' allows the first revision on revision-history to have
parents - something that is expected for cheap checkouts, and occurs
when conversions from baz do not have all history.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
        # check the previous history entry is a parent of this entry
130
130
        if rev.parent_ids:
131
 
            if last_rev_id is None and rev_history_position is not None:
132
 
                # what if the start is a ghost ? i.e. conceptually the 
133
 
                # baz imports
134
 
                raise BzrCheckError("revision {%s} has %d parents, but is the "
135
 
                                    "start of the branch"
136
 
                                    % (rev_id, len(rev.parent_ids)))
137
131
            if last_rev_id is not None:
138
132
                for parent_id in rev.parent_ids:
139
133
                    if parent_id == last_rev_id: