[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: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-15 02:36:00 CEST

On Aug 14, 2007, at 10:27, Brian McCann wrote:

> how does svn handle ".as" and ".mxml" files already committed to
> the repository,

Subversion does not care what the file's extension is, but what its
contents are. If Subversion believes the file to be a text-like file,
it will set the svn:mime-type to text/plain (I think). And if it
thinks it's a binary file, it will set it to application/octet-
stream. If you have any auto-props set up on the client side, then
those override Subversion's decisions.

> after setting the mime type will files already in the repository be
> set to txt or do they remain binary and only new ".as" and ".mxml"
> files get set as text?

If you set up auto-props on a client, then all new files added by
that client from that point on will get those new properties.
Existing files, and files added by other clients, will not benefit
from this change.

There are scripts which will apply your current auto-props rules to
all files in the repository after the fact, if you want.

Once a file in the repository has its svn:mime-type set, then all
users who update their working copies to that revision will see the
new MIME type.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 15 02:34:52 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.