Rev 4170: Name the temporary index as it is being generated. in lp:///~jameinel/bzr/1.14-btree_spill_minimal

John Arbash Meinel john at arbash-meinel.com
Fri Mar 20 16:00:44 GMT 2009


At lp:///~jameinel/bzr/1.14-btree_spill_minimal

------------------------------------------------------------
revno: 4170
revision-id: john at arbash-meinel.com-20090320160017-z5j80tjyma375n1k
parent: john at arbash-meinel.com-20090319183129-fnm26attyu1yw2s0
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.14-btree_spill_minimal
timestamp: Fri 2009-03-20 11:00:17 -0500
message:
  Name the temporary index as it is being generated.
-------------- next part --------------
=== modified file 'bzrlib/btree_index.py'
--- a/bzrlib/btree_index.py	2009-03-19 18:31:29 +0000
+++ b/bzrlib/btree_index.py	2009-03-20 16:00:17 +0000
@@ -368,7 +368,7 @@
         for row in reversed(rows):
             pad = (type(row) != _LeafBuilderRow)
             row.finish_node(pad=pad)
-        result = tempfile.NamedTemporaryFile()
+        result = tempfile.NamedTemporaryFile(prefix='bzr-index-')
         lines = [_BTSIGNATURE]
         lines.append(_OPTION_NODE_REFS + str(self.reference_lists) + '\n')
         lines.append(_OPTION_KEY_ELEMENTS + str(self._key_length) + '\n')



More information about the bazaar-commits mailing list