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

Re: Need help: Generate a diff log by author

From: Andy Levy <andy.levy_at_gmail.com>
Date: Fri, 17 Jul 2009 13:05:09 -0400

On Fri, Jul 17, 2009 at 12:28, David Weintraub<qazwart_at_gmail.com> wrote:
> Someone asked a quick question about how to do a particular job, and I
> answered that question with a shell script that gave him the answer to
> his particular query. It took me about five minutes to come up with a
> shell script and test it.
>
> The shell script does a diff based upon a particular user for a
> particular range of revisions. I didn't write a full blown program,
> but the core of the program is there, and it shouldn't be too hard to
> expand it into a full blown shell script.
>
> The ability to write and parse out a small shell script to parse
> program output is one of the reasons I like Unix. If I was doing a
> particular task over and over again (and I guess this person is doing
> this over and over again), I would, instead of parsing the Subversion
> cli output, use the Subversion API.

One of the benefits of having 2 ways to do it (shell script vs. API)
is you can use one to validate the output of the other.

Also, not everyone using Subversion will necessarily have the API on
their workstation, so it's good to be flexible and have examples of
parsing the output directly (since it was designed to be easily
parseable, after all).

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2372126

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-17 19:06:06 CEST

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.