info-cvs
[Top][All Lists]
Advanced

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

how to access log message with verifymsg script


From: Galaad
Subject: how to access log message with verifymsg script
Date: Fri, 14 Jun 2002 17:54:26 +0200 (MEST)

Hi, 

verifymsg calls script after every commit. It works fine. But the script
cant find the log message normally saved in parameter $1. The same problem with
perl.

The funny thing about this is, that it works sometimes!?

Bye,
René

P.S.: Client/Server Architecture wincvs1.3.7.1 Beta 7 + cvs1.10



thats the content of verifymsg:

gtest /home/user/check.pl

Thats check.pl:


#!/bin/sh
if head -1 < $1 | grep '^BugId:[ ]*[0-9][0-9]*$' > /dev/null; then
    exit 0
elif head -1 < $1 | grep '^BugId:[ ]*none$' > /dev/null; then
    # It is okay to allow commits with 'BugId: none',
    # but do not put that text into the real log message.
    grep -v '^BugId:[ ]*none$' > $1.rewrite
    mv $1.rewrite $1
    exit 0
else
    echo "No BugId found."
    exit 1
fi

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




reply via email to

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