Robert Anderson wrote:

John Arbash Meinel wrote:

However, others (such as myself) have frequently been bit by CVS trying
to do this, and *don't* want this behavior. I *like* that tla doesn't
try and guess what line endings I want, it just gives me back the ones I
gave it. That lets me use CRLF for files that require it (visual studio
.vcproj for instance), and not for the rest.


Well I guess that's the thing.  I guess I don't know when it's
required and when it isn't, nor why.

What I do know is that I don't want ^M cluttering my source files when
I edit them in emacs under linux, and I don't want my shell scripts to
say "bad interpreter" under linux when I try to run them.  These are
two problems I've had in the first 5 minutes of trying to use tla
instead of CVS in this arrangement.  I never had either of these
problems using the CVS method.  It seems its "guesses" about what I
want are pretty spot-on for my usage.

Well, if you never check in binary files, and you always use CVS for checkin/out (never direct copy) CVS does a decent job.


Maybe there is a way to arrange things so that line endings are preserved but the behavior is sane on both sides (this seems to be what you're advocating). Can you offer me any guidance? I have source files, shell scripts, and Visual Studio files under source control. I edit them in emacs on both sides, compile using GNU make and g++ on both sides, want the shell scripts to run on both sides (cygwin under win32), but also make the occasional VS build for distribution purposes.

Almost everyone handles either line endings okay. But I generally prefer
LF endings. The only files I have found that need specific endings are
Visual Studio project files. so .vcproj, .sln, .dsw, .dsp. Visual Studio
(>= 7.1) seems to edit LF files fine, just doesn't accept it in a
project file.
Usually the only time you see ^M is if the file is mixed format. Then
the editor goes to least common (LF) and shows the CR.

I wrote a script called "tlaFileCheck.py" which uses comments in
.arch-inventory files to describe what the line endings you want, and it
verifies it for you before commit. Probably more than you need, though.

Thanks,
Bob

I'm certainly willing to give you any pointers if you run into difficulties.

John
=:->


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Gnu-arch-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/

Reply via email to