Rev 82: Finish fixing bzr-search for 2.2. in http://people.canonical.com/~robertc/baz2.0/plugins/search/trunk
Robert Collins
robertc at robertcollins.net
Fri May 21 10:34:12 BST 2010
At http://people.canonical.com/~robertc/baz2.0/plugins/search/trunk
------------------------------------------------------------
revno: 82
revision-id: robertc at robertcollins.net-20100521093411-pb076irrtisek4eb
parent: robertc at robertcollins.net-20100514150447-8q5q9h5eqs6o8yii
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Fri 2010-05-21 21:34:11 +1200
message:
Finish fixing bzr-search for 2.2.
=== modified file 'index.py'
--- a/index.py 2010-05-14 15:04:47 +0000
+++ b/index.py 2010-05-21 09:34:11 +0000
@@ -519,7 +519,9 @@
"""Remove the component name from the index list in memory."""
index = self._current_names[name][1]
del self._term_doc_indices[index]
- self._revision_indices.remove(index.revision_index)
+ pos = self._revision_index._indices.index(index.revision_index)
+ self._revision_index._indices.pop(pos)
+ self._revision_index._index_names.pop(pos)
del self._current_names[name]
def _search_work(self, termlist):
More information about the bazaar-commits
mailing list