1
有没有办法在每次提交时自动插入时间戳到文档中(html/css/ js/php/pl/txt)?SVN时间戳(使用BBedit/Texmate)
有没有办法在每次提交时自动插入时间戳到文档中(html/css/ js/php/pl/txt)?SVN时间戳(使用BBedit/Texmate)
您可以使用Subversion的Keyword Substitution。首先,你必须设置你想要上发生取代任何文件svn:keywords
属性:
% svn propset svn:keywords "Date" /path/to/file
然后在你的源代码,包括以下内容:
$LastChangedDate$
还有其他有用的替代关键字,可作为Id
其中包括修订版,修改日期和提交的用户的组合。
谢谢阿米特。这很有效,Cornerstone使他们在UI中更容易。 – Nutmeg 2010-08-22 00:52:41