Getting the CVS working |
Site Admin
|
it depends on access method itself.
For example if you use SSH, you'd run something like the following BAT file: myinit.bat: set CVS_RSH=c:\cygwin\bin\ssh.exe cvs -d :ext:myaccount@myremotehost:/pathtocvsrepository/ init if you run cvs windows nt service, you'd access it through pserver: cvs -d :pserver:myaccount@localhost:/pathtocvsrepository/ init finally, you may create your local repository using local: cvs -d :local:/pathtocvsrepository/ init |
||||||||||||
|
|
I've seen differing explanations of accessing the CVS through SSH (there's your manual, the CVS manual, The Putty manual...) and I tried doing that with the Putty software, some of which I've used before. I never quite got that to let me init a repository but this is all on the same machine, so why use SSH? I issued the cvs init command from the command line instead.
This is really time consuming to sort out. The procedures for setting up a Workspace, Project, and CVS are dealt with separately in the manual. When you try and do it you find gaps and end up going to CVS docs from somebody else, or Putty's docs, and they all have different assumptions about what you might be trying to do. There's a lot of room for interpretation, and surely several ways to set this up but it would be a big help to have a very concrete step-by-step example to use as a reference. (another thing to do in your spare time) |
||||||||||||
|
Site Admin
|
No doubts.
But indeed there in no the only way. Some people have already had an repository set by somebody (e.g. admin) and need to be able to work with it. Some other people do set up from themselves. Anyway, once the repository has been set up, you don't need to return back to this procedure anymore. Your repository may handle as many files and as many projects as you wish (certainly while your disks allow you to). |
||||||||||||
|
|
After reinstalling openSSH I was able to use phpED's interface to import a project's files into the repository and then remove the project files and now I'm trying to checkout the files from the repository but there seems to be something wrong with the way CVSROOT is set or the project property setting for for repository or the way phpED is forming the cvs command. Here's log entries from a few different attempts:
There are two -d options in those cvs commands that can't be right can it? Putting the drive leter in the repository path is interpreted as a bad port number (the colon does that), but leaving it off is no good either. Substituting backslash for slash is no help. Have any suggestions? ALSO: Anybody out there using phpED with the SnapshotCM CVS? Thanks. |
||||||||||||||
|
|
FYI, if I change the project properties - CVS - method to "local" instead of using SSH, checkout works fine. phpED forms this command:
Compare that to the ones logged in previous post. Question: In the Tools-Settings-CVS tab's CVS Arguments section what determines the text that replaces "@Repository@". Question: Can the SSH method be used to access via SSH files which are in fact on the same machine? I thought so, and would like to do so as a test. I suppose I could setup a repository on my laptop and try to access that via SSH. Ultimately, I'd like to have PHPed on the laptop access a repository via SSH but I'm not ready to buy a second yet. |
||||||||||||||
|
Site Admin
|
CVS has some problems when runs on Windows platform.
Look, if you have a repository on your D: disk, you can't specify your repository as D:\yourpath\ because of ":" which is used as a delimiter and in this case CVS treats letter "D" as a port value. If you omit D: and set "youpath" only, cvs would accept the argument but would search for repository on the default disk which is the disk where you have Windows installed. Also, you should not type "" in the directory name, use "/" instead. BTW, if you have openssh installed under your Windows and have sshd daemon running, you probably have CYGWIN. In this case you can easily emulate linux environment and have CVS from CYGWIN running on the server part. I mean that when you run ssh session with SSHD service, the service itself will run CVS from CYGWIN. Don't forget that phped should run its own cvs.exe on the client side. Also, in case of CYGWIN you can access your disk D as /cygdrive/d/ for example. Don't forget about symlinks, they are working too... |
||||||||||||
|
|
Using cygwin to avoid the colon and other Windows conventions is a real good idea. For now I'm just going to use the local access method but your suggestion ought to work. I'll try it.
|
||||||||||||
|
Site Admin
|
if not cygwin, what else ssh do (did) you use ?
putty/plink ? I was unable to run plink with cvs because it adds \r and cvs fails to parse incoming stream. |
||||||||||||
|
Getting the CVS working |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by