1.修改配置文件config
XP> C:\Documents and Settings\YouUsername\Application Data\Subversion
WIN7> C:\Users\YouUsername\AppData\Roaming\Subversion
*uix> ~/.Subversion
[miscellany]
enable-auto-props = yes
[auto-props]
#* = svn:keywords=LastChangedDate LastChangedRevision LastChangedBy Id
*.java = svn:keywords=Id Revision Date
*.xml = svn:keywords=Id Revision Date
*.properties = svn:keywords=Id Revision Date
*.jsp = svn:keywords=Id Revision Date
*.html = svn:keywords=Id Revision Date
*.htm = svn:keywords=Id Revision Date
=======
目前支持5个关键字:
Date(修改时间)
Revision(版本)
Author(提交者)
HeadURL(库路径)
Id(前面4个的组合)
2.源文件
/**
* $Revision: $
* $Date: $
* $Id: $
*/
/**
* $Revision: 7457 $
* $Date: 2010-12-23 12:59:57 +0800 (周四, 23 十二月 2010) $
* $Id: SVN.java 7457 2010-12-23 04:59:57Z yuanzy $
*/
阅读(2901) | 评论(1) | 转发(0) |