Fabian Wein (LSE) wrote:
> Hi Christian,
>
> thanks - now I know more :) and it syntax coloring worked with an
> example.
>   
>> text/x-c++src  for C++ source
>> text/x-c++hdr  for C++ headers
>>     
>
> But as we have a lot of branches and quite a lot of files I still
> don't know
> how to proceed with the existing repository.
>
> Is there a way to "filter" the settings in svn and use the new
> settings?
>   

This is coming from the autoprops, see 
http://subversion.tigris.org/faq.html#auto-props
and google for .subversion/config to find some examples.

>> The file extension is superseded by the mime-type, by design.
>>     
>
> If I have to patch trac to ignore text/plain, do you have a hint?
>   

Something like this (untested), svn_fs.py being in trac/versioncontrol

Index: svn_fs.py
===================================================================
--- svn_fs.py    (revision 5152)
+++ svn_fs.py    (working copy)
@@ -783,7 +783,10 @@
     def get_content_type(self):
         if self.isdir:
             return None
-        return self._get_prop(core.SVN_PROP_MIME_TYPE)
+        mimetype = self._get_prop(core.SVN_PROP_MIME_TYPE)
+        if mimetype != 'text/plain':
+            return mimetype
+        return None
 
     def get_last_modified(self):
         _date = fs.revision_prop(self.fs_ptr, self.created_rev,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to