~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-11 08:41:33 UTC
  • mfrom: (1650.1.1 bzr.mbp.info)
  • Revision ID: pqm@pqm.ubuntu.com-20060411084133-90aab62d72535e57
(olaf) much improved bzr info output

Show diffs side-by-side

added added

removed removed

Lines of Context:
873
873
        """
874
874
        raise NotImplementedError(self.get_format_string)
875
875
 
 
876
    def get_format_description(self):
 
877
        """Return the short desciption for this format."""
 
878
        raise NotImplementedError(self.get_format_description)
 
879
 
876
880
    def _get_revision_store(self, repo_transport, control_files):
877
881
        """Return the revision store object for this a_bzrdir."""
878
882
        raise NotImplementedError(self._get_revision_store)
1043
1047
        super(RepositoryFormat4, self).__init__()
1044
1048
        self._matchingbzrdir = bzrlib.bzrdir.BzrDirFormat4()
1045
1049
 
 
1050
    def get_format_description(self):
 
1051
        """See RepositoryFormat.get_format_description()."""
 
1052
        return "Repository format 4"
 
1053
 
1046
1054
    def initialize(self, url, shared=False, _internal=False):
1047
1055
        """Format 4 branches cannot be created."""
1048
1056
        raise errors.UninitializableFormat(self)
1088
1096
        super(RepositoryFormat5, self).__init__()
1089
1097
        self._matchingbzrdir = bzrlib.bzrdir.BzrDirFormat5()
1090
1098
 
 
1099
    def get_format_description(self):
 
1100
        """See RepositoryFormat.get_format_description()."""
 
1101
        return "Weave repository format 5"
 
1102
 
1091
1103
    def _get_revision_store(self, repo_transport, control_files):
1092
1104
        """See RepositoryFormat._get_revision_store()."""
1093
1105
        """Return the revision store object for this a_bzrdir."""
1114
1126
        super(RepositoryFormat6, self).__init__()
1115
1127
        self._matchingbzrdir = bzrlib.bzrdir.BzrDirFormat6()
1116
1128
 
 
1129
    def get_format_description(self):
 
1130
        """See RepositoryFormat.get_format_description()."""
 
1131
        return "Weave repository format 6"
 
1132
 
1117
1133
    def _get_revision_store(self, repo_transport, control_files):
1118
1134
        """See RepositoryFormat._get_revision_store()."""
1119
1135
        return self._get_text_rev_store(repo_transport,
1183
1199
        """See RepositoryFormat.get_format_string()."""
1184
1200
        return "Bazaar-NG Repository format 7"
1185
1201
 
 
1202
    def get_format_description(self):
 
1203
        """See RepositoryFormat.get_format_description()."""
 
1204
        return "Weave repository format 7"
 
1205
 
1186
1206
    def _get_revision_store(self, repo_transport, control_files):
1187
1207
        """See RepositoryFormat._get_revision_store()."""
1188
1208
        return self._get_text_rev_store(repo_transport,
1275
1295
        """See RepositoryFormat.get_format_string()."""
1276
1296
        return "Bazaar-NG Knit Repository Format 1"
1277
1297
 
 
1298
    def get_format_description(self):
 
1299
        """See RepositoryFormat.get_format_description()."""
 
1300
        return "Knit repository format 1"
 
1301
 
1278
1302
    def _get_revision_store(self, repo_transport, control_files):
1279
1303
        """See RepositoryFormat._get_revision_store()."""
1280
1304
        from bzrlib.store.revision.knit import KnitRevisionStore