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

Re: text and binary files in SVN

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2007-08-14 16:25:10 CEST

On 8/14/07, Brian McCann <Brian.McCann@viziant.net> wrote:
>
> Hi,
>
> is there a way to mark file extensions as text rather than binary in svn?
> ".as" and ".mxml" files seem to be being treated as binary...
>
> How would this be done?

I posted about that just days ago; the archive should hold the message by now.

There's an algorithm to estimate whether files are binary or texty:

Check the first 1024 bytes to be within the 020-0x7F and 0x07-0x0D
regions. If more than 85% of the bytes fall in that region (and none
were 0x00), then the file is probably texty.

So, if your files don't have that property, Subversion will consider
them binary, until you set a mime-type which makes it look texty
(starting with text/)

HTH,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 14 16:23:14 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.