info-cvs
[Top][All Lists]
Advanced

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

Re: pre-commit converter


From: Jim Hyslop
Subject: Re: pre-commit converter
Date: Wed, 08 Mar 2006 16:34:26 -0500
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

address@hidden wrote:
>>Find out exactly what the configuration is - exactly what version of the
>>client and server are being used (if it's a Cygwin CVS client, is Cygwin
>>configured for UNIX-style or DOS-style line endings), what connection
>>method, whether either the local directory or the server is mounted on a
>>network drive, and post that information here. We should be able to help
>>you reconfigure your system to eliminate the newline problem.
> 
> 
> I know very little about how to do CVS on windows.  (I use linux/unix
> 99% of the time.)  I would rather not start poking at other people's
> setup without knowing more, which in turn would require time investment
> on my part that I cannot afford.
> 
> 
>>One golden guideline to follow is: the CVS client, the system hosting
>>the working directory (whether it's a local drive or network-mounted)
>>and the file editor should all belong to the same operating system
>>family. Mixing O/S tools is a recipe for trouble.
> 
> 
> The problem is exactly that.  However I cannot mandate an other user to
> use linux at home on their laptop.
> 
[...]
> I hope that I can get the committers to convert the files to unix
> format themselves (prior to a commit)  in the near future.  The
> pre-commit script then will be slightly modified to only do the
> checking and refuse  the commit.

There's a fundamental property of CVS that you are missing:

The CVS client is *SUPPOSED* to do that conversion *AUTOMATICALLY*. If
it isn't, then somebody's configuration is wrong. Don't put a script in
place, fix the configuration. The other users don't have to run linux on
their laptops, they can use whatever clients they want to use. They just
have to use them correctly, that's all.

If you aren't the CVS administrator, then you have no business putting
commit triggers in place. If you are the administrator, then you have
every right to question the users on their setup, and force them to fix
it if it's wrong.

You don't have to be the expert - that's what we're here for. If you can
get the configuration information I mentioned earlier, we can tell you
what to change to make it work right.

- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFED03iLdDyDwyJw+MRAlDQAJsH1yjRIPiTrjActjfO0uDmj392ywCfXtzW
19bpQHVdip9bTVHwzs7+MPY=
=B6iZ
-----END PGP SIGNATURE-----





reply via email to

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