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

Re: svn log -r {DATE:HEAD} always prints log message?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-12-17 02:43:31 CET

kfogel@collab.net wrote:
> Mike Mason <mgm@thoughtworks.net> writes:
>
>>I'm running this command, and there have been no revisions between the
>>two times. I still get the "most recent commit" as a revision:
>>
>>log -v -r "{2003-12-14 20:08:03 GMT}:{2003-12-14 20:10:53 GMT}" --xml
>>svn://localhost/
>>
>>Surely this is not what the command is supposed to do? There have been
>>no revisions, I expect an empty log. Bug? (Or am I still not
>>understanding it?)
>
> So you're getting the log for the HEAD revision, even though that
> revision was committed *after* 2003-12-14 20:10:53 GMT?
> That's a bug, yes.

No, he wasn't getting a result dated after the requested range, but a result dated before the requested range. This is the currently intended behaviour of "svn log", though I don't like it being the only behaviour, and it confuses people.

Therefore issue 1642 that he filed should be considered a request for enhancement. I think we need at least a mode (if not the default or only behaviour) in which it semantically matches "diff" and "merge" in listing only the changes between the specified tree states, not also the change that created the start revision.

> I'm able to reproduce something similar. Using the date for r8000, I
> get r7999 instead:
>
> $ svn log -r"{2003-12-14 11:07:30 -0600}:{2003-12-14 11:07:30 -0600}"
> ------------------------------------------------------------------------
> r7999 | dionisos | 2003-12-13 04:31:04 -0600 (Sat, 13 Dec 2003) | 5 lines
[...]
> Hmmm. Seems we have some lossage here...

Oh dear. That's completely different. I've just spent a while tracking it down, and it is explained by r8000's commit time not being "2003-12-14 11:07:30" exactly but "2003-12-14 11:07:30.473581". Thus the time that you specified is a fraction of a second before the r8000 commit.

I don't know whether we should change the "svn log" output to show the microseconds; perhaps (at least in XML mode) we should.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 17 02:43:46 2003

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.