~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-06-12 01:11:00 UTC
  • mfrom: (4428.2.6 385103-format-name)
  • Revision ID: pqm@pqm.ubuntu.com-20090612011100-89h4a819eqx1ym98
(mbp) add 2a format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1069
1069
                'revision serialization (needs bzr.dev from 1.16)\n')
1070
1070
 
1071
1071
 
 
1072
class RepositoryFormat2a(RepositoryFormatCHK2):
 
1073
    """A CHK repository that uses the bencode revision serializer.
 
1074
    
 
1075
    This is the same as RepositoryFormatCHK2 but with a public name.
 
1076
    """
 
1077
 
 
1078
    _serializer = chk_serializer.chk_bencode_serializer
 
1079
 
 
1080
    def _get_matching_bzrdir(self):
 
1081
        return bzrdir.format_registry.make_bzrdir('2a')
 
1082
 
 
1083
    def _ignore_setting_bzrdir(self, format):
 
1084
        pass
 
1085
 
 
1086
    _matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
 
1087
 
 
1088
    def get_format_string(self):
 
1089
        return ('Bazaar repository format 2a (needs bzr 1.16 or later)\n')