What we did at UBZ

John A Meinel john at arbash-meinel.com
Fri Nov 18 13:59:00 GMT 2005


Michael Ellerman wrote:
> On Fri, 18 Nov 2005 17:27, Martin Pool wrote:
>> On 18 Nov 2005, Michael Ellerman <michael at ellerman.id.au> wrote:
>>> If we end up with _bzr we could implement a "bzr grep" which skips .bzr,
>>> a few other tools do this, but it's a bit ugly and many people will never
>>> find it.
>> It'd be quite nice to have a 'bzr grep' which knew how to search back
>> through history, but that's a different point. 
> 
> Ooo, that would be cool. You could have:
> 
> # bzr grep -r 1204 "foo"
> 
> which searchs all files in revision 1204 for "foo". And also:
> 
> # bzr grep --search "something" somefile.c
> 
> which searches backwards through the history of somefile.c until it gets a 
> match (or perhaps through all of history with an option).
> 
> cheers
> 

We do have "bzr log --message foo" which will search the old logs
messages. (the message is interpreted as a regex).

But I can see wanting to grep the actual contents of the old revisions.

And I can see doing stuff like checking multiple revisions, and having
"bzr grep" be able to prefix correctly (so filename at revno: text)

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051118/2a4fbe50/attachment.pgp 


More information about the bazaar mailing list