~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-09 01:20:42 UTC
  • mfrom: (5766.1.4 can-have-wrong-parents)
  • Revision ID: pqm@pqm.ubuntu.com-20110409012042-1c0hnd2ryglf85y3
(jelmer) Move revision_graph_can_have_wrong_parents from Repository to
 RepositoryFormat. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
            raise errors.BzrCheckError(
264
264
                "Revision knit has inconsistent parents.")
265
265
 
266
 
    def revision_graph_can_have_wrong_parents(self):
267
 
        # The revision.kndx could potentially claim a revision has a different
268
 
        # parent to the revision text.
269
 
        return True
270
 
 
271
266
 
272
267
class RepositoryFormatKnit(MetaDirRepositoryFormat):
273
268
    """Bzr repository knit format (generalized).
306
301
    fast_deltas = False
307
302
    supports_funky_characters = True
308
303
    supports_full_versioned_files = True
 
304
    # The revision.kndx could potentially claim a revision has a different
 
305
    # parent to the revision text.
 
306
    revision_graph_can_have_wrong_parents = True
309
307
 
310
308
    def _get_inventories(self, repo_transport, repo, name='inventory'):
311
309
        mapper = versionedfile.ConstantMapper(name)