Re: Simple Xcode CVS question
Re: Simple Xcode CVS question
- Subject: Re: Simple Xcode CVS question
- From: Rob Lockstone <email@hidden>
- Date: Thu, 1 Jan 2004 22:47:17 -0800
It doesn't sound to me like you have done anything wrong. Nor does it
sound like anything is broken (yet).
A few items to keep in mind:
1. Which version of Xcode are you using? Xcode 1.1 was just recently
released, and if you didn't download all the segments (21 or 22 I
think?) from the ADC web site and do a nice, clean install, then all
you really got were updates to the IDE itself. Having said that, I
don't recall if Apple made any changes to the SCM support between Xcode
1.0 and 1.1. Or, if they did, if those changes are present in the IDE
Update, or only available via the full 1.1 Tools installation. You'd
have to read the release notes for both the Update and the Tools
install, also available from the ADC web site, to know for sure.
2. This probably doesn't apply in your particular case since you're
starting out with a brand new repository and new files, but if Xcode
encounters any errors when attempting to perform an SCM operation, it
pretty much just quietly dies in the background. For example, if one of
the files you're working with has a sticky tag, that's it for Xcode's
CVS. It won't be able to do anything and will just sever the connection
with the repository. The only indication you might get is that the
little disk icon in the Xcode interface will change from a nondescript
gray disk to a yellow disk with a red line through it. You need to
close and re-open the project. Fwiw, I've filed a bug on this
requesting that Xcode should be more robust and also explicitly tell
the user what happened so they can fix it either via Xcode itself, or
at least from the command line.
3. If you haven't made any changes to any files, then the SCM window
won't show anything at all. It only shows files when what you have
locally is somehow different from what is in the repository.
4. Adding a file to the repository won't do anything if the file is
already present in the repository. "Add to Repository" should be grayed
out when it won't do anything, but it's not, which is probably a bug.
Judging from what you said, it sounds like all your files are already
in your repository. You should try modifying one of your files and
saving the modification. At that point, Xcode should tell you, via an
"M" in the SCM column of your window, that the file has been locally
modified. If it doesn't, try doing a Get Info on the file and choosing
the SCM tab. In my experience, this is more reliable than using the
"Refresh Status" command, although that does sometimes work as well.
Once it shows the "M", you can highlight the file in the project window
and choose "Commit Changes..." from the SCM menu.
I hope that helps. You may have already done all of the above, but it's
not clear to me from your email that you did. So, apologies if the
above is of no help to you.
Rob
On Jan 1, 2004, at 19:10, Robert Love wrote:
I'm trying to follow the advice I find in Xcode documentation for CVS
in the developer tools section. I've created the repository, set my
environment variables and followed the advice about importing a
directory into CVS, moving the directory and checking out the project
into a directory of the old name. All this was from the command line.
There is no mention of Xcode or Project builder at all in the
documentation so it is a little confusing. I launch Xcode and use the
SCM menu item to launch Show SCM panel. I also use the Refresh menu
command. The panel stays blank. It has no entries. What should it
show?
If I select a source file in the project and call up the Info/SCM pane
there is information about 2 versions of the file, one is 1.1 and the
other 1.1.1.1 with the "vendor tag". So I believe the files are truly
in the repository. Using the SCM/Add to Repository menu item has no
effect.
What explicitly am I doing wrong? What should Xcode's SCM Status pane
show? All help appreciated.
_______________________________________________
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.