Reputation: 28858
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
Upvotes: 58
Views: 70203
Reputation: 14565
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.
Upvotes: 6
Reputation: 91
svn log -r '{2013-9-23}:{2013-9-24}'
This is might be the correct syntex.
Quotes are required to get the correct results.
Upvotes: 8
Reputation: 3877
The -v is important if you want to see a list of the actual changes (over and above the log messages... if any! ;) )
Upvotes: 5
Reputation: 51603
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
Upvotes: 66
Reputation: 231
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
Upvotes: 21