~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-17 00:32:27 UTC
  • mfrom: (4606.2.1 test-foreign)
  • Revision ID: pqm@pqm.ubuntu.com-20090817003227-g813yyjlq47j9qyb
(robertc) Prepare test_foreign for rich roots as the default format.
        (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
 
131
131
    def check_conversion_target(self, target_format):
132
132
        target_repo_format = target_format.repository_format
133
 
        self.open_repository()._format.check_conversion_target(target_repo_format)
 
133
        source_repo_format = self._format.repository_format
 
134
        source_repo_format.check_conversion_target(target_repo_format)
134
135
 
135
136
    @staticmethod
136
137
    def _check_supported(format, allow_unsupported,
3548
3549
            if self._require_stacking:
3549
3550
                raise
3550
3551
 
3551
 
    def requires_stacking(self):
3552
 
        """Return True if this policy requires stacking."""
3553
 
        return self._stack_on is not None and self._require_stacking
3554
 
 
3555
3552
    def _get_full_stack_on(self):
3556
3553
        """Get a fully-qualified URL for the stack_on location."""
3557
3554
        if self._stack_on is None:
3864
3861
# The following format should be an alias for the rich root equivalent 
3865
3862
# of the default format
3866
3863
format_registry.register_metadir('default-rich-root',
3867
 
    'bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a',
3868
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
3869
 
    tree_format='bzrlib.workingtree.WorkingTreeFormat6',
 
3864
    'bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack4',
 
3865
    help='Default format, rich root variant. (needed for bzr-svn and bzr-git).',
 
3866
    branch_format='bzrlib.branch.BzrBranchFormat6',
 
3867
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
3870
3868
    alias=True,
3871
 
    help='Same as 2a.')
3872
 
 
 
3869
    )
3873
3870
# The current format that is made on 'bzr init'.
3874
 
format_registry.set_default('2a')
 
3871
format_registry.set_default('pack-0.92')