在Eclipse中用subversion填充@version标签

发布于 2024-08-22 07:56:42 字数 469 浏览 2 评论 0原文

我想在 Eclipse 中使用 Subclipse 或 Subversion 填充注释标签 @version 。 CVS 会自动完成此操作,但 Subversion 不会。这会很有帮助。

我尝试用谷歌搜索“@version”,但似乎不可能。

CVS 所做的示例:

<?php
 /* 
 * @author Spankmaster
 * @version $Id: file.php,v 1.47 2009-09-21 09:28:49 sp Exp $
 * @package mysoftware
 */

SVN 示例:

<?php
 /* 
 * @author Spankmaster
 * @version $Id: $ -> stays empty
 * @package mysoftware
 */

请帮忙......

I would like to fill the comment tag @version with Subclipse or Subversion in Eclipse. CVS has done this automatically but Subversion isn't. This would be very helpful.

I tried to google "@version" but it seems impossible.

Example what CVS did:

<?php
 /* 
 * @author Spankmaster
 * @version $Id: file.php,v 1.47 2009-09-21 09:28:49 sp Exp $
 * @package mysoftware
 */

Example with SVN:

<?php
 /* 
 * @author Spankmaster
 * @version $Id: $ -> stays empty
 * @package mysoftware
 */

Please help.....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

脱离于你 2024-08-29 07:56:42

在 svn 中,它是 $Revision$

/**
* Last changed: $LastChangedDate$
* @author $Author$
* @version $Revision$
*/

,您还必须将关键字添加到项目(文件夹和文件)

属性 svn:keywords 设置为 LastChangedDate Author Id Revision HeadURL

in svn it is $Revision$

/**
* Last changed: $LastChangedDate$
* @author $Author$
* @version $Revision$
*/

also you must add the keywords to the project (folders and files)

Property svn:keywords set to LastChangedDate Author Id Revision HeadURL

指尖微凉心微凉 2024-08-29 07:56:42

感谢马可和达维德。

为 Eclipse 用户总结一下:

这将更改所有文件,因此您必须再次签入整个项目。因此,在执行此操作之前,请检查所有工作。

我右键单击该项目,选择“团队 -> 设置属性”

属性名称:输入“svn:keywords”

输入文本属性:输入“LastChangedDate Author Id Revision HeadURL” 单击“

选中“递归设置属性”选项,然后

确定”

thx to Marco and Davide.

Just to sum it all up for Eclipse Users:

This will change all files, so you will have to do a checkin of the complete project again. So check-in all work before doing that.

I rightclick on the project, select "Team -> set Property"

Property name: Enter "svn:keywords"

Enter a text property: Enter "LastChangedDate Author Id Revision HeadURL"

Check the option "Set property recursively"

Click "OK"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文