How to use custom keywords in SVN

孤街浪徒 提交于 2019-12-01 04:17:33

Prior to SVN 1.8, custom keywords were unsupported by SVN.

Here are the supported keywords, and how they work. http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html

Custom keywords had been a feature request for some time. http://subversion.tigris.org/issues/show_bug.cgi?id=890

The feature was finally added as of SVN 1.8 (thanks MarkusSchaber). https://subversion.apache.org/docs/release-notes/1.8#custom-keywords

jeremyt

You need the correct syntax. i.e. it's not $Id$, you need $Id: $. Then the value gets put here: $Id: value $

I think that keywords are case sensitive. Try this:

svn:keywords = Author Id Revision LastChangedDate Copyright
Copyright = (c) 2009 Foo Company.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!