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 theSet 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.

优质内容筛选与推荐>>
1、SSIS Parameter用法
2、都是浏览器惹的祸 - The reason they call it a browser
3、堆排序的实现
4、【转帖】2014Hype Cycles Research
5、Android开发之InstanceState详解


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号