How do you get a list of changes from a Subversion repository by date range?

Viewed 66935

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
5 Answers

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

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.

The -v is important if you want to see a list of the actual changes (over and above the log messages... if any! ;) )

Related