2002 05 Cvs Use the Latest Software Direct from the Developers


KNOW HOW
CVS: The Concurrent Versions System
LATEST AND
GREATEST
oftware development under Linux can be a real If you re only just starting out in program
If you re interested
joy, thanks to the free movement of source development you may only have come across CVS very
in helping to develop Scode. Anyone can get involved in moving a briefly, when exploring the very latest version of a piece
project forward and you may not even need to have of software, that cures a bug or adds a much-needed
Open Source
all that much programming experience to make a feature that s just not present in the stable version.
software then difference. In some cases you may not even have to With that must come a warning: you must always
code at all to get involved; what some projects remember that this is an unstable version and to treat it
getting to know the
desperately need are graphics designers and people as such. By using it, you should also remember your
Concurrent Versions to help write documentation. contribution to the project  bug reports.
To get involved, you first need access to the project For the most part you will be using CVS in a
System is the logical
and for that you need access to the source code. Part Server/Client mode, most likely via the Internet. CVS
first step. Colin of the beauty of Open Source programming is the is a command line utility, though there are some
opportunity it gives you to look at other people s graphical front-ends, which we will round the article
Murphy shows us
work and, if you feel up to it, to change it, possibly up with in a moment.
how to get started even to improve on it. What is even more useful is Firstly, do you have cvs on your system? You can
the chance to see the additions that other people quickly check this with:
with CVS
have made to a code base for a project, to see how it
[colin@desk]$ cvs   version
grows and changes over time.
Software bugs which should return some details, otherwise you will
Developing software and developing bugs in that have to find your disc set and install it. The current
software go hand in hand, and bugs are bound to version is 1.11.1p1.
appear in software development. When projects are You will need to know where the CVS repository is
open to a wide-ranging  team of developers, the that you want to access  the project we re going to
danger that bugs will be introduced is increased. pick is the CVS project itself, which seems only
More importantly, the nature of these bugs may not fitting. This lives at cvs.cvshome.org in the /cvs
even be noticed until much further along the project s directory. It is to here that we need to login, usually
development cycle. Such bugs may not even be using some sort of password server for cover. So:
caused by bad or plain wrong programming  it s
[colin@desk]$ cvs  d
more likely that a previously written piece of code
:pserver:guest@cvs.cvshome.org:/cvs login
proves not to tie up well enough to the project now.
So how do program developers get around this
major problem? What is needed is to keep copies of will give us access, once we have entered the
all of the old versions of the program development so password, which will be prompted for, usually you
that you have something to refer back to if and when just need to hit the Enter key. Almost always,
something appears to be going wrong. anonymous access is granted for people to download
Seeing as though a change to a piece of code the project s code, but the exact details of this can
correcting an error might be only a few bytes long, vary. Often the login will be anonymous@ (instead of
keeping a back-up of all previous pieces of code would guest@, as in the example above) and the password
result in a huge archive of very similar data. What is will be blank, as above.
needed is a system that records just the changes made Depending on how often you are planning to take
to the code base. Thankfully, that s why we have CVS, code from this CVS tree, you may want to consider
or the Concurrent Version System, which maintains a setting the Environmental variable $CVSROOT for
central repository for people to access and modify. that tree, if you are only going to take code
50
LINUX MAGAZINE Issue 20 " 2002
KNOW HOW
Accessing
infrequently, then typing it in each time is not too
CVS trees
great a burden. You need to save the parameter that
with LinCVS
is passed by the   d switch, in this case the
:pserver:guest@cvs.cvshome.org:/cvs.
To allow you to download the project, which is
called ccsv in this case, you use the checkout
command
[colin@desk]$ cvs  d U
:pserver:guest@cvs.cvshome.org:/cvs U
checkout ccvs
If all is going well you will then get to see a listing of like add, remove and commit, diff against the
all the files that are now being downloaded, which repository or view of the log messages in list form, all
get stored in a directory with the project name in the of which is of much more use when you are actually
directory you ran the cvs command from, in this case contributing to the development of the project.
/home/colin/ccvs. After selection of a start directory, the program
enables you to automatically find all CVS projects
[colin@desk]$ cd ccvs
contained in sub directories using the  Project-
[colin@desk]$ ls
Explorer , and enables the user to add them and
displays the corresponding tree on the desktop. All
will give me a listing of all the files and subsequent features can be accessed by pull-down menus or a
directories in the  cvs project. simple click on the right mouse button and may be
From here on, you are at the mercy of the project applied to both single and multiple files or
developers. Hopefully, if it is a good project, you will complete trees.
find that you now have some documentation that
Cervisia 
someone new to the project can read and with a
clever tree
understand. The important files to look out for are
display
README and INSTALL. If there are not enough clues
in these two files to take you further then you may be
looking at a project that has yet to fully develop its
documentation, either because it is small, or that no
one wants to do the job. You still have the option of
contacting the project developers by email, to ask for
advice and, if you are let down here, then you at least
know that the project isn t worth bothering with.
Sometimes, you may find that the project
homepage has the option to allow you to  browse
the cvs tree. If this is the case, it can sometimes be
better to download some of the documentation files
from this browsing session rather than download the
whole tree only to find out that there is no Cervisia
documentation, or that it is in German, or some such. Cervisia is another graphical front-end for CVS client-
side actions, which has some really neat features like
Graphical front-ends retrieving directories and single files and examining
Graphical front-ends are available for CVS, to take their status and a graphical diff utility which
away some of this command line misery. highlights the differences between different revisions
Info
in the same repository.
CVS homepage:
LinCVS
http://www.cvshome.org/
LinCVS is a German project, but thankfully with most Getting involved
The CVS homepage also
pages also in English. It acts as a reliable graphical At best, this is supposed to be a two way process.
contains a very good
front-end for the CVS-client supporting both CVS Contributions are a start, but you may want to help
manual
versions 1.9 and 1.10, perhaps even older ones. It further, with the documentation or, if you are up to
LinCVS: http://www.
enables the user to check out, or download, a it, the coding. CVS is used for uploading
lincvs.org/
module from the CVS tree and import modules to the contributions and when you get to know a project s
Cervisia: http://cervisia.
repository if you have been granted access rights. You development team well enough, they might even
sourceforge.net/
can also update and retrieve the status of a working give you your own account and password, but more
directory or single files and use common operations of that will have to be left for another article.
51
Issue 20 " 2002 LINUX MAGAZINE


Wyszukiwarka

Podobne podstrony:
2002 05 Networking the First Guide to Connecting Machines
2002 05 Podkarpackie
2002 04 Gphoto Make the Most of Your Digital Cameras
3E D&D Adventure 05 or 07 The Lost Temple of Pelor
05 Song About the Moon
How to use the loader
2002 05 Wielofunkcyjny, komputerowy pilot RC5
2002 05 Szkoła konstruktorów klasa II
2002 05 Xinetd Control What Comes in and Goes Out of Your Computer
Guano Apes We Use The Pain
05 Diamonds On The Soles Of Her Shoes
2002 05 37
2002 05 Migration Finding Controls to Tailor Your System
2002 05 Lubelskie zad odp
2002 05 Gigantyczny zegar

więcej podobnych podstron