~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/weave_fmt/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-12 00:01:34 UTC
  • mfrom: (5582.10.97 weave-plugin)
  • Revision ID: pqm@pqm.ubuntu.com-20110312000134-exy10w8ctjs8tpiu
Tags: upstream-2.4.0~beta1~bzr5718
(jelmer) Add Prober.known_formats() in favour of
 BzrDirFormat.register_format() and ControlDirFormat.register_format().
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    VersionedFiles,
66
66
    )
67
67
 
 
68
from bzrlib.plugins.weave_fmt import bzrdir as weave_bzrdir
 
69
 
68
70
 
69
71
class AllInOneRepository(Repository):
70
72
    """Legacy support - the repository behaviour for all-in-one branches."""
348
350
 
349
351
    supports_funky_characters = False
350
352
 
351
 
    _matchingbzrdir = bzrdir_weave.BzrDirFormat4()
 
353
    _matchingbzrdir = weave_bzrdir.BzrDirFormat4()
352
354
 
353
355
    def get_format_description(self):
354
356
        """See RepositoryFormat.get_format_description()."""
372
374
        return None
373
375
 
374
376
    def _get_revisions(self, repo_transport, repo):
375
 
        from bzrlib.xml4 import serializer_v4
 
377
        from bzrlib.plugins.weave_fmt.xml4 import serializer_v4
376
378
        return RevisionTextStore(repo_transport.clone('revision-store'),
377
379
            serializer_v4, True, versionedfile.PrefixMapper(),
378
380
            repo.is_locked, repo.is_write_locked)
396
398
    """
397
399
 
398
400
    _versionedfile_class = weave.WeaveFile
399
 
    _matchingbzrdir = bzrdir_weave.BzrDirFormat5()
 
401
    _matchingbzrdir = weave_bzrdir.BzrDirFormat5()
400
402
    supports_funky_characters = False
401
403
 
402
404
    @property
432
434
        return versionedfile.ThunkedVersionedFiles(base_transport,
433
435
            weave.WeaveFile, mapper, repo.is_locked)
434
436
 
 
437
    def _get_extra_interrepo_test_combinations(self):
 
438
        from bzrlib.repofmt import knitrepo
 
439
        return [(InterRepository, RepositoryFormat5(),
 
440
            knitrepo.RepositoryFormatKnit3())]
 
441
 
435
442
 
436
443
class RepositoryFormat6(PreSplitOutRepositoryFormat):
437
444
    """Bzr control format 6.
443
450
    """
444
451
 
445
452
    _versionedfile_class = weave.WeaveFile
446
 
    _matchingbzrdir = bzrdir_weave.BzrDirFormat6()
 
453
    _matchingbzrdir = weave_bzrdir.BzrDirFormat6()
447
454
    supports_funky_characters = False
448
455
    @property
449
456
    def _serializer(self):