Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [subversive-dev] History of a file

Yes, the reason is that you use an old Subversive version. Newest version is
available for download at http://www.eclipse.org/subversive

But in any case LogMessage returned by old version and SVNLogEntry returned
by new version are the same entities. The only one reason of the difference
in class names is refactoring of SVN-related API correspondingly to
Eclipse.org coding guidlines and legal restrictions.

Also please note that Eclipse Team Services contains API that allows to
fetch resource history in generic way. Such API consists of interfaces:
IFileHistoryProvider
IFileHistory
IFileRevision
and Subversive implements these interfaces. So, if information provided by
these interfaces is sufficient for your targets please use such interfaces
in order to remove unnecessary API dependencies. You can access
IFileHistoryProvider by calling RepositoryProvider.getFileHistoryProvider()
method.

Best regards,
Alexander Gurov
Subversive Team


-----Original Message-----
From: subversive-dev-bounces@xxxxxxxxxxx
[mailto:subversive-dev-bounces@xxxxxxxxxxx] On Behalf Of Fabian Schmidt
Sent: Friday, March 14, 2008 3:31 AM
To: Developers mailing list
Subject: RE: [subversive-dev] History of a file

Hi Alexander,

I just tried the code you sent me. But the function log.getMessages()
returns LogMessage[] not SVNLogEntry[]. I'm using Version Subversive
1.1.9 as Part of FastTrack 1.1.5.

Kind Regards
Fabian
On Thu, 2008-03-13 at 10:48 +0200, Alexander Gurov wrote:
> Dear Fabian,
> 
> You can get revisions in the following way:
> 
> SVNRepositoryFile file = ...;
> GetLogMessagesOperation logOp = new GetLogMessagesOperation(file, 
> false /*stop on copy*/); ProgressMonitorUtility.doTaskExternal(logOp, 
> new NullProgressMonitor()); SVNLogEntry []revs = logOp.getMessages();
> 
> 
> Best regards,
> Alexander Gurov
> Subversive Team
> 
> -----Original Message-----
> From: subversive-dev-bounces@xxxxxxxxxxx
> [mailto:subversive-dev-bounces@xxxxxxxxxxx] On Behalf Of Fabian
> Sent: Monday, March 10, 2008 11:16 AM
> To: subversive-dev@xxxxxxxxxxx
> Subject: [subversive-dev] History of a file
> 
> Hi, out there, i need a programmatic way to get a list of all revision 
> which contain a specific file (given as SVNRepositoryFile)
> 
> would be great if somebody may help me with this.
> 
> Fabian
> _______________________________________________
> subversive-dev mailing list
> subversive-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/subversive-dev
> 
> 
> 
> 
> _______________________________________________
> subversive-dev mailing list
> subversive-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/subversive-dev



Back to the top