[TYPO3-dev] Id in SVN commit

Christian Opitz - Netzelf christian.opitz at netzelf.de
Sat Aug 29 13:38:30 CEST 2009


Thanks for the hint - i'm using subclipse and i tried to do what you 
told me:

I edited the config file and applyed the properties for a file manually:
propset svn:keywords "Id Revision Date Author" 
C:/xampp/htdocs/typo3/typo3conf/ext/formhandlergui/pi/class.tx_formhandler.php
    notify.property.set

propset svn:eol-style "native" 
C:/xampp/htdocs/typo3/typo3conf/ext/formhandlergui/pi/class.tx_formhandler.php
    Illegal target for the requested operation
svn: File 
'C:\xampp\htdocs\typo3\typo3conf\ext\formhandlergui\pi\class.tx_formhandler.php' 
has inconsistent newlines
Inconsistent line ending style

Then i wrote this in the file-comment:
@version $Id Revision Date Author$

I didn't see if it worked because it allways takes a while till changes 
appear in forge but do you think i did it right?

Xavier Perseguers schrieb:
> 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
>
>   


More information about the TYPO3-dev mailing list