Re: Getting Started with CVS in Xcode
Re: Getting Started with CVS in Xcode
- Subject: Re: Getting Started with CVS in Xcode
- From: p3consulting <email@hidden>
- Date: Sat, 15 Nov 2003 09:33:02 +0100
I am new to CVS and have read a bunch of things about it. I am however
having some difficulty in getting it to work with Xcode, and would
appreciate a pointer in the right direction.
Currently, my Xcode projects are set to handle SCM as default.
I have created a root cvs: /usr/local/cvsroot directory, gave myself
wheel permission, and did a cvs init. All the cvs file appear to be in
order in this directory.
I then set up the bash .profile to contain the cvs environment.
Next, I went to my projects folder and added the files to the cvs as a
new project:
eg "cvs import -m "myProj" cocoa/myProj local start"
This appeared to import the project to the cvs, and the MyProj appears
in /usr/local/cvsroot/cocoa/myProj
oops this means myProj is a subproject of project cocoa
you should have /usr/local/cvsroot/myProj
if not you will have to checkout the entire cocoa directory, it's
probably not what you want to do
if you have a lot of other projects in directory cocoa
you sould have done
cd cocoa
cvs import -m "myProj" myProj local start
By how do I get Xcode to see this? For example, when editing one of my
class files in MyProj via xcode, nothing ever seems to happen to the
repository. I apologize if this is all a bit basic, but I just need a
kick in the right direction.
You have to check out your project from the CVS repository
In terminal
cd cocoa
(folder containing your project folder)
mv myProj myProj.bak
cvs checkout myProj
Then cvs will put a CVS directory in every folder checked out and
Xcode/PB will recognized
your project directory as one handled by CVS.
I also recommend to change your project settings so that the build
directory is put outside of
the project's folder hierarchy to avoid any problem when executing CVS
commit,
I never have been able to make .cvsignore and/or CVSROOT/cvsignore to
really ignore the build folder which is causing trouble
(anybody a hint for this one ?)
Be careful also that in case of errors during comit CVS integration
will be turned off and you will have to turn it on back by hand
(get info on the top project entry in the group and files list).
Don't forget to
cp /Developer/Tools/cvswrappers /usr/local/cvsroot/CVSROOT/cvswrappers
NB
CVS Pocket Reference by Gregor N. Pundy, O'Reilly
is a good resource to have at hand.
Pascal Pochet
P3 Consulting
email@hidden
http://www.p3-consulting.net
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.