~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/weaverepo.py

  • Committer: Martin Pool
  • Date: 2009-09-14 01:48:28 UTC
  • mfrom: (4685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4688.
  • Revision ID: mbp@sourcefrog.net-20090914014828-ydr9rlkdfq2sv57z
Merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
lazy_import(globals(), """
29
29
from bzrlib import (
30
30
    xml5,
 
31
    graph as _mod_graph,
31
32
    )
32
33
""")
33
34
from bzrlib import (
319
320
        result.chk_bytes = None
320
321
        return result
321
322
 
322
 
    def check_conversion_target(self, target_format):
323
 
        pass
324
 
 
325
323
 
326
324
class RepositoryFormat4(PreSplitOutRepositoryFormat):
327
325
    """Bzr repository format 4.
494
492
        """See RepositoryFormat.get_format_description()."""
495
493
        return "Weave repository format 7"
496
494
 
497
 
    def check_conversion_target(self, target_format):
498
 
        pass
499
 
 
500
495
    def _get_inventories(self, repo_transport, repo, name='inventory'):
501
496
        mapper = versionedfile.ConstantMapper(name)
502
497
        return versionedfile.ThunkedVersionedFiles(repo_transport,
669
664
            result[key] = parents
670
665
        return result
671
666
 
 
667
    def get_known_graph_ancestry(self, keys):
 
668
        """Get a KnownGraph instance with the ancestry of keys."""
 
669
        keys = self.keys()
 
670
        parent_map = self.get_parent_map(keys)
 
671
        kg = _mod_graph.KnownGraph(parent_map)
 
672
        return kg
 
673
 
672
674
    def get_record_stream(self, keys, sort_order, include_delta_closure):
673
675
        for key in keys:
674
676
            text, parents = self._load_text_parents(key)