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

Re: On commit, svn server to change line ending to unix style for .sh files.

From: Fu-Tung Cheng <futung.cheng_at_yahoo.com>
Date: Fri, 5 Sep 2008 10:54:57 -0700 (PDT)

Thanks for the reply.

I read that portion of the book but it just tells me what Ryan mentioned before although it isn't very clear that the setting is client side only.

The scenario I have is that I always want .sh files - any other files - to have the unix eol style but I never want to have to set them. svn should be smart enough or configurable enough to set this without any interaction from my or any other clients behalf.

So the question remains, is this feature on the roadmap? Why should everytime I want to add a new .sh file to the repository I need to manually set the eol:style to CR when the server could say "hey that's a .sh file I know what style he wants and just set it".

I realize that adding files doesn't occur all the time and that some client allow you to select a bunch of files and set all their eol:style at once but this is still error prone and much less nice than an automated server side setting.

Thanks,

Fu-Tung

--- On Thu, 9/4/08, Larry Shatzer, Jr. <larrys_at_gmail.com> wrote:

> From: Larry Shatzer, Jr. <larrys_at_gmail.com>
> Subject: Re: On commit, svn server to change line ending to unix style for .sh files.
> To: futung.cheng_at_yahoo.com
> Cc: "Ryan Schmidt" <subversion-2008c_at_ryandesign.com>, users_at_subversion.tigris.org
> Date: Thursday, September 4, 2008, 9:09 PM
> Please see
> http://svnbook.red-bean.com/nightly/en/svn.advanced.props.file-portability.html
>
> -- Larry
>
> On Thu, Sep 4, 2008 at 2:36 PM, Fu-Tung Cheng
> <futung.cheng_at_yahoo.com>wrote:
>
> > That's what I was afraid of. Thank you for the
> suggestion.
> >
> > Any idea if the server side enabling of this kind of
> thing is a feature on
> > the roadmap for svn?
> >
> > It seems to me that cvs had a way of doing this that
> didn't involve the
> > client. I know adding new files doesn't happen
> all that often it is just
> > nice to automate things that can be automated.
> >
> > Thanks,
> >
> > Fu-Tung
> >
> >
> > --- On Thu, 9/4/08, Ryan Schmidt
> <subversion-2008c_at_ryandesign.com> wrote:
> >
> > > From: Ryan Schmidt
> <subversion-2008c_at_ryandesign.com>
> > > Subject: Re: On commit, svn server to change line
> ending to unix style
> > for .sh files.
> > > To: futung.cheng_at_yahoo.com
> > > Cc: users_at_subversion.tigris.org
> > > Date: Thursday, September 4, 2008, 3:47 PM
> > > On Sep 4, 2008, at 10:39 AM, Fu-Tung Cheng wrote:
> > >
> > > > I would like the server to store files with
> the
> > > extension .sh as
> > > > unix style line endings even if those files
> are
> > > written on windows
> > > > and committed from windows.
> > > >
> > > > When I checkout on windows the .sh files
> should be in
> > > unix format
> > > > as I'd never want them in dos format.
> > > >
> > > > Is there a way to set this on the server
> side?
> > >
> > > No, but you can set it on the client side. Set
> the
> > > svn:eol-style
> > > property of these files to "LF". You
> can set up
> > > your client's auto-
> > > props to make this happen automatically for new
> files as
> > > you add
> > > them. You can also install a pre-commit hook to
> reject the
> > > commit of
> > > any .sh file that doesn't have this property
> set, if
> > > you want.
> > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > users-unsubscribe_at_subversion.tigris.org
> > > For additional commands, e-mail:
> > > users-help_at_subversion.tigris.org
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe_at_subversion.tigris.org
> > For additional commands, e-mail:
> users-help_at_subversion.tigris.org
> >
> >

      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-05 19:55:27 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.