[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 22:05:22 CEST

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

> I just need to get the revision number. The error came along while I was
doing
> the following:
>
> First, I got an ISVNLocalResource svnProject from an IProject, then:
>
> ISVNRemoteResource remote = svnProject.getRemoteResource();
> ISVNRevision revision = remote.getRevision();
>
> That's it. The revision that I got was SVNRevision.HEAD. What I really
want is
> the number.

I thought you were using svnClientAdapter for some reason. Just realized
that this is obviously Subclipse.

It looks to me like getRemoteResource just returns the same SVNRevision
object that you give it to create the remote resource. There is the
getLastChangedRevision() method that will give you accurate info on when
the resource was last changed.

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 22:05:34 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.