[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: Mark Phippard <markp_at_softlanding.com>
Date: 2006-09-22 21:15:35 CEST

Del Myers <delmyers.cs@gmail.com> wrote on 09/22/2006 03:11:56 PM:

> 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.
>
> 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?

For what do you want suggestions?

How did you get the remote resource to begin with? You could run svn info
on the repository root URL and get the revision number from that to know
what HEAD is. You should be able to do it on the item itself, to gets its
HEAD revision.

Mark

---------------------------------------------------------------------
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:15:46 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.