[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to find commited revesions on a specific date

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 20 May 2009 01:45:37 -0500

On May 20, 2009, at 01:29, Irfan Sayed wrote:

> I want how many revesions has been commited on a specific date. I
> have gone through the svnlook command line switches but never find
> any.
> what i need is , i will write one script which will accept date as
> an argument and internally use some svnlook commands to get the
> revesion no.s commited on that specific date.

The svnlook command does not seem to support this, but the svn
command will accept dates instead of revisions. It is explained in
the book:

http://svnbook.red-bean.com/en/1.5/
svn.tour.revs.specifiers.html#svn.tour.revs.dates

For example, here is a command that will show you the revision
numbers committed to Subversion's repository on May 1, 2009:

svn log -q -r '{2009-05-01}:{2009-05-02}' \
http://svn.collab.net/repos/svn/

Be aware that this will always include one more revision than you
want. In this case, you get one revision shown from April 30. The
reason is explained in the book. See the box "Is Subversion a Day
Early?" on the above book page.

To deal with this, I recommend you simply skip the first entry
returned by the above command. One way to do that:

svn log -q -r '{2009-05-01}:{2009-05-02}' \
http://svn.collab.net/repos/svn/ | sed 1,2d

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2325880

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-20 08:46:35 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.