~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-01-11 04:33:12 UTC
  • mto: (5582.12.2 weave-plugin)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110111043312-g4wx6iuf9662f36d
Move weave formats into bzrlib.plugins.weave_fmt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    FulltextContentFactory,
63
63
    VersionedFiles,
64
64
    )
65
 
 
 
65
from bzrlib.plugins.weave_fmt.bzrdir import (
 
66
    BzrDirFormat4,
 
67
    BzrDirFormat5,
 
68
    BzrDirFormat6,
 
69
    )
66
70
 
67
71
class AllInOneRepository(Repository):
68
72
    """Legacy support - the repository behaviour for all-in-one branches."""
339
343
    has been removed.
340
344
    """
341
345
 
342
 
    _matchingbzrdir = bzrdir.BzrDirFormat4()
 
346
    _matchingbzrdir = BzrDirFormat4()
343
347
 
344
348
    def get_format_description(self):
345
349
        """See RepositoryFormat.get_format_description()."""
387
391
    """
388
392
 
389
393
    _versionedfile_class = weave.WeaveFile
390
 
    _matchingbzrdir = bzrdir.BzrDirFormat5()
 
394
    _matchingbzrdir = BzrDirFormat5()
391
395
    @property
392
396
    def _serializer(self):
393
397
        return xml5.serializer_v5
432
436
    """
433
437
 
434
438
    _versionedfile_class = weave.WeaveFile
435
 
    _matchingbzrdir = bzrdir.BzrDirFormat6()
 
439
    _matchingbzrdir = BzrDirFormat6()
436
440
    @property
437
441
    def _serializer(self):
438
442
        return xml5.serializer_v5
743
747
 
744
748
class InterWeaveRepo(InterSameDataRepository):
745
749
    """Optimised code paths between Weave based repositories.
746
 
 
747
 
    This should be in bzrlib/repofmt/weaverepo.py but we have not yet
748
 
    implemented lazy inter-object optimisation.
749
750
    """
750
751
 
751
752
    @classmethod