~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.py

  • Committer: Robert Collins
  • Date: 2007-07-26 05:33:59 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20070726053359-39020zzniljsan17
Fix remaining performance discrepancy with regular repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
                self._nodes[key] = (value, tuple(node_refs))
239
239
            else:
240
240
                self._nodes[key] = value
 
241
        self._keys = set(self._nodes)
241
242
        if trailers != 1:
242
243
            # there must be one line - the empty trailer line.
243
244
            raise errors.BadIndexData(self)
285
286
            return
286
287
        if self._nodes is None:
287
288
            self._buffer_all()
288
 
        keys = keys.intersection(self._nodes)
 
289
        keys = keys.intersection(self._keys)
289
290
        if self.node_ref_lists:
290
291
            for key in keys:
291
292
                value, node_refs = self._nodes[key]