Re: SVN properties of UK files
| From: | Simion Onea | Date: | Thu, 18 Sep 2014 10:40:42 +0000 |
| Subject: | Re: SVN properties of UK files | ||
| References: | 1 2 3 4 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969385188@lists.php.net to get a copy of this message | ||
On Thu, Sep 18, 2014 at 1:26 PM, Костя Третяк <ktretyak.in.ua@gmail.com>
wrote:
> Done.
> I read your recommendations, then read carefully the Chapter how I can
> manually add properties in TortoiesSVN, and then just did the import
> properties from the folder EN in UK folder and it worked.
>
> Cheers!
>
Good work! The end-of-lines are now correct.
But the SVN properties are not quite right. Take a look at the difference
between "en" and "uk" files "language-snippets.ent"
[root@fedora phpdoc]# svn proplist -v en/language-snippets.ent
Properties on 'en/language-snippets.ent':
cvs2svn:cvs-rev
1.270
svn:eol-style
native
svn:keywords
Id Rev Revision Date LastChangedDate LastChangedRevision Author
LastChangedBy HeadURL URL
[root@fedora phpdoc]# svn proplist -v uk/language-snippets.ent
Properties on 'uk/language-snippets.ent':
svn:eol-style
LF
svn:keywords
Revision
You can ignore "cvs2svn:cvs-rev" property. It was used when the repository
was converted from CVS to SVN.
But the values of "svn:eol-style" and "svn:keywords" differ.
Regards,
Simion.
> 2014-09-18 9:17 GMT+03:00 Simion Onea <simionea@gmail.com>:
>
>> 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.
>>
>
>