~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Jelmer Vernooij
  • Date: 2009-05-06 20:46:38 UTC
  • mto: (4398.5.2 bencode_serializer)
  • mto: This revision was merged to the branch mainline in revision 4410.
  • Revision ID: jelmer@samba.org-20090506204638-ffuwisc1d3vc1wwp
Add development7-rich-root format that uses the RIO Serializer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1002
1002
                'Does not support nested trees', target_format)
1003
1003
 
1004
1004
 
 
1005
 
 
1006
class RepositoryFormatCHK2(RepositoryFormatCHK1):
 
1007
    """A CHK repository that uses the RIO revision serializer."""
 
1008
 
 
1009
    _serializer = chk_serializer.chk_rio_serializer
 
1010
 
 
1011
    def _get_matching_bzrdir(self):
 
1012
        return bzrdir.format_registry.make_bzrdir('development7-rich-root')
 
1013
 
 
1014
    def _ignore_setting_bzrdir(self, format):
 
1015
        pass
 
1016
 
 
1017
    _matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
 
1018
 
 
1019
    def get_format_string(self):
 
1020
        """See RepositoryFormat.get_format_string()."""
 
1021
        return ('Bazaar development format - chk repository with rio revision '
 
1022
                'serialization (needs bzr.dev from 1.15)\n')
 
1023
 
 
1024