~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.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:
729
729
        self._custom_format = None
730
730
        self._network_name = None
731
731
        self._creating_bzrdir = None
 
732
        self._revision_graph_can_have_wrong_parents = None
732
733
        self._supports_chks = None
733
734
        self._supports_external_lookups = None
734
735
        self._supports_tree_reference = None
782
783
                self._custom_format.supports_tree_reference
783
784
        return self._supports_tree_reference
784
785
 
 
786
    @property
 
787
    def revision_graph_can_have_wrong_parents(self):
 
788
        if self._revision_graph_can_have_wrong_parents is None:
 
789
            self._ensure_real()
 
790
            self._revision_graph_can_have_wrong_parents = \
 
791
                self._custom_format.revision_graph_can_have_wrong_parents
 
792
        return self._revision_graph_can_have_wrong_parents
 
793
 
785
794
    def _vfs_initialize(self, a_bzrdir, shared):
786
795
        """Helper for common code in initialize."""
787
796
        if self._custom_format:
1986
1995
        return self._real_repository.item_keys_introduced_by(revision_ids,
1987
1996
            _files_pb=_files_pb)
1988
1997
 
1989
 
    def revision_graph_can_have_wrong_parents(self):
1990
 
        # The answer depends on the remote repo format.
1991
 
        self._ensure_real()
1992
 
        return self._real_repository.revision_graph_can_have_wrong_parents()
1993
 
 
1994
1998
    def _find_inconsistent_revision_parents(self, revisions_iterator=None):
1995
1999
        self._ensure_real()
1996
2000
        return self._real_repository._find_inconsistent_revision_parents(