What we did at UBZ

Michael Ellerman michael at ellerman.id.au
Fri Nov 18 06:48:15 GMT 2005


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

-- 
Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051118/0b16ae38/attachment.pgp 


More information about the bazaar mailing list