Zend Studio Tips: Automatically generate version information

Source: Internet
Author: User
Tags php source code svn zend

When you look at some of the PHP source code, you can often see some very standard annotation information
$Id: database.php 4343 2009-05-08 17:04:48z Jheathco $
This information includes file name, svn version, date of submission, author, then how this information is generated, and today finally found, is the original SVN provided a auto-props function.

In the Zend Studio 6.1.2 we used, the items checked out from SVN, right-click, select Team->set keyword, and then select the ID, which opens the SVN auto-props feature.
Next, as long as we write in the php file to add $id$, submitted to SVN, the client will automatically replace this with the above standard format, how, feel very convenient.

In addition, there are several other properties can be set, respectively: Lastchangeddate,lastchangedrevision,lastchangedby,headurl.

With this feature, when we write our own code, we can generate file information in a uniform format without having to manually maintain it.

Http://www.cnblogs.com/cocowool/archive/2009/09/05/1561116.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.