Rev 81: Works on bzr 2.2 (temporarily broken due to CombinedGraphIndex API in http://people.canonical.com/~robertc/baz2.0/plugins/search/trunk

Robert Collins robertc at robertcollins.net
Fri May 14 16:04:54 BST 2010


At http://people.canonical.com/~robertc/baz2.0/plugins/search/trunk

------------------------------------------------------------
revno: 81
revision-id: robertc at robertcollins.net-20100514150447-8q5q9h5eqs6o8yii
parent: robertc at robertcollins.net-20100514145737-foxlmzhaz003e2nv
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Sat 2010-05-15 03:04:47 +1200
message:
  Works on bzr 2.2 (temporarily broken due to CombinedGraphIndex API
  changes) (Robert Collins).
=== modified file 'NEWS'
--- a/NEWS	2010-05-14 14:57:37 +0000
+++ b/NEWS	2010-05-14 15:04:47 +0000
@@ -54,6 +54,9 @@
     * Does not break when bzr-svn is present and incompatible with bzr.
       (Gary van der Merwe)
 
+    * Works on bzr 2.2 (temporarily broken due to CombinedGraphIndex API
+      changes) (Robert Collins).
+
   API BREAKS:
 
   TESTING:

=== modified file 'index.py'
--- a/index.py	2010-05-14 14:57:37 +0000
+++ b/index.py	2010-05-14 15:04:47 +0000
@@ -466,7 +466,9 @@
     def _add_index_to_memory(self, name, value, index):
         """Add an index (with meta-value value) to the in-memory index list."""
         self._current_names[name] = (value, index)
-        self._revision_indices.append(index.revision_index)
+        # Note This insert at one less than the end, not quite the same as
+        # append :(.
+        self._revision_index.insert_index(-1, index.revision_index)
         self._term_doc_indices[index] = index.document_index
 
     def indexed_revisions(self):




More information about the bazaar-commits mailing list