searching in bzr

Robert Collins robertc at robertcollins.net
Fri Jun 6 04:42:28 BST 2008


So I found out recently that loggerhead's search is crufty - so crufty
that launchpad doesn't even run it (though the link is still present).

It made me thing - we have several disconnected search operations in
bzr; why not gather some requirements and see about generating a good
answer for this for use from: 
 - GUI's
 - the console
 - web ui's

By good answer I mean something like an *optional* content index which
bzr can maintain on-demand or on-access. 

To kick start this here are some searches I know we already do (in
core/in plugins):

"when/who modified this line"
"what revisions in this branch are from <date range>"
"is/was there a file called FOO"

I'd love to be able to search for things like:
"show me all similar lines to this in this file" (as a vim callout this
would rock for seeing how a line has evolved).
"show me everywhere <word-or-string> appears" (e.g. where does
apply_inventory_delta occur)

There is a harder to describe [in machine terms] search for deleted
lines - lines that have been removed from a file *and not replaced*.

Many of the things I list above have several different uses (at least
for me):
 - in any head in <set of branches> (roughly repository) - should dedup
and only give unique results therein
 - in the history of this branch - shows a sort of meta-annotate
 - in a date-range within <set of branches>

-Rob


-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080606/05d0b801/attachment-0001.pgp 


More information about the bazaar mailing list