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

Re: File Content Type/Executablitiy?

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 13 Oct 2008 12:49:23 -0400

There are a few properties that can be placed on your file that will
solve this issue:

svn:eol-style="LF" or svn:eol-style="native"

When Subversion sees the svn:eol-style property on the file set to
either native or LF, it automatically converts all ^M Windows style
line endings (Which are <CR><LF>) to Unix style line endings (Which
is a plain <LF>).

When Subversion sees the svn:executable property on a file, it makes
sure on Unix like systems that it sets the execute bit when checking

You can use a pre-commit hook to insure that these two properties are
on your shell scripts before permitting checking in the files. And,
you can use the auto-properties in your $HOME/.subversion/config file
to make sure these properties are automatically set when you create a
new shell script.

See <http://svnbook.red-bean.com/en/1.5/svn.advanced.props.html> for
information about Subversion properties and
for more information.

David Weintraub
On Mon, Oct 13, 2008 at 8:17 AM, N D <niranjan8712_at_gmail.com> wrote:
> Hi all,
> I build my application using a unix shell script. I commited this script
> into my svn repo. using Eclips IDE. The problem was that when this script
> was checked out from svn it did not run properly and terminated at places
> where it was syntactically correct. I suppose this is becaue of the ^M
> characters / end of line characters not recognized.
> The soulution that i thought of is to commit the build script from the linux
> system, using --encoding ASCII option. This is working for me.
> But as I was going thorugh the manual again, I got to see the section 'File
> Content Type' where in this problem has mentioned. What I remember read
> there is 'set the svn:mime to native' . But I have not tried this yet.
> Can any one please comment/give insight on which of the above is more
> correct and should be used?
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-13 18:49:49 CEST

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.