Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

cvs update -j with perl cvs module

by david2008 (Scribe)
on Aug 29, 2010 at 08:05 UTC ( #857893=perlquestion: print w/replies, xml ) Need Help??
david2008 has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

I began to use the nice module cvs
I tried to find an option for cvs update -j, but did not find it.
Does anyone know how to make it with this module?
Alternatively, does anyone know another module, he worked with and makes the job ?


Replies are listed 'Best First'.
Re: cvs update -j with perl cvs module
by Khen1950fx (Canon) on Aug 29, 2010 at 10:32 UTC
    Cvs::Simple might work better for you. For update, I tried
    #!/usr/bin/perl use strict; use warnings; use Cvs::Simple; my ($cvs) = Cvs::Simple->new(); my $old = '/cvs-test'; my $new = '/cvs-test2'; $cvs->merge($old, $new, 'new_filename'); #my $result = $cvs->update();
    Note $cvs->update(): should probably be used with callbacks.
Re: cvs update -j with perl cvs module
by toolic (Bishop) on Aug 30, 2010 at 02:18 UTC
    If you can't get a module to do what you want, you could just use system:
    system 'cvs update -j' and die "Error: $?";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://857893]
Front-paged by Arunbear
NodeReaper hides the Vote Fairy's wand

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-05-24 08:37 GMT
Find Nodes?
    Voting Booth?