需要修改的文件: C:\Documents and Settings\Administrator\Application Data\Subversion\config
在文件的最下面加入:
[miscellany]
enable-auto-props = yes
[auto-props]
*.c = svn:keywords=Id Date
*.cpp = svn:keywords=Id Date
*.h = svn:keywords=Id Date
*.hpp = svn:keywords=Id Date
*.cxx = svn:keywords=Id Date
*.cs = svn:keywords=Id Date
*.php = svn:keywords=Id Date
*.html = svn:keywords=Id Date
*.tpl = svn:keywords=Id Date
*.txt = svn:keywords=Id Date
*.vbs = svn:keywords=Id Date
*.js = svn:keywords=Id Date
*.asp = svn:keywords=Id Date
一般来说, 可以在PHP的配置文件头部加入文件注释信息时, 加一个 @version $id即可.
最新可用:
[miscellany]
enable-auto-props = yes (将前面的“#”号和空格去掉)
[auto-props]
*.php = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-php (紧接着第一条即是这个)
PHP源文件中加入: @version $Id$