~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/weaverepo.py

  • Committer: Martin Pool
  • Date: 2007-02-07 09:22:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: mbp@sourcefrog.net-20070207092247-pww6djejoiu1av67
Set the repository's serializer in the places it's needed, not in the base class

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    lockdir,
26
26
    weave,
27
27
    weavefile,
 
28
    xml5,
28
29
    )
29
30
from bzrlib.decorators import needs_read_lock, needs_write_lock
30
31
from bzrlib.repository import (
40
41
class AllInOneRepository(Repository):
41
42
    """Legacy support - the repository behaviour for all-in-one branches."""
42
43
 
 
44
    _serializer = xml5.serializer_v5
 
45
 
43
46
    def __init__(self, _format, a_bzrdir, _revision_store, control_store, text_store):
44
47
        # we reuse one control files instance.
45
48
        dir_mode = a_bzrdir._control_files._dir_mode
102
105
class WeaveMetaDirRepository(MetaDirRepository):
103
106
    """A subclass of MetaDirRepository to set weave specific policy."""
104
107
 
 
108
    _serializer = xml5.serializer_v5
 
109
 
105
110
    def get_commit_builder(self, branch, parents, config, timestamp=None,
106
111
                           timezone=None, committer=None, revprops=None,
107
112
                           revision_id=None):
114
119
    """Base class for the pre split out repository formats."""
115
120
 
116
121
    rich_root_data = False
 
122
    _serializer = xml5.serializer_v5
117
123
 
118
124
    def initialize(self, a_bzrdir, shared=False, _internal=False):
119
125
        """Create a weave repository.