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.

posted @ 2012-06-28 17:56  johnsonshu  阅读(358)  评论(0编辑  收藏  举报