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

[Subclipse-users] getting access to "SVNWorkspaceRoot().url" data

From: Nicolas Anquetil <anquetil.nicolas_at_gmail.com>
Date: Fri, 5 Feb 2010 14:21:52 +0100

Hi,

I am trying to use programatically subversion to get log data of a project
in Eclipse.
The project is "Team shared" under exclipse (using SVN of course).

I think I found out more or less how to do it. It even works for a local
repository set up for test:

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 :-(

Can you provide any help on how to do this?

nicolas

-- 
Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2445131
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-02-05 14:27:30 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.