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/proj1svn co ssh+
http://xxxxxxx/reps/proj2I 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:
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