Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: CVS Module examples

by wjw (Priest)
on Nov 17, 2014 at 23:34 UTC ( [id://1107500]=note: print w/replies, xml ) Need Help??


in reply to CVS Module examples

The docs on Cvs actually show the usage pretty clearly. I think that you are not seeing that the return of your $cvs is an object, not a scalar value.

Try using Dumper to output $cvs, then I suspect your understanding of what $cvs actually is will help you solve your problem.

...the majority is always wrong, and always the last to know about it...

Insanity: Doing the same thing over and over again and expecting different results...

A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact

Replies are listed 'Best First'.
Re^2: CVS Module examples
by brian42miller (Sexton) on Nov 18, 2014 at 15:00 UTC
    I did get, from the cpan documentation, that the result from the $cvs->status command was an object, but the returned object was of type Cvs::Result::Base which does not have the method status.

    However using Dumper (good advice, thanks) I noticed that the 'pwd' field in the cvs object was not pointing to where the checked out view was, so I changed the code from

    my $cvs = Cvs->new('workdir' => '/projects/millerb/SR/vhdl' ,'cvsroot'=>':pserver:millerb@172.20.175.10:/hwcvs' ,'password' => '********' ) or die $Cvs::ERROR; TO my $cvs = Cvs->new('/projects/millerb/SR/vhdl' ,'cvsroot'=>':pserver:millerb@172.20.175.10:/hwcvs' ) or die $Cvs::ERROR;
    Which seems to have resolved the issue. Thanks Brian
Re^2: CVS Module examples
by brian42miller (Sexton) on Nov 18, 2014 at 20:01 UTC
    Is there a reason why the Cvs or Cvs::Simple module does not have a log method? (Cvs documentation has something but it doesn't seem to work).

    I wanted to use the Cvs module because I believe that it uses IPC to communicate with the pserver. I figured that would be more efficient than using my own system('cvs....') commands. Does that sound reasonable?

    Brian

      Is there a reason why the Cvs or Cvs::Simple module does not have a log method?
      This problem was reported 9 years ago, and there have been no updates: https://rt.cpan.org/Public/Bug/Display.html?id=15831

      I'd say support for this module (Cvs) has been abandoned by the author. If you want that functionality, you'll probably need to implement it yourself.

      Regarding the other module, Cvs::Simple, by a different author, you could try to contact the author for support.

      This is a darn good question! The link to Cvs::Result::Log goes nowhere on CPAN, and there does not seem to be any reference to why the link is there but it's target is not.

      I am not familiar with the guts of the Cvs module. I used it for a while a long time ago before I switched to git.

      I am sorry that I don't have anything more to offer....

      ...the majority is always wrong, and always the last to know about it...

      Insanity: Doing the same thing over and over again and expecting different results...

      A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact

        No problem. Thanks for the help.

        Brian

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1107500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-03-29 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found