From mboxrd@z Thu Jan 1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Phillip Lord
Newsgroups: gmane.emacs.help
Subject: Re: NTEmacs, CVS, PCL-CVS, Version Control and ^M?
Date: 25 Apr 2003 16:43:43 +0100
Organization: Dept of Computer Science, University of Manchester, U.K.
Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org
Message-ID:
References:
NNTP-Posting-Host: main.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: main.gmane.org 1051287252 15251 80.91.224.249 (25 Apr 2003 16:14:12 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Fri, 25 Apr 2003 16:14:12 +0000 (UTC)
Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 25 18:14:06 2003
Return-path:
Original-Received: from monty-python.gnu.org ([199.232.76.173])
by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
id 1995pu-0003xL-00
for ; Fri, 25 Apr 2003 18:14:06 +0200
Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org)
by monty-python.gnu.org with esmtp (Exim 4.10.13)
id 1995hU-0002aJ-03
for gnu-help-gnu-emacs@m.gmane.org; Fri, 25 Apr 2003 12:05:24 -0400
Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!zen.net.uk!130.88.203.18.MISMATCH!peernews.mcc.ac.uk!cs.man.ac.uk!not-for-mail
Original-Newsgroups: gnu.emacs.help
Original-Lines: 62
Original-NNTP-Posting-Host: rpc71.cs.man.ac.uk
Original-X-Trace: wapping.cs.man.ac.uk 1051285423 5972 130.88.198.228 (25 Apr 2003
15:43:43 GMT)
Original-X-Complaints-To: news@wapping.cs.man.ac.uk
Original-NNTP-Posting-Date: Fri, 25 Apr 2003 15:43:43 +0000 (UTC)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93
Original-Xref: shelby.stanford.edu gnu.emacs.help:112334
Original-To: help-gnu-emacs@gnu.org
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor
List-Help:
List-Post:
List-Subscribe: ,
List-Archive:
List-Unsubscribe: ,
Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org
Xref: main.gmane.org gmane.emacs.help:8833
X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8833
>>>>> "Eli" == Eli Zaretskii writes:
>> From: Phillip Lord Newsgroups:
>> gnu.emacs.help Date: 25 Apr 2003 12:43:23 +0100
>>
Eli> I really don't know why did you say that. For example, Emacs
Eli> developers use both Unix and Windows CVS clients
>>
>> On the same files? I should be clear here, when I say "files" I
>> mean work files, not a repository file.
Eli> Most, if not all, of Windows CVS clients work just fine with
Eli> Unix-style EOLs. When you checkin such files, what you get in
Eli> the repository is Unix EOLs.
Maybe. All I can say is that I have seen problems with some clients
checking in dos terminated files. Mostly this seems to come from
windows boxes.
Eli> The issue of editing the same files from Windows and Unix
Eli> machines is not really related to what we were talking about,
Eli> but if Emacs is used on all the machines, it is solved almost
Eli> by default--the only non-default setting is a proper definition
Eli> of untranslated filesystems, as I wrote elsewhere in this
Eli> thread.
Indeed, getting untranslated filesystems right helps a lot.
>> Now there are other problems besides this. I checked out a file
>> from CVS yesterday, under unix, and the resultant file had dos
>> terminators.
Eli> You should ideally have your CVS setup in such a way that this
Eli> does not happen. A Unix-EOL file should be checked out into a
Eli> workfile with with Unix EOLs. If worse comes to worst, there
Eli> are programs to convert between the EOL formats without
Eli> changing the file's timestamp.
The fundamental difficulty, is I think, that there are so many
possible combinations of tools. I use emacs, on unix, with
vc/pcl-cvs. Others use emacs, on windows, and WinCVS for all their
versioning. Others use emacs, on windows, cygwin cvs. And others, of
course, do not use emacs at all, god rest their souls.
Ideally you are right, CVS should be setup so that EOL terminators are
not a problem. But this is not the ideal world, and I have found
recurrent problems with this. And sometimes inconsistent problems. I
still find that, occasionally, DOS terminators turn up. Sometimes on
the entire file (in which case emacs handles it gracefully, with just
a "DOS" sign at the bottom), and other times in just part of the file
(in which case you get Ctrl-M's appearing). From hanging around on the
cvs newsgroup for a while, I see that others have problems also.
I'm just relating my experience. I generally find that getting it all
working is manageable, but not entirely transparent (with emacs, or
without!). Galen, it would appear, has found a similar thing.
Phil