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

Re: [Subclipse-users] SVNRevision

From: Del Myers <delmyers.cs_at_gmail.com>
Date: 2006-09-22 21:11:56 CEST

Mark Phippard wrote:
> Del Myers <delmyers.cs@gmail.com> wrote on 09/22/2006 01:37:17 PM:
>
>>> Adding or subtracting 1, depending on your need, will always work.
>>>
>>> As for the special values, they corresponds to the special revision
>>> keywords that Subversion supports. See this section of the book for
> an
>>> explanation of each:
>>>
>>>
> http://svnbook.red-bean.com/en/1.2/svn.tour.revs.html#svn.tour.revs.keywords
>>> Mark
>> Thanks Mark, but I'm still having problems. For example, if I call
>> ISVNRemoteResource.getRevision(), and it returns a value like
> SVNRevision.HEAD,
>> I can't find a way to convert that to an actual revision number. Any
>> suggestions? Thanks.
>
> There is definitely no way to convert the special values to numbers. That
> being said, I do not believe there are any instances when requesting the
> revision from a resource that you will ever get anything except a revision
> number.
>
> Mark

Actually ISVNRemoteResource.getRevision() did give me a HEAD revision, not a
number. I discovered this while trying to cast it to a number. Any suggestions?

Del

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri Sep 22 21:12:11 2006

This is an archived mail posted to the Subclipse Users mailing list.

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