Home | Press | Mailing List | Documentation | Screenshots | People | SourceForge | Downloads |
If you have only read access to the repository:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/filmgimp login cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/filmgimp co filmgimpIf you have commit access (read/write) to the repository:
export CVS_RSH=ssh cvs -z3 -d:ext:developername@cvs.sourceforge.net:/cvsroot/filmgimp co filmgimpThis is hopefully the first and last time you need to do this, since from then on you should be able to use the remainder of the commands. If you are using ssh, I would recommend setting the CVS_RSH environment variable in your .profile since you will continue to use it for all the other commands.
Updating to the latest version can be done by cd'ing to the top level directory and running:
cvs updateYou can similarly update individual file:
cvs update configure.inor update to a particular release or version, e.g.:
cvs update -t rel-0-8 #will restore to the release tagged as "rel-0-8" cvs update -D 2002-11-01 #will restore to the state on 11/01/2002When updates happen it will produce a list of files each with a letter before it, the letters mean:
Always before committing anything back into the repository run a:
cvs update
This ensures that you have the latest version of the code and are not going to overwrite somebody elses work.
Next run a:cvs commit filename(s)
This will check the specified filenames into the repository, you will be prompted for a log message for the files.
Since all the files are being checked in together with the same message, try to group the files according to the patch you are making. Please attempt to make a meaningful log message, since this is probably going to be the log message for the change log. The more the better.To see the differences between your version of the files and the files in the repository do:
cvs diff filenameTo see the check-in log for the file do:
cvs log filenameBoth these commands dont require the filename, in which case they will work recusively on the repository.
If you realised that the fixes you have made were a terrible mistake (or worse somebody elses terrible mistake), you will have to go through the painful process of reversing out a change.
The remedy - please note that you need to be ABSOLUTELY sure you type the commands correctly or you will merely compound the problem:To add a file (or directory) to the repository do:
cvs add filenameYou will still need to run the commit to actually get the file added. When done to a directory, you will still need to do an additional cvs add to the files in the directory.
If a file is no longer required in the repository you should delete it, and then run the command:
cvs remove filenameat the next commit the file will be tagged for removal. NOTE: This does not actually remove it, it simply hides it for that release. So you can still go back to earlier releases and retrieve the file.