Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

CVS and perl

by toadi (Chaplain)
on Apr 12, 2001 at 12:54 UTC ( #71992=perlmeditation: print w/ replies, xml ) Need Help??

Hello,

I'm thinking about implementing CVS at work. Most programming happens in perl and some in C.

We have:

alpha environment: just hacking away, testing, ...
beta environment: should have working version for testing
twilight zone: working version ready to be taken into the production environment.

We don't use cvs here but I want implement it here. Are there any good papers on the subject(or your opinions). Is there any documentation on CVS with perl-projects.

How should I implement it with the existing environments? Need some opinions on the matter...


--
My opinions may have changed,
but not the fact that I am right

Comment on CVS and perl
Re: CVS and perl
by arhuman (Vicar) on Apr 12, 2001 at 13:12 UTC
    Maybe I didn't understand your worries,
    But using CVS with Perl code is just as using CVS with any other code
    (At the office we use it for Perl, HTMl and PHP alltogether in the same repository (and even the same module soemetimes)...)

    So the usual docs/tutorials about CVS would do fine.
    (a good start could be this site)

    And to answer your question :
    How should I implement it with the existing environments ?

    I'd need more informations : what do you want to implement what are YOUR problems, constraints...

    "Only Bad Coders Badly Code In Perl" (OBC2IP)
      For the moment we have a server and a db for alpha development. Everyone can develop on it and everyone can acces anyones files...

      Then we got the production server with db.

      For the moment we are setting up a beta test-environment.
      My question is where does CVS fit in? For the moment I edit on the alpha server. When it works I drop it in production(soon step in between:beta). Do I need to keep editing on the alpha server and push it in the cvs?
      Don't really understand how I can implement it. Got the rough idea on how and what it does... But with actual using it, I have no clue...


      --
      My opinions may have changed,
      but not the fact that I am right


        For the moment we have a server and a db for alpha development.
        Everyone can develop on it and everyone can acces anyones files...
        Then we got the production server with db.


        As you seem to NOT have strong right-checking policy, here is my suggestion :

        Put the CVS server on the test server, use an 'autoexport feature' (triggered by the loginfo file)
        to maintain an exact working copy of your repository on your test server.
        I'd suggest to make modules based on directories. (to benefit of the 'autoexport')

        When everything is ok, all you'll have to do, is to 'scp' (you read well ! not 'ftp' !) the files to the prod server...

        "Only Bad Coders Badly Code In Perl" (OBC2IP)
      A little nit...

      Using CVS with Perl code is not just as using CVS with any other code. At least not when looking at the whole configuration management picture. Most CM models assume C-style code compilation, so a lot of general documentation on version control tools are going to assume you need to muck about with source and object code and libs and executables. The Perl way is simpler, of course, but I have seen CM's get tripped up trying to apply the traditional logic without making adjustments. Since the poster is messing with both Perl and C, he should probably be aware of this.
        However note that a Perl project which is using something like Template Toolkit, then some thinking needs to go on about combining checkins with builds...

        OK, not as much since the build time is likely to be reasonably quick, but it does arise.

Re: CVS and perl
by lachoy (Parson) on Apr 12, 2001 at 17:36 UTC
Re: CVS and perl
by clemburg (Curate) on Apr 12, 2001 at 17:41 UTC

    Open Source Development with CVS by Karl Fogel is the book you want to read and to give to your colleagues. Excellent introduction to CVS and good background for development in general.

    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com

      Note that portions of this book are available online, as the CVS Book that ichimunki mentions, below.

      -- Frag.

      Note that the first edition has been remaindered, and a second edition has just come out.

      xoxo,
      Andy
      --
      <megaphone> Throw down the gun and tiara and come out of the float! </megaphone>

(ichimunki) Re: CVS and perl
by ichimunki (Priest) on Apr 12, 2001 at 18:02 UTC
    I've found this to be a good resource: CVS Book.

    I use CVS for all kinds of stuff, not just coding (system configurations, home directories, etc). I would set up one server to do CVS for all projects at all stages. Maybe once a project gets to a certain point you can strip the history by doing a release and then checking that in as a new project.

      Maybe once a project gets to a certain point you can strip the history by doing a release and then checking that in as a new project.

      That's basically what we do where I work. Although we typically don't commit the entire checkout to the new module - we build it up a few files at a time so we have an opportunity to clean things up as the new module grows.

      If nothing else, having a single CVS repository makes keeping track of your CVSROOT easier. This gets to be a big thing when you have 10-12 people who aren't all CVS or even UNIX literate to support. I wouldn't recommend shared CVS logins, though. Just define a cvsusers group and sgid the repository directories to it. That way you'll still be able to see what user just commited a particular bit of brain damage.

Re: CVS and perl
by Anonymous Monk on Apr 12, 2001 at 19:09 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://71992]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-04-20 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls