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

Re: unusual results with svn log

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 21 Sep 2009 13:16:43 -0500

On Sep 21, 2009, at 12:40, William Yardley wrote:

> On Fri, Sep 18, 2009 at 04:52:28AM -0500, Ryan Schmidt wrote:
>> On Sep 17, 2009, at 17:45, William Yardley wrote:
>>> We are getting some situations (not all the time) where a particular
>>> entry seems to keep showing up in the svn log messages, even when
>>> that
>>> entry is no longer in the time range we're specifying. Is there
>>> something wrong with the way I'm specifying the time?
>> The first revision returned by "svn log -r A:B" will have a date
>> before A. It could be one second before A, or it could be a year
>> before -- whatever revision occurred immediately prior. If you don't
>> want revisions outside of your specified range, ignore the first
>> revision returned.
>> For more information, read the box "Is Subversion a Day Early?" in
>> this part of the book:
>> http://svnbook.red-bean.com/en/1.5/svn.tour.revs.specifiers.html#svn.tour.revs.dates
> But that specifically says:
> If you specify a single date as a revision *without specifying a
> time of
> day* [emphasis mine]..... If you want to include the 27th in your
> search, you can either specify the 27th with the time ({"2006-11-27
> 23:59"}), or just specify the next day ({2006-11-28}).
> So my reading is that if the exact time range is given, SVN should

I realize the scenario in the book isn't exactly the same as yours,
but I've always found Subversion to behave the way I described --
always including all revisions between A and B, and one revision
before A -- but I haven't sampled a whole lot of repositories. Perhaps
the behavior varies based on factors such as the repository backend,
repository format version, and/or Subversion client or server version.

> Also, I haven't been seeing this behavior consistently with all
> repos -
> using the same tools, *most* of our repos will only give me changes
> within that window, and will return nothing if there was nothing in
> that window.
> [in a different repo, which, if it matters, is a subdirectory of the
> repo itself]

You can have repositories within directories on the server, but
there's no such thing as a repository being a subdirectory of a

> $ svn log -v -r {"2009-09-20 00:00:00 -0700"}:{"2009-09-20
> 23:59:00 -0700"}
> ------------------------------------------------------------------------
> Yet within another repo:
> $ svn log -v -r {"2009-09-20 00:00:00 -0700"}:{"2009-09-20 23:59:00
> -0700"}
> ------------------------------------------------------------------------
> r1 | username | 2009-09-15 08:28:15 -0700 (Tue, 15 Sep 2009) | 1 line
> [snip]

Note that the end of the day would be 23:59:59 not 23:59:00.

> Simply ignoring the first two lines isn't an option -- I'm calling svn
> log from within svn2cl, which is pulling it up in XML format, and
> having it display all the changed paths.

There isn't a way that I know of to make svn log output the
information you requested directly; in my experience, you must post-
process its results.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-21 20:17: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.