When viewing some PHP source code, you can often see some very standard comment information
$Id: Database.php 4343 2009-05-08 17:04:48Z jheathco $
This The information includes the file name, SVN version, submission date, and author. So how is this information generated? Today I finally discovered it. It turns out to be an auto-props function provided by SVN.
In the Zend Studio 6.1.2 we use, right-click the project checked out from SVN, select Team->set keyword, and then select ID, thus opening SVN’s auto-props Function.
Next, as long as we add $Id$ to the PHP file we write, when submitting to SVN, the client will automatically replace this with the standard format above. How about it? It feels very convenient.
In addition, there are several other properties that can be set, namely: LastChangedDate, LastChangedRevision, LastChangedBy, HeadURL.
Using this function, when we write our own code, we can generate file information in a unified format without having to maintain it manually.
Reprinted from: http://www.cnblogs.com/cocowool/