Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 9636 invoked from network); 23 Feb 2011 16:35:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 16:35:46 -0000 Received: (qmail 66606 invoked by uid 500); 23 Feb 2011 16:35:46 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 66575 invoked by uid 500); 23 Feb 2011 16:35:44 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 66565 invoked by uid 99); 23 Feb 2011 16:35:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 16:35:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dcchapman@acm.org designates 64.142.19.5 as permitted sender) Received: from [64.142.19.5] (HELO b.mail.sonic.net) (64.142.19.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 16:35:37 +0000 Received: from [192.168.1.115] (70-36-212-24.dsl.static.sonic.net [70.36.212.24]) (authenticated bits=0) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id p1NGZG0X016265 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Wed, 23 Feb 2011 08:35:16 -0800 Message-ID: <4D653734.6000700@acm.org> Date: Wed, 23 Feb 2011 08:35:00 -0800 From: David Chapman Organization: Chapman Consulting User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Christopher D Haakinson CC: users@subversion.apache.org Subject: Re: ^M Appends to every line? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2/23/2011 8:19 AM, Christopher D Haakinson wrote: > > I have SVN up and running and things are working well, except when > editing shell scripts from windows. > > My server is RHEL5-based and I will have clients connecting from linux > and windows. Linux commits work great, and even some times from > windows. However some times I commit a file from Windows(running > tortoiseSVN and Komodo EDIT) it corrupts the script and adds ^M to the > end of every line, often times ruining the structure of the file too. > > Is there a way to disable this or do I have to run a dos2unix script > after every commit to remove them? > Look up "propset" and "eol-style". In particular, in the [auto-props] section of my configuration file I have a number of lines of the form *.c = svn:eol-style=native *.txt = svn:eol-style=native *.pl = svn:eol-style=native;svn:executable I do this both in Windows and in Linux so that I don't have files with only ^J when I check them out under Windows. You can also add this property manually after the files are committed: svn propset svn:eol-style=native file1 file2 ... Since you are seeing ^M now, you will need to do this manually for the affected files. Other useful commands: svn proplist file svn propget svn:eol-style file where "file" is the name of the file you are looking at. -- David Chapman dcchapman@acm.org Chapman Consulting -- San Jose, CA