~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Andrew Bennetts
  • Date: 2007-09-24 02:55:30 UTC
  • mto: (2745.6.48 reconcile-check-heads)
  • mto: This revision was merged to the branch mainline in revision 2905.
  • Revision ID: andrew.bennetts@canonical.com-20070924025530-una2yvejg4w9xxfe
Add a 'revision_graph_can_have_wrong_parents' method to repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1203
1203
                    revision_id.decode('ascii')
1204
1204
                except UnicodeDecodeError:
1205
1205
                    raise errors.NonAsciiRevisionId(method, self)
 
1206
    
 
1207
    def revision_graph_can_have_wrong_parents(self):
 
1208
        """Is it possible for this repository to have a revision graph with
 
1209
        incorrect parents?
1206
1210
 
 
1211
        If True, then this repository must also implement
 
1212
        _find_inconsistent_revision_parents so that check and reconcile can
 
1213
        check for inconsistencies before proceeding with other checks that may
 
1214
        depend on the revision index being consistent.
 
1215
        """
 
1216
        raise NotImplementedError(self.revision_graph_can_have_wrong_parents)
 
1217
        
1207
1218
 
1208
1219
 
1209
1220
# remove these delegates a while after bzr 0.15