[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pserver

From: Larry Jones
Subject: Re: pserver
Date: Fri, 7 Dec 2001 17:59:14 -0500 (EST)

Schwenk, Jeanie writes:
> I was told that if I used pserver to check files even though I am on the
> same machine where the repository resides, it will eliminate the eol problem
> between checkins via windoze verses unix.  
> First, is it true that pserver takes care of that?  

Yes and no -- CVS takes care of that (for text files) reguardless of the
connection method.  The key is that you must always do the checkout, the
editing, and the commit on the same platform.  If you check files out on
Unix, you get Unix line endings; if you check files out on DOS/Windows,
you get DOS line endings.  Likewise, if you commit on Unix, CVS expects
Unix line endings and converts them into a canonical form; if you commit
on DOS/Winows, CVS expects DOS line endings and converts them to
canonical form.  However, if you have a file with DOS line endings and
commit it on Unix, it will not have the expected line endings and the
conversion will not be correct and vice versa.

> Second, is there any reason I should or should not be using pserver when I'm
> the same machine where the repositry resides?  Are there some pros and cons
> to either way of doing it?  If there's a valid reason for it, then I should
> change what I'm doing.  But I hate changing something unless there's a valid
> reason for it.

There probably isn't any reason to use pserver with a local repository. 
The only reason I can think of (other than testing to ensure that
pserver is working) is so you can commit as someone else either
literally (using the CVSROOT/passwd file to run as a different system
user) or figuratively (using a different CVS username in your CVSROOT).

-Larry Jones

Honey, are we out of aspirin again? -- Calvin's Dad

reply via email to

[Prev in Thread] Current Thread [Next in Thread]