[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: Andy Cutright <Andy.Cutright_at_borland.com>
Date: 2005-06-28 00:06:45 CEST

when i'm pulling the version using the timestamp returned by the svn log
call using the client libraries, i'm using the java long value, so it
should be the correct value down to the millisecond.

my real context for this is the javahl libraries and the native
libraries. i'm working with the repository via those interfaces, not the
command line. i've included command line information just because it
=appears= to be relevant. it could be my command line examples are a red
herring.

cheers,
andy

> -----Original Message-----
> From: Philip Martin [mailto:philip@codematters.co.uk]
> Sent: Monday, June 27, 2005 2:09 PM
> To: Andy Cutright
> Cc: dev@subversion.tigris.org
> Subject: Re: possible bug
>
> "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 Tue Jun 28 00:07:59 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.