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

Re: Non-graphical log statistics?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 16 Feb 2011 08:55:03 -0500

On Wed, Feb 16, 2011 at 02:40, Lorenz <lorenznl_at_yahoo.com> wrote:
> Andy Levy wrote:
>>Is there a way to get the data used by TortoiseSVN to generate the
>>statistics in CSV format? I'm thinking about putting it into a
>>spreadsheet and doing some other analysis & charting.
>>
>>I know I *can* use svn log to collect it myself, but if the data has
>>already been collected by Tortoise, why not leverage that?
>
> you can <home><shift-end><ctrl-C> in the log messages window, but that
> gives you the same output as 'svn log'.
>
> putting that info in a CSV form poses the usual problems associated
> with CSV (what to do with: fields containing the separation character,
> 'multiline' fields, ...)
>
> perhapse writing a macro for the spreed-sheet application of your
> choice would be a better solution. It could call 'svn log' or even
> 'svn log --xml', parse it's output and put the gathered info into the
> spreed sheet in what ever format you want.

I had forgotten that I can copy out of the Log dialog. Unfortunately,
when I paste into a spreadsheet, I get multiple lines for each entry;
basically the equivalent of svn log --verbose, I think.

I'm really only interested in "who" and "when", maybe with a
breakdown on a per-project basis. Some Powershell may be just the
ticket, at least to get the dates & authors.

[xml]$log = svn log --xml "URL"
$log.SelectNodes("//logentry") |select-object author,date

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2704807

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-02-16 14:55:51 CET

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

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