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

Re: [Subclipse-users] how to access programatically project root URL? ( "full" url, not getUrl() or getLocation() )

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 9 Feb 2010 11:50:43 -0500

Why not look at what the Team > Show History option does? You can
probably even used the classes from the core plugin that fetch and
retrieve the results?

On Tue, Feb 9, 2010 at 11:48 AM, Nicolas Anquetil
<anquetil.nicolas_at_gmail.com> wrote:
> Hi,
>
> Already asked that a week ago but since I got no answer I am now trying with
> a more explicit subject
>
> I am trying to use programatically subversion to get log data of a project
> in Eclipse. The project is "Team shared" under exclipse (with SVN of
> course).
>
> I can do it with a local repository (a repository url like:   file:// ...)
>
> SVNTeamProvider rp =
> (SVNTeamProvider)RepositoryProvider.getProvider(myProject,
> "org.tigris.subversion.subclipse.core.svnnature");
> ISVNRepositoryLocation rl = rp.getSVNWorkspaceRoot().getRepository();
> ISVNClientAdapter client = rl.getSVNClient();
> client.getLogMessages(fileUrl, revStart, revEnd);
>
> BUT
> for my real repository svn+ssh://machine/repo/path/to/project, I cannot get
> it to work.
> The problem is that rl.getLocation() or rl.getUrl() only give me the root
> path of the repository: svn+ssh://machine/repo/ whitout the root of the
> project inside it: /path/to/project :-(
> so getLogMessages looks for url svn+ssh://machine/repo/file and is missing
> the /path/to/project/file part.
> Fiddling around with eclipse debug, I found out that the complete path of
> the project may be found in rp.getSVNWorkspaceRoot().url but this is a
> private attribute :-(
>
> Any help our pointer would be appreciated to its full value.
>
> thanks
>
> nicolas
>
> --
> Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod
>

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2446190
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-02-09 17:51:04 CET

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.