• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

verifymsg issue : doesnt show the message

 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to verify if the log message, has a valid bug number.

Format is MV-XXX where XXX are digits.
I am performing checkins, and I get
"
The server reported an error while performing the "cvs commit" command.
buildlab_new: cvs [commit aborted]: Message verification failed
"


My verifymsg uses the following script.

#!/usr/bin/perl

my $numArgs = $#ARGV + 1;

my $result = `cat $ARGV[0] | grep '[M][V][-][0-9][0-9][0-9][0-9]*' | wc -l`;
if ($result > 0)
{
exit(0);
}
else
{
print "no valid comment. It does not include a correct bugID which is of the form MV-XYZ where XYZ are number digits";
exit(-11);
}
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34851
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aruneesh,
While this question pertains to CVS, I think it is more of a UNIX question.

It boils down to what the following command returns.
cat $ARGV[0] | grep '[M][V][-][0-9][0-9][0-9][0-9]*' | wc -l

Try echoing "cat $ARGV[0]" and then running the command with that String. Then you can start deleting things from the grep statement to see what stops making it return. For example, grep 'test'
 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the issue. The problem is with how Eclipse shows the message. It is not showing the correct message.

Using command line from any box, it works fine, and I get to see the error (warning message) as intended.

I think it would be answered by someone using CVS and Eclipse.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34851
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aruneesh,
Now I understand. You are asking how to send a message from the CVS client to Eclipse. I know a couple people who have tried to do that with no success. I'll be watching this thread to see who else knows!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic