![]() |
Thursday, 30 June 2005 |
A CVS problem solved... When connecting to CVS, we were getting the following error message: cvs status: conflict: <<file>> created independently by second party Until now I have just checked my code in and out of version control, and always had someone else to administer it and sort it out. My Wernher Von Braun past... "The rockets go up But this rocket was coming down squarely in my back yard. Being new to Linux, I had to do a fair bit of spelunking to work out what was going on. After reading the CVS documentation I formulated the following theory:
The error message is displayed to Party 1 as CVS is smart enough to realise that here be a problem. Having got this far, I formulated the following fix. Party 1 is to:
I still believe the above to be a valid cause and fix for the message being displayed. However, after looking at the <<file>> in the repository the above theory was shown to be totally wrong in this instance. All that hard work. Damn. Back to the manuals. It turns out that the real problem was a permissions one. A trap for unwary newbies! CVS adds new files to the repository under the default group of the user performing the addition. If CVS users belong to different default groups CVS additions are not readable by the developers in the “other” default groups. The quick fix was simply to change all the CVS users to share the same default group, and to run the “chgrp -R <<defaultGroup>> .” command on the repository. Lo! All became sweetness and light. But if it turns out that this fix isn't suitable in the long run the following article presents a hack that may just be the ticket: http://kered.org/article-2004.01.20-Multi-Group_CVS_Administration_HOWTO.html
1:31:04 PM ![]() |