~jameinel/+junk/bzr-index2-stuff

« back to all changes in this revision

Viewing changes to btree_index.py

  • Committer: Robert Collins
  • Date: 2008-07-01 11:37:43 UTC
  • Revision ID: robertc@robertcollins.net-20080701113743-n0pc6x42arqd4zhd
Add --btree-plain repository format for testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
            return
364
364
        if self._key_count is None:
365
365
            self._cache_nodes([0])
 
366
        if not self._key_count:
 
367
            return
366
368
        for key in keys:
367
369
            # repeated single-bisection : 'make it work'
368
370
            # FUTURE: look within the current node for the next key,
437
439
        """
438
440
        signature = bytes[0:len(self._signature())]
439
441
        if not signature == self._signature():
440
 
            raise bzrerrors.BadIndexFormatSignature(self._name, GraphIndex)
 
442
            raise bzrerrors.BadIndexFormatSignature(self._name, BTreeGraphIndex)
441
443
        lines = bytes[len(self._signature()):].splitlines()
442
444
        options_line = lines[0]
443
445
        if not options_line.startswith(_OPTION_NODE_REFS):