Rev 76: Hide StaticTuple from showing up in search suggestions. in http://people.canonical.com/~robertc/baz2.0/plugins/search/trunk

Robert Collins robertc at robertcollins.net
Tue Nov 3 00:22:10 GMT 2009


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

------------------------------------------------------------
revno: 76
revision-id: robertc at robertcollins.net-20091103002209-790b877khe0b7ssa
parent: robertc at robertcollins.net-20091103001952-pxjbz7vj6ha1lq1l
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Tue 2009-11-03 11:22:09 +1100
message:
  Hide StaticTuple from showing up in search suggestions.
=== modified file 'NEWS'
--- a/NEWS	2009-11-03 00:19:52 +0000
+++ b/NEWS	2009-11-03 00:22:09 +0000
@@ -16,6 +16,9 @@
 
     * Selftest compatibility with bzr 2.0.0 (Robert Collins, #461957, #461952)
 
+    * 'StaticTuple' is no longer shown in search suggestion descriptions.
+      (Robert Collins)
+
     * Requires bzr.dev with the log filtering patch for full functionality.
       users not using bzr 1.6b3 or later. (Robert Collins)
 

=== modified file 'commands.py'
--- a/commands.py	2008-07-01 13:28:34 +0000
+++ b/commands.py	2009-11-03 00:22:09 +0000
@@ -66,7 +66,7 @@
         try:
             if suggest:
                 terms = index.suggest(query)
-                terms = list(terms)
+                terms = [tuple(term) for term in terms]
                 terms.sort()
                 self.outf.write("Suggestions: %s\n" % terms)
             else:




More information about the bazaar-commits mailing list