/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Robert Collins
  • Date: 2008-08-28 06:26:43 UTC
  • mto: This revision was merged to the branch mainline in revision 3676.
  • Revision ID: robertc@robertcollins.net-20080828062643-2rwyk6phay4dv2mu
Remove obsolete dev formats.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2124
2124
        return "Packs 5 rich-root (adds stacking support, requires bzr 1.6)"
2125
2125
 
2126
2126
 
2127
 
class RepositoryFormatPackDevelopment0(RepositoryFormatPack):
2128
 
    """A no-subtrees development repository.
2129
 
 
2130
 
    This format should be retained until the second release after bzr 1.0.
2131
 
 
2132
 
    No changes to the disk behaviour from pack-0.92.
2133
 
    """
2134
 
 
2135
 
    repository_class = KnitPackRepository
2136
 
    _commit_builder_class = PackCommitBuilder
2137
 
    _serializer = xml5.serializer_v5
2138
 
 
2139
 
    def _get_matching_bzrdir(self):
2140
 
        return bzrdir.format_registry.make_bzrdir('development0')
2141
 
 
2142
 
    def _ignore_setting_bzrdir(self, format):
2143
 
        pass
2144
 
 
2145
 
    _matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2146
 
 
2147
 
    def get_format_string(self):
2148
 
        """See RepositoryFormat.get_format_string()."""
2149
 
        return "Bazaar development format 0 (needs bzr.dev from before 1.3)\n"
2150
 
 
2151
 
    def get_format_description(self):
2152
 
        """See RepositoryFormat.get_format_description()."""
2153
 
        return ("Development repository format, currently the same as "
2154
 
            "pack-0.92\n")
2155
 
 
2156
 
    def check_conversion_target(self, target_format):
2157
 
        pass
2158
 
 
2159
 
 
2160
 
class RepositoryFormatPackDevelopment0Subtree(RepositoryFormatPack):
2161
 
    """A subtrees development repository.
2162
 
 
2163
 
    This format should be retained until the second release after bzr 1.0.
2164
 
 
2165
 
    No changes to the disk behaviour from pack-0.92-subtree.
2166
 
    """
2167
 
 
2168
 
    repository_class = KnitPackRepository
2169
 
    _commit_builder_class = PackRootCommitBuilder
2170
 
    rich_root_data = True
2171
 
    supports_tree_reference = True
2172
 
    _serializer = xml7.serializer_v7
2173
 
 
2174
 
    def _get_matching_bzrdir(self):
2175
 
        return bzrdir.format_registry.make_bzrdir(
2176
 
            'development0-subtree')
2177
 
 
2178
 
    def _ignore_setting_bzrdir(self, format):
2179
 
        pass
2180
 
 
2181
 
    _matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
2182
 
 
2183
 
    def check_conversion_target(self, target_format):
2184
 
        if not target_format.rich_root_data:
2185
 
            raise errors.BadConversionTarget(
2186
 
                'Does not support rich root data.', target_format)
2187
 
        if not getattr(target_format, 'supports_tree_reference', False):
2188
 
            raise errors.BadConversionTarget(
2189
 
                'Does not support nested trees', target_format)
2190
 
            
2191
 
    def get_format_string(self):
2192
 
        """See RepositoryFormat.get_format_string()."""
2193
 
        return ("Bazaar development format 0 with subtree support "
2194
 
            "(needs bzr.dev from before 1.3)\n")
2195
 
 
2196
 
    def get_format_description(self):
2197
 
        """See RepositoryFormat.get_format_description()."""
2198
 
        return ("Development repository format, currently the same as "
2199
 
            "pack-0.92-subtree\n")
2200
 
 
2201
 
 
2202
 
class RepositoryFormatPackDevelopment1(RepositoryFormatPackDevelopment0):
 
2127
class RepositoryFormatPackDevelopment1(RepositoryFormatPack):
2203
2128
    """A no-subtrees development repository.
2204
2129
 
2205
2130
    This format should be retained until the second release after bzr 1.5.
2208
2133
    reconcile compared to pack-0.92 formats.
2209
2134
    """
2210
2135
 
 
2136
    repository_class = KnitPackRepository
 
2137
    _commit_builder_class = PackCommitBuilder
 
2138
    _serializer = xml5.serializer_v5
2211
2139
    supports_external_lookups = True
2212
2140
 
2213
2141
    def _get_matching_bzrdir(self):
2231
2159
        pass
2232
2160
 
2233
2161
 
2234
 
class RepositoryFormatPackDevelopment1Subtree(RepositoryFormatPackDevelopment0Subtree):
 
2162
class RepositoryFormatPackDevelopment1Subtree(RepositoryFormatPack):
2235
2163
    """A subtrees development repository.
2236
2164
 
2237
2165
    This format should be retained until the second release after bzr 1.5.
2240
2168
    reconcile compared to pack-0.92 formats.
2241
2169
    """
2242
2170
 
 
2171
    repository_class = KnitPackRepository
 
2172
    _commit_builder_class = PackRootCommitBuilder
 
2173
    rich_root_data = True
 
2174
    supports_tree_reference = True
 
2175
    _serializer = xml7.serializer_v7
2243
2176
    supports_external_lookups = True
2244
2177
 
2245
2178
    def _get_matching_bzrdir(self):