[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Fix issue #2068

From: Senthil Kumaran S <senthil_at_collab.net>
Date: Thu, 12 Mar 2009 14:47:14 +0530

Senthil Kumaran S wrote:
> The attached patch gives a solution to fix issue #2068, though this is not
> backward compatible with earlier versions of subversion.

If we have the following line in ~/.subversion/config

<snip>
[auto-props]
*.txt = svn:mime-type=text/plain;charset=UTF-8|svn:eol-style=native
</snip>

An 'svn add' will produce the following with this patch:

<snip>
$ svn di
Index: file.txt
===================================================================
--- file.txt (revision 0)
+++ file.txt (revision 0)
@@ -0,0 +1 @@
+some file.

Property changes on: file.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain;charset=UTF-8
Added: svn:eol-style
   + native
</snip>

OTOH, a config line like the following:

<snip>
[auto-props]
*.txt = svn:mime-type=text/plain;charset=UTF-8;svn:eol-style=native
</snip>

without this patch 'svn add' will give the following:

<snip>
$ svn di
Index: file.txt
===================================================================
--- file.txt (revision 0)
+++ file.txt (revision 0)
@@ -0,0 +1 @@
+some file.

Property changes on: file.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: charset
   + UTF-8
Added: svn:eol-style
   + native
</snip>

Thank You.

-- 
Senthil Kumaran S
http://www.stylesen.org/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1311814
Received on 2009-03-12 10:17:31 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.