Zend CVS
Zend Studio is my IDE of choice for PHP. It is super stable, has great background checking, remote debugging, and it runs great on OS X to boot. One of the reasons I pushed for the full version at work and not just the personal edition was because of cvs integration. Some of my coworkers are hesitant to access a command line so a cvs client in the IDE is a Good Thing.
For those of you who aren’t familiar with Zend, you can browse your entire filesystem in a pane, or you can arrange files as you see fit in a project pane. Nothing new here, most IDEs give you that kind of flexibility.
The frustrating part, which I’ve been working up to, is that you can not use cvs commands on files that aren’t in a project. This isn’t intuitive at all, and even right after you use Zend to check out a module, the menu options to perform cvs commands on the recently checked out files are greyed out. You have to then take all those files you just checked out and add them to a project before Zend’s siloed cvs will work on them… Took me a while to find that out.
Helmut Kemper Said,
October 13, 2005 @ 4:52 pm
I have many problems with cvs dialog in zend studio (mac os x).
Can help-me?
Thanks,
Kemper
tor Said,
October 14, 2005 @ 9:16 am
Sure, I can try. What exactly is the problem?
Nick Said,
December 21, 2005 @ 2:16 pm
Thank you. I was stuck on the project part too.
mark Said,
February 23, 2006 @ 8:16 am
Hey Guys, i hope you can help me with the similar problem.
i tried checking out and it was successful but i also encounter the same greyed out cvs controls. please help. it is taking me quite some time already.
platform used is zend/windowsxp
thanks in advance
tor Said,
February 23, 2006 @ 10:38 am
You have to add the checked out files to a new Zend project. Have you done that?
mark Said,
February 23, 2006 @ 5:39 pm
Dear Tor,
Here’s the simulation.
1. File > Open Project (then it opens the new project with
one sample php file in it) coming from a different folder
2. revised the sample php file
3. tools > checkout
CVS Root = :local:c:/src/
Module name = test
Working directory = C:\src\
CVS output states” C:\Program Files\Zend\bin\cvs.exe -d :local:c:/src/ checkout test
cvs.exe checkout: Updating test
cvs command finished with exit code 0″
4. then it created 3 files named entries, repository, root under c: \src\test\CVS\
5. i still have greyed out CVS functions.
TOR, your help is very valuable to me. Thanks in advance.
NOTES:
1. i did these simulations using the cederqvist cvs manual.
2. i just want to start using the CVS DIFF on my localhost under windowsxp (reason is to compare revisions done by one person (me) to understand ZEND CVS before working on a new set of scripts in a live site).
3. ZEND help function on CVS portion is limited.
4. please help step-by-step if possible
5. is it something to do w cvs root name/module name?
tor Said,
February 24, 2006 @ 10:10 am
Alright, I’m not sure to the rest of your setup but…
If you’re looking to run cvs diff on files locally, you must have a CVS server somewhere running locally. I can’t really help you with that, as I am inexperienced w/ setting up the server. But judging that your cvsroot and target directories are the same, I’m guessing you don’t have that working correctly.
An alternative to running cvs diff if you just want to diff two different files is to install something like cygwin, which has a bunch of unix utilities. One of those utilities is the diff command, though it’s not nearly as easy to use as the Zend CVS diff. Really though, they’re apples to oranges.
So, assuming you’ve now gone and set up a cvs server correctly and have your bases covered on having a server working, I
think I understand what you’re doing wrong. You’re opening a project and then running cvs checkout. Checkout the files you’re looking to use, *and then* be sure to “Add to Project” the files in the directory you just checked out. Henceforth, you open that project and can use all cvs commands from the project tab on the File Manager pane on the left.
Bertrand Said,
March 28, 2006 @ 1:46 pm
Hello,
I have some difficulty to work with zend and cvs.
so i have 2 directorys. “toto2″ is my cvs root and “toto my working dir. the both directory are in my zend project.
When i use checkout (i can use only this) I have
CVSROOT: No such file or directory
cvs command finished with exit code 1.
Can you help me ?
Bertrand
tor Said,
March 28, 2006 @ 2:40 pm
Bertrand, do you have a cvs server process set up? It sounds like you need to get that going first.
A CVSROOT typically looks something like :pserver:username@example.com:/pathtocvsroot
vincent Said,
August 15, 2006 @ 3:42 am
how to setup a cvs server ?