Rev 3646: the new btree index doesn't have 'absent' keys in its _nodes in http://bzr.arbash-meinel.com/branches/bzr/1.7-dev/index_builder_cleanup

John Arbash Meinel john at arbash-meinel.com
Mon Aug 25 04:43:44 BST 2008


At http://bzr.arbash-meinel.com/branches/bzr/1.7-dev/index_builder_cleanup

------------------------------------------------------------
revno: 3646
revision-id: john at arbash-meinel.com-20080825034342-owq0858uk1wp2q0l
parent: john at arbash-meinel.com-20080825034139-68nxqiqrmqi1l5f0
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: index_builder_cleanup
timestamp: Sun 2008-08-24 22:43:42 -0500
message:
  the new btree index doesn't have 'absent' keys in its _nodes
modified:
  bzrlib/btree_index.py          index.py-20080624222253-p0x5f92uyh5hw734-7
-------------- next part --------------
=== modified file 'bzrlib/btree_index.py'
--- a/bzrlib/btree_index.py	2008-08-25 03:41:39 +0000
+++ b/bzrlib/btree_index.py	2008-08-25 03:43:42 +0000
@@ -169,7 +169,7 @@
             for reference in reference_list:
                 self._check_key(reference)
             node_refs.append(tuple(reference_list))
-        if key in self._nodes and self._nodes[key][0] == '':
+        if key in self._nodes:
             raise errors.BadIndexDuplicateKey(key, self)
         self._nodes[key] = (tuple(node_refs), value)
         self._keys.add(key)



More information about the bazaar-commits mailing list