Subversion 和 CVS 中添加自动内容的标签怎么称呼?

发布于 2024-07-05 22:10:14 字数 119 浏览 7 评论 0原文

诸如 $log$$version$ 之类的东西会在签入文件时添加数据。 我有兴趣查看其他人以及他们可以提供哪些信息,但除非我知道他们叫什么,否则我无法获得太多信息。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

美羊羊 2024-07-12 22:10:14

这些是关键字替换。 SVNBook 1.8 的链接在这里: http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.keywords.html

Subversion 的内置关键字有:

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

关键字区分大小写,记得用 $ 将它们括起来。

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 $.

最后的乘客 2024-07-12 22:10:14

在 SVN 中,这些简称为“属性”。 您可以在 SVN 书中阅读有关它们的信息:

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


呃,那么,它们被称为属性还是关键字? 我懂了。 在 SVN 中,您可以将任意元数据(称为“属性”)与版本化文件关联起来; 您可以设置的一些属性是在文件本身中设置关键字替换。

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.

Subversion 和 CVS 都将它们称为关键字

在此处查看 SVN 手册(向下滚动到svn:keywords)或此处CVS

Both Subversion and CVS call them Keywords.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文