aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes verifymsg issue : doesnt show the message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "verifymsg issue : doesnt show the message" Watch "verifymsg issue : doesnt show the message" New topic
Author

verifymsg issue : doesnt show the message

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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'


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: verifymsg issue : doesnt show the message