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

RE: SVN log question

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-04-28 01:07:07 CEST

> From: Ashish Purohit [mailto:ashish.purohit@gmail.com]
>
> I have been using Subversion for a few months now. However I recently
> discovered that whenever I do a "svn log" with a date range, I get the
> last check-in when the date range is _after_ the last check-in.

It's a peculiar side-effect of the fact that -r ranges are ranges of
revision numbers, and specifying a date is just a way of specifying a
revision number. In your case, if the last checkin was rev 123 on
2005-04-08, then -r{2005-04-15} means "the last checkin before 2005-04-15",
which is the same as -r123. The problem is because -r{2005-04-11} similarly
is the same as -r123.

That's not particularly intuitive, but it's well-defined, and avoids having
to have all the Subversion code deal with dates -- all dates can be turned
into rev numbers early in processing, and the remainder of the code doesn't
have to know about it. Perhaps the "convert date into rev" routine needs an
additional argument, and when the date is used as the beginning of a range,
it translates to the first rev *after* the date. But is "svn log -r124:123"
defined so that it returns no log messages?

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 28 02:04:29 2005

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.