[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFE: Add support for --author option in svn log

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-09-03 22:39:51 CEST

On Wed, 2005-08-31 at 20:40 +0900, Kalin KOZHUHAROV wrote:
> Today I run into this, while trying to see who changed what in a binary
> file in our repo. svn blame does not work on binary files (no sense
> anyway) and svn log does not accept (say) --author as an argument. I
> finished grepping a lot, but it is ugly and has to be done manually.
>
> So, I suggest as RFE to add support for --author option to svn log (at
> least).
>
> svn log --author kalin path/to/repo

Like you said you have to grep for them. But this isn't very difficult,
and SVN gives you the length of the log message (last entry in the line
with the authors handle) so you can echo the entire message.

Although I don't know of any scripts off hand that do this I'm sure some
must exist within googles listings.

> should give only log entries for commits by 'kalin' user.
>
> Further enhancing --author "kalin or nancy and not steve" might be
> interesting, but an overkill

I couldn't help myself but you wrote:
        k OR n AND NOT s

With bracketing I think you mean:
        ( k OR n ) AND ( NOT s ) => Author (aka TRUE)

Which I believe simplifies to:
        ( k OR n ) => TRUE

Anyway, I believe this exercise explains the complexity of such
expressions. You can build your own more complicated examples.

Cheers,
Chris

-- 
PGP Public Key: http://www.nesser.org/pgp-key/
16:24:23 up 49 min, 2 users, load average: 0.41, 0.48, 0.30
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 3 22:41:25 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.