Statistics for all projects in an SVN server

6 messages Options
Embed this post
Permalink
davidhorat

Statistics for all projects in an SVN server

Reply Threaded More More options
Print post
Permalink
Hello guys, I've got a question:
How can you make full statistics for all projects in an SVN server?
Thanks in advance.

--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
jkealey

Re: Statistics for all projects in an SVN server

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hey David,

 

You can run it on the root of the server and it will run on the whole codebase… but did you have something else in mind ? (In which case, the answer is probably no L)

 

Jason

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of David Horat
Sent: August-08-08 9:36 AM
To: [hidden email]
Subject: [Statsvn-users] Statistics for all projects in an SVN server

 

Hello guys, I've got a question:
How can you make full statistics for all projects in an SVN server?
Thanks in advance.

--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
Jean-Philippe Daigle

Re: Statistics for all projects in an SVN server

Reply Threaded More More options
Print post
Permalink
In reply to this post by davidhorat
On Fri, Aug 8, 2008 at 9:36 AM, David Horat <[hidden email]> wrote:
Hello guys, I've got a question:
How can you make full statistics for all projects in an SVN server?
Thanks in advance.

--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/

Hi David,
If you mean on several svn repositories at once, I'd personally use Ant for this, it should be quick as long as you have the repository list in advance. See the last paragraph for why this would be impossible for StatSVN to support natively.

It's pretty trivial to write an Ant target that will take a parameter for the project name (call it "projname"), then justs deletes the old output dir "statsvn-outputs/${projname}", regenerates the svn log for "checkouts/${projname}" and then runs a statsvn task on that.

You can then just write a big pile of invocations (assuming you know all the project names in advance):

<antcall target="genStats"><param name="projname" value="myproject1"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject2"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject3"/></antcall>
...
 
Now, if you don't know all the repository names in advance, you're kinda screwed, but there's no svn command that would let you figure them out either! (You can't do an "svn ls" with a URI higher than a repository root to list repositories.) If you're in this situation, you'll need to start writing a script to ssh into your server and extract the names.

JP


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
davidhorat

Re: Statistics for all projects in an SVN server

Reply Threaded More More options
Print post
Permalink
Hi guys,

Actually what I did was write a bash script that pulls out the SVN projects that I want to checkout and do exactly that workflow for each of them.

But what I would really like is two things:
- One stats page per project (I already have that done with my scripts)
- Statistics for all the projects in the server as a whole

The point is that I can´t checkout the root of the repositories. For example:
we have two projects that I checkout with
svn co ssh+http://xxxxxxx/reps/proj1
svn co ssh+http://xxxxxxx/reps/proj2

I can´t checkout
svn co ssh+http://xxxxxxx/reps/

So how can I do statisticis for both proj1 and proj2 as a whole, altogether?

Thanks again guys.

Regards,
David

On Fri, Aug 8, 2008 at 5:03 PM, Jean-Philippe Daigle <[hidden email]> wrote:
On Fri, Aug 8, 2008 at 9:36 AM, David Horat <[hidden email]> wrote:
Hello guys, I've got a question:
How can you make full statistics for all projects in an SVN server?
Thanks in advance.

--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/

Hi David,
If you mean on several svn repositories at once, I'd personally use Ant for this, it should be quick as long as you have the repository list in advance. See the last paragraph for why this would be impossible for StatSVN to support natively.

It's pretty trivial to write an Ant target that will take a parameter for the project name (call it "projname"), then justs deletes the old output dir "statsvn-outputs/${projname}", regenerates the svn log for "checkouts/${projname}" and then runs a statsvn task on that.

You can then just write a big pile of invocations (assuming you know all the project names in advance):

<antcall target="genStats"><param name="projname" value="myproject1"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject2"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject3"/></antcall>
...
 
Now, if you don't know all the repository names in advance, you're kinda screwed, but there's no svn command that would let you figure them out either! (You can't do an "svn ls" with a URI higher than a repository root to list repositories.) If you're in this situation, you'll need to start writing a script to ssh into your server and extract the names.

JP




--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
Jason Kealey-2

Re: Statistics for all projects in an SVN server

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

At the moment, the best solution would be to export both outputs into XML, and write an application that would merge these statistics.

 

If you do end up writing your own dynamic web app on top of this to play with the XML files, it would be a great contribution to the StatSVN community.

 

Thanks,

Jason

 

From: David Horat [mailto:[hidden email]]
Sent: August-08-08 12:38 PM
To: Jean-Philippe Daigle
Cc: [hidden email]
Subject: Re: [Statsvn-users] Statistics for all projects in an SVN server

 

Hi guys,

