We Recommend

Version Control with Subversion Version Control with Subversion
Written by members of the Subversion open source development team, Version Control with Subversion introduces the powerful new versioning tool designed to be the successor to the Concurrent Version System or CVS. CVS users will find the "look and feel" Subversion comfortably familiar, but under the surface it's far more flexible, robust, and usable, and more importantly, it improves on CVS's more notable flaws.


Posted By

zingo on 07/24/08


Tagged

php template standard src


Versions (?)


Template for DocBlock and svn:keywords


Published in: SVN 


URL: http://myeasyscripts.com/loudbaking/docblock-and-svnkeywords/

Substitute and update keywords like $HeadURL$, $Revision$, etc. in a file on every commit to subversion repos.

  1. Set svn:keywords on repos: $ svn propset --recursive svn:keywords 'HeadURL Revision LastChangedBy Date' /path/to/repo

  2. Use this source in your file.

  1. /**
  2. * Short description for file.
  3. *
  4. * Long description for file
  5. *
  6. * PHP 5
  7. *
  8. * Copyright (c) 2007, Company Name
  9. * Street address
  10. * City, State, Zip
  11. *
  12. *
  13. * @filesource $HeadURL$
  14. * @copyright Copyright (c) 2007, Company Name
  15. * @link http://www.companywebsite.com CompanyName
  16. * @package #### PACKAGE NAME ####
  17. * @sub-package #### SUBPACKAGE NAME ####
  18. * @since #.#.# //Correct version number as needed
  19. * @version $Revision$
  20. * @author Your Name
  21. * @modifiedby $LastChangedBy$
  22. * @lastmodified $Date$
  23. */

Report this snippet 

You need to login to post a comment.