Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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 ?


Comment on cvs update -j with perl cvs module
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
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-11-28 23:48 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls