views:

10

answers:

1

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

+1  A: 

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.

Amit
Thanks Amit. That works and Cornerstone made it even easier in their UI.
Nutmeg