~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/weaverepo.py

  • Committer: Robert Collins
  • Date: 2009-02-27 01:02:40 UTC
  • mto: This revision was merged to the branch mainline in revision 4060.
  • Revision ID: robertc@robertcollins.net-20090227010240-35dzaxn8bah0razi
Move the fetch control attributes from Repository to RepositoryFormat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
            self.inventory_store = get_store('inventory-store')
101
101
            self._text_store = get_store('text-store')
102
102
        super(AllInOneRepository, self).__init__(_format, a_bzrdir, a_bzrdir._control_files)
103
 
        self._fetch_order = 'topological'
104
 
        self._fetch_reconcile = True
105
103
 
106
104
    @needs_read_lock
107
105
    def _all_possible_ids(self):
194
192
 
195
193
    def __init__(self, _format, a_bzrdir, control_files):
196
194
        super(WeaveMetaDirRepository, self).__init__(_format, a_bzrdir, control_files)
197
 
        self._fetch_order = 'topological'
198
 
        self._fetch_reconcile = True
199
195
        self._serializer = _format._serializer
200
196
 
201
197
    @needs_read_lock
270
266
    supports_tree_reference = False
271
267
    supports_ghosts = False
272
268
    supports_external_lookups = False
 
269
    _fetch_order = 'topological'
 
270
    _fetch_reconcile = True
273
271
 
274
272
    def initialize(self, a_bzrdir, shared=False, _internal=False):
275
273
        """Create a weave repository."""
335
333
 
336
334
    _matchingbzrdir = bzrdir.BzrDirFormat4()
337
335
 
338
 
    def __init__(self):
339
 
        super(RepositoryFormat4, self).__init__()
340
 
        self._fetch_order = 'topological'
341
 
        self._fetch_reconcile = True
342
 
 
343
336
    def get_format_description(self):
344
337
        """See RepositoryFormat.get_format_description()."""
345
338
        return "Repository format 4"
391
384
    def _serializer(self):
392
385
        return xml5.serializer_v5
393
386
 
394
 
    def __init__(self):
395
 
        super(RepositoryFormat5, self).__init__()
396
 
        self._fetch_order = 'topological'
397
 
        self._fetch_reconcile = True
398
 
 
399
387
    def get_format_description(self):
400
388
        """See RepositoryFormat.get_format_description()."""
401
389
        return "Weave repository format 5"
441
429
    def _serializer(self):
442
430
        return xml5.serializer_v5
443
431
 
444
 
    def __init__(self):
445
 
        super(RepositoryFormat6, self).__init__()
446
 
        self._fetch_order = 'topological'
447
 
        self._fetch_reconcile = True
448
 
 
449
432
    def get_format_description(self):
450
433
        """See RepositoryFormat.get_format_description()."""
451
434
        return "Weave repository format 6"
490
473
 
491
474
    _versionedfile_class = weave.WeaveFile
492
475
    supports_ghosts = False
 
476
    _fetch_order = 'topological'
 
477
    _fetch_reconcile = True
493
478
    @property
494
479
    def _serializer(self):
495
480
        return xml5.serializer_v5