~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-08 12:28:37 UTC
  • mto: (5757.6.6 knitpackrepo-5)
  • mto: This revision was merged to the branch mainline in revision 5777.
  • Revision ID: jelmer@samba.org-20110408122837-z9g4olnkblf0o93t
Make revision-graph-can-have-wrong-parents a repository format attribute rather than a repository method.

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."""