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

Re: possible bug

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-06-27 23:09:07 CEST

"Andy Cutright" <Andy.Cutright@borland.com> writes:

> if i use the revision number associated with the log i always get the
> version i'm expecting. if i use the date associated with the same log
> message, i get either no version if i'm trying to checkout the first
> controlled version of an element in the repository, or i get the version
> just before the the one i'd expect for later commits. if i bump the
> command line checkout revision date up by 1 second, i get the version i
> expect. if i bump the date up by 1 millisecond using the javahl
> libraries, i get the the version i expect.

The most likely explanation is that you are not using the full
timestamp. I have two revisions:

$ svn log file://`pwd`/repo | grep ^r
r1 | pm | 2005-06-27 21:52:20 +0100 (Mon, 27 Jun 2005) | 1 line
r0 | pm | 2005-06-27 21:52:00 +0100 (Mon, 27 Jun 2005) | 1 line

I try to select r1 but get r0:

$ svn log -r'{2005-06-27 21:52:20}' file://`pwd`/repo | grep ^r
r0 | pm | 2005-06-27 21:52:00 +0100 (Mon, 27 Jun 2005) | 1 line

I examine the repository more closely:

$ svn log --xml file://`pwd`/repo | grep date
<date>2005-06-27T20:52:20.743319Z</date>
<date>2005-06-27T20:52:00.234361Z</date>

Now I can select r1:

$ svn log -r'{2005-06-27 21:52:20.743319}' file://`pwd`/repo | grep ^r
r1 | pm | 2005-06-27 21:52:20 +0100 (Mon, 27 Jun 2005) | 1 line

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 27 23:10:11 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.