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

Re: Listing the commit messages for a single day

From: Andy Levy <andy.levy_at_gmail.com>
Date: Sun, 27 Dec 2009 21:52:13 -0500

On Sun, Dec 27, 2009 at 14:46, Paulo J. Matos <pocmatos_at_gmail.com> wrote:
> Hi,
>
> I was trying to find a way to list the commit messages for a single
> day in a repo. I found something using log but the result is
> unexpected. I wanted to find the commit messages for today 27-12-2009,
> so I did:
> $ svn --non-interactive -r{2009-12-27}:{2009-12-28} log
> ------------------------------------------------------------------------
> r505 | pocm06r | 2009-12-20 11:10:52 +0000 (Sun, 20 Dec 2009) | 1 line
>
> Presentation of ICFEM09
> ------------------------------------------------------------------------
> r506 | pocm06r | 2009-12-27 09:34:29 +0000 (Sun, 27 Dec 2009) | 1 line
>
> TAP10 initial commit
> ------------------------------------------------------------------------
> r507 | pocm06r | 2009-12-27 09:38:12 +0000 (Sun, 27 Dec 2009) | 1 line
>
> Thesis bits and pieces.
> ------------------------------------------------------------------------
>
> I guess taking the commit messages from this output is simple. What I
> can't understand is why a commit from 2009-12-20 is showing up. Any
> tips?

The "why" was explained very recently on this mailing list - here's
the relevant section of the manual.
http://svnbook.red-bean.com/en/1.5/svn.tour.revs.specifiers.html#svn.tour.revs.dates

Short version: The repository state at the beginning of the range you
give is always included.

You might find the XML output of svn log easier to extract the commit
messages from.
Received on 2009-12-28 03:52:51 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.