pc_newbies
March 15th, 2005, 06:21 AM
anyone know how to setup and use CVS under windows?
thanks
thanks
|
Click to See Complete Forum and Search --> : Cvs pc_newbies March 15th, 2005, 06:21 AM anyone know how to setup and use CVS under windows? thanks Latem March 15th, 2005, 09:09 AM I suggest http://www.tortoisecvs.org/ If you just want to create your own local repository to work alone on, then you can do it as described here: http://www.tortoisecvs.org/faq.shtml#cvsinit If you want to set up a new shared repository, you will need a CVS server, and I recommend http://www.cvsnt.org/ . Latem pc_newbies March 16th, 2005, 03:22 AM I was told to type the following to setup a CVS "setenv CVS_RSH ssh setenv CVSROOT :ext: pc_newbies@project.cs.edu.au:/home/projects/pc307/pc307a" My question is ":ext: pc_newbies@project.cs.edu.au:/home/projects/pc307/pc307a" is this the CVS directory name that is going to be created or has it already created?or Do i need to create these folders (projects/pc307/pc307a) first? Coz I can't find them anywhere. Thanks Latem March 16th, 2005, 09:12 AM "setenv CVS_RSH ssh setenv CVSROOT First, these are unix/linux shell commands, they are not recognised by Windows command prompt. so you've been told this by someone who thinks you are using linux. ":ext: pc_newbies@project.cs.edu.au:/home/projects/pc307/pc307a This is a complete CVS CVSROOT command line. There are different parts, separated by ":". ext means taht you want to use secure shell for your communication with the CVS server. That's why you needed the line above for setting the environment variable for ssh. pc_newbies refers to ur user name at the CVS server. projects.cs.edu.au is the server /home/projects/pc307/pc307a is the repository folder on the cvs server. You also need a name for the module that you want to work with. My guess it would be pc307a. The path /home/projects/pc307/pc307a is a path on the cvs server. On your local computer, when you check out a module, only a folder pc307a would be created automatically (just like you transfered it from the server using ftp for example). By the looks of it you are trying to use a cvs repository on a remote server, and not set up a repository on your local system. Please confirm this if you can. If this is true (which I think it is ), than it's easy. Just use tortoisecvs from the link I gave you. Also make sure you read their guide, it should be helpful. So you'll just right click in the folder where you want your code to go, and select CVS Cheskout. You can just put that whole command line that you have in the CVSROOT line, or you can manually input the different parts. But don't forget you need the module name as well. Good luck, Latem pc_newbies March 17th, 2005, 04:01 AM yes I'm trying to use a cvs repository on a remote server, and not set up a repository on your local system. Why's that easy? Unfortunately I'm working from uni Pcs here and no tortoisecvs and not allowed to dl it. I've given a set of information, can I post it here to get some comment? So with "/home/projects/pc307/pc307a is the repository folder on the cvs server. " Do I need to create the folder first or just type it in and it'll be created for me? Thanks a lot pc_newbies March 18th, 2005, 05:15 AM Hi again. Ok Finally I've set up my cvs and I also have created a shared folder named "project" under /home/projects/pc307/pc307a (I set up use a cvs repository on a remote server, and not on my local system) Say I want to edit a file that at the moment not inside repository yet, how do I put it there? Using the cvs add command? What're the steps of getting the file from repository, edit it, then put it back into repository Thanks Latem March 19th, 2005, 04:07 PM If yuo want to add a file to repository then you do add then commit. https://www.cvshome.org/docs/manual/cvs-1.11.19/cvs_7.html If the file is already in the repository, then: 1. you checkout the file 2. you work on it. 3. You commit it. You need to checkout the file only once. Then from there just work on it and commit as necessary. The cvs manual on that page is rpetty good too. Latem codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |