简体   繁体   English

如何通过eclipse插件获取对svn所做更改的详细信息?

[英]How to get details of changes made to svn through eclipse plugin?

I am working on a simple eclipse plugin. 我正在开发一个简单的eclipse插件。 I want to get details such as the time of last commit, number of different authors. 我想获取详细信息,例如上次提交时间,不同作者的数量。 Size in kb of the files. 文件大小(以kb为单位)。

I want to get these details programmatically. 我想以编程方式获取这些详细信息。 I am using google host svn. 我正在使用google host svn。 I am using subclipse plugin to access svn through eclipse. 我正在使用subclipse插件通过eclipse访问svn。 I am using java. 我正在使用Java。 How do I proceed to reach my objective? 我如何继续实现自己的目标?

Check out SVNKit and the wiki . 查看SVNKitWiki For commit related info as you asked for take a look at the SVNCommitInfo class:- 有关您要求的与提交相关的信息,请查看SVNCommitInfo类:

The SVNCommitInfo class represents information about a committed revision. SVNCommitInfo类表示有关已提交修订的信息。 Commit information includes: 提交信息包括:

 a revision number; a datestamp when the revision was committed; the name of the revision author. 

In addition, this class provides anexception that, if a commit has failed, has got a description of a failure reason. 另外,此类提供了一个异常,即如果提交失败,则会获得失败原因的描述。

SVNDirEntry class is also useful for your purposes:- SVNDirEntry类对于您的目的也很有用:

SVNDirEntry keeps an entry name, entry kind (is it a file or directory), file size (in case an entry is a file), the last changed revision, the date when the entry was last changed, the name of the author who last changed the entry, the commit log message for the last changed revision. SVNDirEntry保留条目名称,条目种类(是文件还是目录),文件大小(如果条目是文件),上次更改的修订版本,上次更改日期,上次作者的姓名更改了条目,最后更改的修订的提交日志消息。 SVNDirEntry also knows if the entry has any properties. SVNDirEntry也知道该条目是否具有任何属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM