svn在源代码中嵌入作者或版本等信息

svn在源代码中嵌入作者或版本等信息
以前在dreamarts时觉得特别好用。
能知道文件名是哪一个
调试的时候找的话,就方便多了

目前支持5个关键字:Date(修改时间)、Revision(版本)、Author(提交者)、HeadURL(库路径)、Id(前面4个的组合)

必须在eclipse把项目整体给设置一下

参考:http://hi.baidu.com/gevilrror/bl ... 87f016a18bb791.html

However keyword substitution is not activated by default from within Eclipse and its SVN module titled Subclipse.  

Eclipse is the best IDE (Integrated Development Environment) that I’ve ever used (but it won’t be explained here).  

These are the steps to activate the svn-keyword-substitution feature in Eclipse:

  • Install Subclipse into your Eclipse application (you’ve probably already done this if you’re reading this post!)
  • Right-mouse-click on your project folder, and choose Team => Set Property from the popup menu
  • Enter the property name:  svn:keywords
  • Enter the text property:  Author Date Id Revision HeadURL
  • Click the  Set property recursively checkbox
  • OK

Now keywords are substituted when you commit a file in SVN, just like they were in CVS.  Also, you can shorten Revision to Rev and HeadURL to URL.

转载于:https://www.cnblogs.com/johnsonshu/archive/2012/06/28/2568503.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值