~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/btree_index.py

Abbreviate pack_stat struct format to '>6L'

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
        :param references: An iterable of iterables of keys. Each is a
163
163
            reference to another key.
164
164
        :param value: The value to associate with the key. It may be any
165
 
            bytes as long as it does not contain \0 or \n.
 
165
            bytes as long as it does not contain \\0 or \\n.
166
166
        """
167
167
        # Ensure that 'key' is a StaticTuple
168
168
        key = static_tuple.StaticTuple.from_sequence(key).intern()
197
197
            new_backing_file, size = self._spill_mem_keys_without_combining()
198
198
        # Note: The transport here isn't strictly needed, because we will use
199
199
        #       direct access to the new_backing._file object
200
 
        new_backing = BTreeGraphIndex(transport.get_transport('.'),
 
200
        new_backing = BTreeGraphIndex(transport.get_transport_from_path('.'),
201
201
                                      '<temp>', size)
202
202
        # GC will clean up the file
203
203
        new_backing._file = new_backing_file