2009/1/27 Ben Lancaster <mail(a)benlancaster.co.uk>
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 (
), 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
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.