~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-04-15 11:26:00 UTC
  • mfrom: (5757.7.7 knitpackrepo-6)
  • mto: This revision was merged to the branch mainline in revision 5801.
  • Revision ID: jelmer@samba.org-20110415112600-vrv2431lh3gi6wx2
MergeĀ knitpackrepo-6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
        """Returns the policy for making working trees on new branches."""
189
189
        return True
190
190
 
191
 
    def revision_graph_can_have_wrong_parents(self):
192
 
        # XXX: This is an old format that we don't support full checking on, so
193
 
        # just claim that checking for this inconsistency is not required.
194
 
        return False
195
 
 
196
191
 
197
192
class WeaveMetaDirRepository(MetaDirVersionedFileRepository):
198
193
    """A subclass of MetaDirRepository to set weave specific policy."""
263
258
        return self.inventories.add_lines((revision_id,), final_parents, lines,
264
259
            check_content=check_content)[0]
265
260
 
266
 
    def revision_graph_can_have_wrong_parents(self):
267
 
        return False
268
 
 
269
261
 
270
262
class PreSplitOutRepositoryFormat(RepositoryFormat):
271
263
    """Base class for the pre split out repository formats."""
280
272
    fast_deltas = False
281
273
    supports_leaving_lock = False
282
274
    supports_full_versioned_files = True
 
275
    # XXX: This is an old format that we don't support full checking on, so
 
276
    # just claim that checking for this inconsistency is not required.
 
277
    revision_graph_can_have_wrong_parents = False
283
278
 
284
279
    def initialize(self, a_bzrdir, shared=False, _internal=False):
285
280
        """Create a weave repository."""
502
497
    supports_chks = False
503
498
    supports_funky_characters = False
504
499
    supports_full_versioned_files = True
 
500
    revision_graph_can_have_wrong_parents = False
505
501
 
506
502
    _fetch_order = 'topological'
507
503
    _fetch_reconcile = True