~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Jelmer Vernooij
  • Date: 2010-08-25 02:16:31 UTC
  • mto: This revision was merged to the branch mainline in revision 5403.
  • Revision ID: jelmer@samba.org-20100825021631-tonthyyjrp6ge2mq
Add development8-subtree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1428
1428
        """See RepositoryFormat.get_format_description()."""
1429
1429
        return ("Repository format 2a - rich roots, group compression"
1430
1430
            " and chk inventories")
 
1431
 
 
1432
 
 
1433
class RepositoryFormat2aSubtree(RepositoryFormat2a):
 
1434
    """A 2a repository format that supports nested trees.
 
1435
 
 
1436
    """
 
1437
 
 
1438
    def _get_matching_bzrdir(self):
 
1439
        return bzrdir.format_registry.make_bzrdir('development-subtree')
 
1440
 
 
1441
    def _ignore_setting_bzrdir(self, format):
 
1442
        pass
 
1443
 
 
1444
    _matchingbzrdir = property(_get_matching_bzrdir, _ignore_setting_bzrdir)
 
1445
 
 
1446
    def get_format_string(self):
 
1447
        return ('Bazaar development format 8\n')
 
1448
 
 
1449
    def get_format_description(self):
 
1450
        """See RepositoryFormat.get_format_description()."""
 
1451
        return ("Development repository format 8 - nested trees, "
 
1452
                "group compression and chk inventories")
 
1453
 
 
1454
    experimental = True
 
1455
    supports_tree_reference = True