2009/1/27 Ben Lancaster
<mail@benlancaster.co.uk>
Hey,
the phpDoc stuff in the PHP bundle always inserts an @version tag with
value $Id$ when I insert doc_h. According to the phpDocumentor docs (http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_tags.version.pkg.html
), this is for integration with SCM ($Id$ to be substituted with the
last-change revision for the given file), but how do I automate this
within TextMate, or does this belong in a post-commit hook?
OK, firstly, using keyword expansion is usually a bad idea. It will make it harder to diff the files and
doesn't really provide any useful information - at least not as long as you have access to the SCM
itself. But if you still want it you may need to turn it on in your SCM.
In Subversion you run this command in the root of your checked out repository:
svn propset svn:keywords 'Id' *.php *.phtml
(the last arguments are a list of the file types you want to do this on)
In CVS keyword substitution is on by default, so I guess you don't use that.
--