https://wiki.inkscape.org/wiki/api.php?action=feedcontributions&user=QqqAje&feedformat=atomInkscape Wiki - User contributions [en]2024-03-29T13:40:16ZUser contributionsMediaWiki 1.36.1https://wiki.inkscape.org/wiki/index.php?title=WorkingWithCVS&diff=14223WorkingWithCVS2007-04-17T19:36:43Z<p>QqqAje: </p>
<hr />
<div>='''This page is obsolete please see [[WorkingWithSVN]] for current version control procedure'''=<br />
<br />
== CVS Basics ==<br />
<br />
This node discusses the basics of using CVS. Also see [http://sourceforge.net/cvs/?group_id=93438 Checking out CVS modules on sourceforge.net]<br />
<br />
For complete on information CVS, including the basics, see:<br />
* The [http://cvsbook.red-bean.com/ Red Bean Book]<br />
* [http://www.astro.umd.edu/~teuben/miriad/cvs.html CVS for BIMA]<br />
<br />
For information on more advanced usage, see:<br />
* [[WorkingWithCVSBranches]] - making branches and merging between them<br />
<br />
=== Concepts ===<br />
<br />
==== The Repository ====<br />
<br />
CVS stores source code in a shared '''repository''' (in our case on Sourceforge's server). The repository contains all past and present versions of the code, and is shared by everyone.<br />
<br />
==== Your Working Copy ====<br />
<br />
To work with the source code, CVS requires you to '''check out''' a ''working copy''. This copy is private, so you can make and test any changes you like without disturbing anyone else.<br />
<br />
If you have '''write access''' to the repository, when you are finished making your changes, you may '''commit''' your changes to the shared repository, making them available to everyone.<br />
<br />
Alternately, you may generate a file containing the changes you made (a ''diff''), and send it to a developer with write access to be incorporated.<br />
<br />
You can check out as many working copies as you want; they take up only your own disk space, and they are completely independent of each other.<br />
<br />
If you no longer need a working copy, you may simply delete it.<br />
<br />
=== Getting Started ===<br />
<br />
==== Setting Up ====<br />
<br />
===== Default Settings =====<br />
Create a .cvsrc file in your home directory with the following contents:<br />
<br />
cvs -z3 -q<br />
diff -uNp<br />
update -Pd<br />
remove -f<br />
<br />
===== Anonymous Access =====<br />
<br />
Most developers will initially only have access to a read-only copy of the repository. You will need to run the following command once:<br />
<br />
'''cvs -z3 -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/inkscape login'''<br />
<br />
And then simply press enter when asked for a password (the password is blank).<br />
<br />
Note that this read-only copy is normally ~24 hours behind the newest changes.<br />
<br />
===== Write Access =====<br />
<br />
Developers who have been given write access (access to the master repository) will need to have ssh installed, and set their [[CVS_RSH]] environment variable to '''ssh'''.<br />
<br />
To avoid being prompted for your Sourceforge password every time you run a CVS command on the master repository, you will probably want [http://sourceforge.net/docman/display_doc.php?docid=761</div>QqqAje