info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to enforce user enter log message before run commit command ?


From: George xu
Subject: How to enforce user enter log message before run commit command ?
Date: Fri, 25 Jan 2002 13:54:20 +0800

Hi :
  I use these script to check log msg before commit.
but "print" can't return to wincvs.
 
#!/usr/local/bin/perl
 
chop($msg = <>);
 
if ($msg eq "no message") {
#no message is wincvs default log message
print "you must enter log message!\n";
 
exit 1;
} else {
print "your log msg is:$msg .\n";
exit 0;
}
 
In wincvs console ,I get "cvs commit: warning: unrecognized response `your log msg is:test  .
' from cvs server" ,why ? I want to print "your log msg is:test" when log exist. and if log is empty then print "you must enter log message" .
But Now I get "cvs commit: warning: unrecognized response " .
 
How to do?Thank you!
 
These are wincvs console message:
 
cvs commit -m "test " SETUP.INI (in directory C:\test)
cvs commit: warning: unrecognized response `your log msg is:test  .
' from cvs server
Checking in SETUP.INI;
d:/cvs/test/SETUP.INI,v  <--  SETUP.INI
new revision: 1.75; previous revision: 1.74
done
 
*****CVS exited normally with code 0*****

reply via email to

[Prev in Thread] Current Thread [Next in Thread]