Getting date of a revision using svn info
Solution 1
You are probably better off using the svn log
command, with the --xml
option for automated parsing. This will give you a quick list of revisions, including the dates.
Solution 2
svn log -r {DATESPEC}:{DATESPEC}/rev-id
will work better
Muhammad Asaduzzaman
I am a Postdoctoral Research Fellow at Software Analysis and Intelligence Lab, Queen's University, Canada
Updated on August 06, 2022Comments
-
Muhammad Asaduzzaman almost 2 years
My objective is to extract revisions from the repository that are at least 30 days apart from each other. Lets say I want to examine revisions starting from 30 to 100. For each of the revisions, I have used SVN
info
command and use the last changed date as the date of that revision. The next steps are straightforward. Check the difference in days between two consecutive revisions.My question is whether the approach is ok (or in another way, is it correct to get the date of a revision in this approach). Any suggestion would be helpful. Thanks.
Example of SVN info output.
$ svn info -r 200 https://itextsharp.svn.sourceforge.net/svnroot/itextsharp/trunk Path: trunk URL: https://itextsharp.svn.sourceforge.net/svnroot/itextsharp/trunk Repository Root: https://itextsharp.svn.sourceforge.net/svnroot/itextsharp Repository UUID: da003780-e18d-4f51-86a4-c2ecb517afe5 Revision: 200 Node Kind: directory Last Changed Author: psoares33 Last Changed Rev: 200 Last Changed Date: 2010-10-17 12:25:23 -0600 (Sun, 17 Oct 2010)