开发者

Timestamps with SVN (using BBedit/Texmate)

开发者 https://www.devze.com 2023-01-10 03:09 出处:网络
开发者_如何学JAVAIs there a way to auto insert a time stamp into a document (html/css/ js/php/pl/txt) with every commit?You can use Subversion\'s Keyword Substitution. First you must set the svn:keyw
开发者_如何学JAVA

Is there a way to auto insert a time stamp into a document (html/css/ js/php/pl/txt) with every commit?


You can use Subversion's Keyword Substitution. First you must set the svn:keywords property on any files you want the substitution to occur on:

% svn propset svn:keywords "Date" /path/to/file

Then in your sourcecode, include the following:

$LastChangedDate$

There are other useful substitution keywords available such as Id which includes a combination of the revision, the modification date, and the user who made the commit.

0

精彩评论

暂无评论...
验证码 换一张
取 消