Re: SVN properties of UK files

From: Date: Thu, 18 Sep 2014 06:17:22 +0000
Subject: Re: SVN properties of UK files
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969385182@lists.php.net to get a copy of this message
On Wed, Sep 17, 2014 at 10:05 PM, Костя Третяк <ktretyak.in.ua@gmail.com> wrote: > Hello Simion, > For some reason I thought this was done automatically on the side of the > repository (although not imagine how it is =). > Although my primary operating system - Windows 7, but also use and CentoOS > 6.5 (on VirtualBox). So glad I get from you advice. > > Regards, > Костя. > > 2014-09-17 15:21 GMT+03:00 Simion Onea <simionea@gmail.com>: > >> Hello Kostya, >> >> I have noticed that the files you placed in SVN are missing the necessary >> properties. That's why inside them you can see <!-- $Revision$ --> instead >> of eg. <!-- $Revision: 334455 $ --> >> If you work in Linux, I can tell you how to correct that. >> >> Regards, >> Simion. >> > Hi! I mentioned Linux because I work with "subversion" in Linux. My OS is Fedora 20 and the version of "subversion" is 1.8.10. I did the following modifications to my configuration: in the file "~/.subversion/config", in the section "[miscellany]" I added the following lines: mime-types-file = /etc/mime.types enable-auto-props = yes And in the section "[auto-props]" I modified the line for *.xml like this: *.xml = svn:eol-style=native;svn:keywords=Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL That's it. Now when I add a new file to the repository (eg. "svn add filename.xml") it automatically gets the necessary SVN properties: svn:mime-type svn:eol-style svn:keywords Unfortunately "svn:mime-type" is not needed, but it is automatically added and there is no way to prevent that. That's why I have to execute afterwards svn propdel svn:mime-type filename.xml After that you do an "svn commit filename.xml" and you're done. If you work in Windows, you probably use TortoiseSVN. You can configure autoproperties there too. See http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html Regards, Simion.

« previous php.doc (#969385182) next »