How to use NetBeans tag and SVN @version in PhpDoc docblock?

I am using NetBeans as my php ide and I have seen @version tags in docblock that look like this:

@version $Id someinfo and timestamp

Does NetBeans automatically update this with every commit? Or did I completely miss this tag?

+3
source share
2 answers

Well no, Netbeans has no way. But subversion ...

Exact tag $Id$, and it matches the svn property svn:keywords=Id. Locate the configuration file (in linux, usually under ~/.subversion/config. In the windows, I found it under ~\Application Data\Subversion\Config. Locate this file (or create it if it does not exist), and then add the following lines:

[miscellany]
enable-auto-props = yes

[auto-props]
*.php = svn:keywords=Id

LF (\n), :

*.php = svn:keywords=Id;svn:eol-style=LF
+8

:

:

find . \( -name '.svn' -prune \) -o -name '*.php' -exec svn propset svn:keywords "Id " {} \;

0

Source: https://habr.com/ru/post/1759985/


All Articles