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

Re: Checking for commits

From: Andy Levy <andy.levy_at_gmail.com>
Date: Mon, 21 Dec 2009 13:22:00 -0500

On Mon, Dec 21, 2009 at 11:51, Dennis Jones
<djones_at_grassvalleysoftware.com> wrote:
> Hi,
>
> Is there a simple way to determine if there were any commits on a repository
> path given a specific date?
>
> 'svn log' doesn't give the results one might expect.  For example, if there
> were no commits yesterday (12/20/2009), and I say:
>
>    svn log -r {2009-12-20}:{2009-12-21} <repourl>
>
> . . . then instead of getting back nothing (which one would expect), I'll
> get back the most recent commit from a couple of days ago (which is not what
> I want).

One might only expect that if they hadn't read
http://svnbook.red-bean.com/en/1.5/svn.tour.revs.specifiers.html#svn.tour.revs.dates
which states: "When you specify a date, Subversion resolves that date
to the most recent revision of the repository as of that date, and
then continues to operate against that resolved revision number:"

> How can I determine if there were commits on a specific date?

Parse the output of the svn log you're already running.
Received on 2009-12-21 19:22:40 CET

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.