What do you call the tags in Subversion and CVS that add automatic content?

喜欢而已 提交于 2019-12-24 00:49:24

问题


Things like $log$ and $version$ which add data upon check-in to the file. I'm interested in seeing the other ones and what information they can provide, but I can't get much info unless I know what they are called.


回答1:


Both Subversion and CVS call them Keywords.

Have a look in the SVN manual here (scroll down to svn:keywords) or here for CVS.




回答2:


In SVN these are simply called "properties". You can read about them in the SVN book:

http://svnbook.red-bean.com/en/1.8/svn.advanced.props.html


Err, so, are they called properties or keywords? Oh, I see. In SVN you can associate arbitrary metadata, called "properties", with versioned files; some of the properties you can set are to set up keyword substitution in the files themselves.




回答3:


These are Keyword substitutions. The link to SVNBook 1.8 is here: http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.keywords.html.

Subversion's built-in keywords are:

  • Date / LastChangedDate
  • Revision / Rev / LastChangedRevision
  • Author / LastChangedBy
  • HeadURL / URL
  • Id

The keywords are case sensitive, and remember to surround them with $.



来源:https://stackoverflow.com/questions/39770/what-do-you-call-the-tags-in-subversion-and-cvs-that-add-automatic-content

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!