[TxMt] Re: PHP.tmbundle - How do I use @version?

Sven Axelsson sven.axelsson at gmail.com
Tue Jan 27 15:28:54 UTC 2009

2009/1/27 Ben Lancaster <mail at 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

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.

Sven Axelsson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20090127/c2ffecdc/attachment.html>

More information about the textmate mailing list