tags:

views:

1165

answers:

3

What I would like is be able to generate a simple report that is the output of svn log for a certain date range. Specifically, all the changes since 'yesterday'.

Is there an easy way to accomplish this in Subversion besides grep-ing the svn log output for the timestamp?

Example:

svn -v log -d 2008-9-23:2008-9:24 > report.txt
+6  A: 

Very first hit by google for "svn log date range": http://svn.haxx.se/users/archive-2006-08/0737.shtml

So svn log <url> -r {2008-09-19}:{2008-09-26} will get all changes for the past week, including today.

And if you want to generate reports for a repo, there's a solution: Statsvn.

HTH

Zsolt Botykai
wow, I was pretty close with my 'guess', thanks
Adam
+3  A: 

You can use dates the same as you can use revision numbers. The syntax is {yyyy-mm-dd}. So, for all changes between 12:00am on September 23 and 12am on September 24, do:

svn log -v -r {2008-09-23}:{2008-09-24} > report.txt
Rob
+1  A: 

you can do this:

   svn log -r{2008-9-23}:{2008-9-24} > report.txt

add a --xml before the -r if you want ot get the output in xml format for "easier" post processing.

MikeJ