Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-platform CVS Problem



On Wednesday, Sep 24, 2003, at 05:26 Australia/Melbourne, John Gersh wrote:

Most developers on our team are using Mac OS X and PB for Java development, one uses Windows.

We've got our cvs repository on a Windows 2000 server. (That's what the IT folks provide by default as a file server.)

The Mac folks mount the appropriate server volume, using smb, to use the cvs repository.

The problem:

Once a Windows user commits a file, the Mac users can't commit their versions. Macs can deal with Mac-committed files OK; Windows can deal with Mac-committed files OK.

The error seen on a commit attempt by Mac users, both in terminal sessions and within PB, is "cannot rename /<Path-to>/ ,<filename>, to /<Path-to>/<filename>,v" In other words, cvs can't delete the original cvs repository file and then change the name of the new version of the file from its temporary format to the repository format.

Some web-searching and experimentation has shown the culprit to be the read-only status of the repository file. When Windows cvs touches the file, it becomes read-only. When Mac cvs touches it, it doesn't. One can't delete or rename (or both) a read-only file on the Windows server from Mac OS X. Removing by hand the read-only status of a Windows-committed file on the server allows a Mac to commit its version.

This sounds like it's a problem with permissions across SMB to the repository.

I would try to avoid getting access to the repository via SMB; instead I'd try to set up a CVS pserver and then access the repository through that. You can get much finer grain access to projects, including granting access to projects on a per-user basis, and mailing out notifications when files are changed in the repository. Most importantly, it insulates you from any issues manipulating file permissions within the repository over SMB.

There are instructions on how to set up pserver access to a CVS repository at http://cvsbook.red-bean.com.

Ben.
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Multi-platform CVS Problem (From: John Gersh <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.