~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-08 12:28:37 UTC
  • mto: (5757.6.6 knitpackrepo-5)
  • mto: This revision was merged to the branch mainline in revision 5777.
  • Revision ID: jelmer@samba.org-20110408122837-z9g4olnkblf0o93t
Make revision-graph-can-have-wrong-parents a repository format attribute rather than a repository method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2765
2765
                except UnicodeDecodeError:
2766
2766
                    raise errors.NonAsciiRevisionId(method, self)
2767
2767
 
2768
 
    def revision_graph_can_have_wrong_parents(self):
2769
 
        """Is it possible for this repository to have a revision graph with
2770
 
        incorrect parents?
2771
 
 
2772
 
        If True, then this repository must also implement
2773
 
        _find_inconsistent_revision_parents so that check and reconcile can
2774
 
        check for inconsistencies before proceeding with other checks that may
2775
 
        depend on the revision index being consistent.
2776
 
        """
2777
 
        raise NotImplementedError(self.revision_graph_can_have_wrong_parents)
2778
 
 
2779
2768
 
2780
2769
def install_revision(repository, rev, revision_tree):
2781
2770
    """Install all revision data into a repository."""
3019
3008
    supports_full_versioned_files = None
3020
3009
    # Does this format support signing revision signatures?
3021
3010
    supports_revision_signatures = True
 
3011
    # Can the revision graph have incorrect parents?
 
3012
    revision_graph_can_have_wrong_parents = None
3022
3013
 
3023
3014
    def __repr__(self):
3024
3015
        return "%s()" % self.__class__.__name__