• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

verifymsg issue : doesnt show the message

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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);
}
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic