如何在SVN中使用自定义关键字 [英] How to use custom keywords in SVN
问题描述
我使用的是 VisualSVN 服务器和 TortoiseSVN 客户端.我已经设置了属性
I'm using a VisualSVN server and TortoiseSVN client. I have set the properties
svn:keywords = Author Id Revision LastChangedDate Copyright
copyright = (c) 2009 Foo Company.
然后,当我尝试在头文件中使用这些属性(包括自定义属性版权)时,我是这样做的:
Then, when I try to use these properties in the header file (including the custom property Copyright), I do it like:
/******************************************************************************
* $Id$
*
* $Author$
*
* $Revision$
*
* $LastChangedDate$
*
* $Copyright$
******************************************************************************/
除版权外,每个财产都将被替换.我还缺少什么?
Every property is getting substituted right, except for the Copyright. What am I still missing?
推荐答案
在 SVN 1.8 之前,SVN 不支持自定义关键字.
Prior to SVN 1.8, custom keywords were unsupported by SVN.
以下是支持的关键字及其工作原理.http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html
Here are the supported keywords, and how they work. http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html
自定义关键字一直是一项功能请求.http://subversion.tigris.org/issues/show_bug.cgi?id=890
Custom keywords had been a feature request for some time. http://subversion.tigris.org/issues/show_bug.cgi?id=890
该功能最终在 SVN 1.8 中添加(感谢 MarkusSchaber).https://subversion.apache.org/docs/release-notes/1.8#custom-keywords
The feature was finally added as of SVN 1.8 (thanks MarkusSchaber). https://subversion.apache.org/docs/release-notes/1.8#custom-keywords
这篇关于如何在SVN中使用自定义关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!