Actually what I did was write a bash script that pulls out the SVN projects that I want to checkout and do exactly that workflow for each of them.

But what I would really like is two things:
- One stats page per project (I already have that done with my scripts)
- Statistics for all the projects in the server as a whole

The point is that I can´t checkout the root of the repositories. For example:
we have two projects that I checkout with
svn co ssh+http://xxxxxxx/reps/proj1
svn co ssh+http://xxxxxxx/reps/proj2

I can´t checkout
svn co ssh+http://xxxxxxx/reps/

So how can I do statisticis for both proj1 and proj2 as a whole, altogether?

Thanks again guys.

Regards,
David

On Fri, Aug 8, 2008 at 5:03 PM, Jean-Philippe Daigle <[hidden email]> wrote:

On Fri, Aug 8, 2008 at 9:36 AM, David Horat <[hidden email]> wrote:

Hello guys, I've got a question:
How can you make full statistics for all projects in an SVN server?
Thanks in advance.

--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/


Hi David,
If you mean on several svn repositories at once, I'd personally use Ant for this, it should be quick as long as you have the repository list in advance. See the last paragraph for why this would be impossible for StatSVN to support natively.

It's pretty trivial to write an Ant target that will take a parameter for the project name (call it "projname"), then justs deletes the old output dir "statsvn-outputs/${projname}", regenerates the svn log for "checkouts/${projname}" and then runs a statsvn task on that.

You can then just write a big pile of invocations (assuming you know all the project names in advance):

<antcall target="genStats"><param name="projname" value="myproject1"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject2"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject3"/></antcall>
...
 

Now, if you don't know all the repository names in advance, you're kinda screwed, but there's no svn command that would let you figure them out either! (You can't do an "svn ls" with a URI higher than a repository root to list repositories.) If you're in this situation, you'll need to start writing a script to ssh into your server and extract the names.

JP




--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
davidhorat

Re: Statistics for all projects in an SVN server

Reply Threaded More More options
Print post
Permalink
I will take a look at it on monday. :)

On Fri, Aug 8, 2008 at 6:46 PM, Jason Kealey <[hidden email]> wrote:

At the moment, the best solution would be to export both outputs into XML, and write an application that would merge these statistics.

 

If you do end up writing your own dynamic web app on top of this to play with the XML files, it would be a great contribution to the StatSVN community.

 

Thanks,

Jason

 

From: David Horat [mailto:[hidden email]]
Sent: August-08-08 12:38 PM
To: Jean-Philippe Daigle
Cc: [hidden email]
Subject: Re: [Statsvn-users] Statistics for all projects in an SVN server

 

Hi guys,

Actually what I did was write a bash script that pulls out the SVN projects that I want to checkout and do exactly that workflow for each of them.

But what I would really like is two things:
- One stats page per project (I already have that done with my scripts)
- Statistics for all the projects in the server as a whole

The point is that I can´t checkout the root of the repositories. For example:
we have two projects that I checkout with
svn co ssh+http://xxxxxxx/reps/proj1
svn co ssh+http://xxxxxxx/reps/proj2

I can´t checkout
svn co ssh+http://xxxxxxx/reps/

So how can I do statisticis for both proj1 and proj2 as a whole, altogether?

Thanks again guys.

Regards,
David

On Fri, Aug 8, 2008 at 5:03 PM, Jean-Philippe Daigle <[hidden email]> wrote:

On Fri, Aug 8, 2008 at 9:36 AM, David Horat <[hidden email]> wrote:

Hello guys, I've got a question:
How can you make full statistics for all projects in an SVN server?
Thanks in advance.

--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/


Hi David,
If you mean on several svn repositories at once, I'd personally use Ant for this, it should be quick as long as you have the repository list in advance. See the last paragraph for why this would be impossible for StatSVN to support natively.

It's pretty trivial to write an Ant target that will take a parameter for the project name (call it "projname"), then justs deletes the old output dir "statsvn-outputs/${projname}", regenerates the svn log for "checkouts/${projname}" and then runs a statsvn task on that.

You can then just write a big pile of invocations (assuming you know all the project names in advance):

<antcall target="genStats"><param name="projname" value="myproject1"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject2"/></antcall>
<antcall target="genStats"><param name="projname" value="myproject3"/></antcall>
...
 

Now, if you don't know all the repository names in advance, you're kinda screwed, but there's no svn command that would let you figure them out either! (You can't do an "svn ls" with a URI higher than a repository root to list repositories.) If you're in this situation, you'll need to start writing a script to ssh into your server and extract the names.

JP




--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/




--
David Horat
Openlab Student @ CERN
http://davidhorat.com/
http://davidatcern.blogspot.com/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users