Rev 3198: Experiment: try ignoring the current_search and supplying the current search cache instead. in http://people.ubuntu.com/~robertc/baz2.0/search-results

Robert Collins robertc at robertcollins.net
Fri Jan 18 05:27:49 GMT 2008


At http://people.ubuntu.com/~robertc/baz2.0/search-results

------------------------------------------------------------
revno: 3198
revision-id:robertc at robertcollins.net-20080118052743-75129utvw91ldlsj
parent: robertc at robertcollins.net-20080118051823-oswu043b6huldks3
committer: Robert Collins <robertc at robertcollins.net>
branch nick: Repository.get_parent_map
timestamp: Fri 2008-01-18 16:27:43 +1100
message:
  Experiment: try ignoring the current_search and supplying the current search cache instead.
modified:
  bzrlib/smart/repository.py     repository.py-20061128022038-vr5wy5bubyb8xttk-1
=== modified file 'bzrlib/smart/repository.py'
--- a/bzrlib/smart/repository.py	2008-01-18 04:05:29 +0000
+++ b/bzrlib/smart/repository.py	2008-01-18 05:27:43 +0000
@@ -151,11 +151,12 @@
                     result[revision_id] = parents
                     # Approximate the serialized cost of this revision_id.
                     size_so_far += 2 + len(revision_id) + sum(map(len, parents))
-                    # get all the directly asked for parents, and then flesh out to
-                    # 64K or so.
-                    if first_loop_done and size_so_far > 65000:
-                        next_revs = set()
-                        break
+            # get all the directly asked for parents, and then flesh out to
+            # 64K or so. We do one level of depth at a time to stay in sync
+            # with the client.
+            if first_loop_done and size_so_far > 65000:
+                next_revs = set()
+                break
             # don't query things we've already queried
             next_revs.difference_update(queried_revs)
             first_loop_done = True



More information about the bazaar-commits mailing list