[cvsnt] Using loginfo

paul.s.barriscale at accenture.com paul.s.barriscale at accenture.com
Tue Sep 26 11:32:34 BST 2006

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

Hi all,
I'm trying to hook up a Ruby script to fire on post-commit using the loginfo file. The line in the CVS loginfo file is as follows
# Ruby script to generate an RSS feed for commits to Underwriting module
Underwriting/* D:/development/test-workspace/scripts/commit2rss.rb %{}
I'm stumped as to why I'm getting the following error on commit. Am I passing the parameter list in correctly at the end using %{}? I've included the some verbose output from cvs.
  -> ParseInfo(D:/development/test-cvs-respo/CVSROOT/loginfo, Underwriting/JavaSource, ALL)
  -> loginfo:Parse_Info(D:/development/test-cvs-respo/Underwriting/JavaSource,D:/development/test-workspace/scripts/commit2rss.rb %{} )
  -> run_popen(D:/development/test-workspace/scripts/commit2rss.rb "Underwriting/JavaSource" )
D:/development/test-workspace/scripts/commit2rss.rb:44:in `gets': Bad file descriptor (Errno::EBADF)
        from D:/development/test-workspace/scripts/commit2rss.rb:44
Although this is not a ruby mailing list i've included the block of ruby code for completeness.
Line 44 refers to this block of code
while line = STDIN.gets
  if line =~ /^[A-Z].*:\s*$/
    desc << "<p /><b>" << line << "</b>"
    desc << line
  desc << "<br />"
I'd appreciate any help on this.

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook