[TYPO3-dev] Id in SVN commit
Xavier Perseguers
typo3 at perseguers.ch
Sat Aug 29 09:13:10 CEST 2009
Hi,
> i'm working with a project with svn-repository on forge.typo3.org for
> the first time - and so far everything is nice :)
>
> I have a question about the
>
> * @version $Id: ... $
>
> line in the file comment. What exactly do i have to fill in there for
> new files to let svn fill that lines automatically?
>
> I really tried to find something about that but i didn't and would be
> very greatfull if someone could give me a hint.
You have to configure auto-properties [1] or see hereafter which will be valid for _new_ files and for existing you have to add those properties yourself. For instance on Mac OS X or Linux:
$ cd /path/to/your/extension
$ find . -name "*.php" -exec svn propset svn:keywords "Date Author Revision Id HeadURL" {} \;
$ find . -name "*.php" -exec svn propset svn:eol-style "native" {} \;
On Windows, search for PHP files, select all, right click and choose properties, then SVN Properties tab you find and choose to add properties. Set the same as above.
To configure auto-properties:
On Mac OS X / Linux:
Edit file ~/.subversion/config (personal) or /etc/subversion/config (system-wide)
On Windows:
Edit file %APPDATA%\Subversion\config
Then (example)
--------------
enable-auto-props = yes
[auto-props]
*.css = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL
*.gif = svn:mime-type=image/gif
*.htm = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL
*.html = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL
*.inc = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL
*.jpg = svn:mime-type=image/jpeg
*.js = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL
*.php = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL
*.png = svn:mime-type=image/png
*.sql = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL
*.txt = svn:eol-style=native
*.xml = svn:eol-style=native;svn:keywords=Date Author Revision Id HeadURL;svn:mime-type=text/xml
--------------
[1] http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html
--
Xavier Perseguers
http://xavier.perseguers.ch/en
One contribution a day keeps the fork away
More information about the TYPO3-dev
mailing list