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

How to get rid op binary mime-type on a text file

From: Marcel Loose <loose_at_astron.nl>
Date: 2007-11-09 11:44:37 CET

Hi,

Recently, we've migrated our CVS repository to Subversion. I've used cvs2svn-2.0 to do this job. One of the things I've noticed is that I cannot do a "svn diff" on any of my shell scripts. When converting I've told cvs2svn to use /etc/mime.types to get the correct mime-types. As a result, my *.sh files now have the following properties:
  svn:executable : *
  svn:mime-type : application/x-shellscript

This looks good. However, the problem is that Subversion now treats my shell script as being binary. So when I try to get a diff to a previous revision I get the following error:
  Cannot display: file marked as a binary type.
  svn:mime-type = application/x-shellscript

How can I fix this? I've read something about creating your own ~/.subversion/config file. So, I've added the line
*.sh = svn:mime-type=text/x-sh;svn:eol-style=native;svn:executable
to the [auto-props] section, and enabled auto-props but that doesn't help. I guess this only works for newly added files, right?

Could you please help me out.

Kind regards,

Marcel Loose

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 12 23:59:08 2007

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

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