/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/bzrdir.py

  • Committer: Martin Pool
  • Date: 2009-08-20 05:05:59 UTC
  • mfrom: (4630 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4632.
  • Revision ID: mbp@sourcefrog.net-20090820050559-021d8swx2ps1xfn7
merge news

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
 
        source_repo_format = self._format.repository_format
134
 
        source_repo_format.check_conversion_target(target_repo_format)
 
133
        self.open_repository()._format.check_conversion_target(target_repo_format)
135
134
 
136
135
    @staticmethod
137
136
    def _check_supported(format, allow_unsupported,
3549
3548
            if self._require_stacking:
3550
3549
                raise
3551
3550
 
 
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
 
3552
3555
    def _get_full_stack_on(self):
3553
3556
        """Get a fully-qualified URL for the stack_on location."""
3554
3557
        if self._stack_on is None:
3861
3864
# The following format should be an alias for the rich root equivalent 
3862
3865
# of the default format
3863
3866
format_registry.register_metadir('default-rich-root',
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',
 
3867
    'bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a',
 
3868
    branch_format='bzrlib.branch.BzrBranchFormat7',
 
3869
    tree_format='bzrlib.workingtree.WorkingTreeFormat6',
3868
3870
    alias=True,
3869
 
    )
 
3871
    help='Same as 2a.')
 
3872
 
3870
3873
# The current format that is made on 'bzr init'.
3871
 
format_registry.set_default('pack-0.92')
 
3874
format_registry.set_default('2a')