From e149b9233f22595e456c66d6dd7a39900d03cd8d Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 10 Jun 2008 17:51:07 +0000 Subject: [PATCH] Branch b1_6 Remove obsolete tips from cvsdiffclient header. Move the "editable" comments together, after the instructions, to be more consistent. --- build/cvsdiffclient | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/build/cvsdiffclient b/build/cvsdiffclient index 66cd6b6..ca09609 100644 --- a/build/cvsdiffclient +++ b/build/cvsdiffclient @@ -21,6 +21,12 @@ fi FILES=$($CVS_MODIFIED_FILES_PL $1) TMP=`mktemp /tmp/cvslog-XXXXXXXX` if [ -f $TMP ]; then + cat - >> $TMP <<- EOH + CVS: did you test your fix properly (acc-sm.sh, or as needed)? + CVS: did you update the ChangeLog for a bug fix? + CVS: did you verify/update affected user documentation? + CVS: Remove "CVS:" from lines below to include in commit message + EOH [ -f .mergeinfo ] && . .mergeinfo [ -z "$PARENT" -a -f lustre/.mergeinfo ] && . lustre/.mergeinfo if [ "$PARENT" ]; then @@ -33,15 +39,15 @@ if [ -f $TMP ]; then [ "$TAG" ] && BRANCH="`sed 's/^T//' $TAG`" || BRANCH="HEAD" echo "CVS: Branch $BRANCH" >> $TMP fi -cat - >> $TMP <<- EOF - CVS: Remove "CVS:" from start of lines that should be in commit message - CVS: did you update the ChangeLog for a bug fix? - CVS: did you update the hours spent in Bugzilla? - CVS: did you verify/update the HLD/DLD in CVS? - CVS: b= - CVS: i= - CVS: i= -EOF + # We can't just put these into the commit template without the leading + # "CVS: ", otherwise exiting the commend edit would still leave a valid + # comment in the file and the commit will still be done. We need to + # make a file without valid comments to allow the commit to be aborted. + cat - >> $TMP <<- EOB + CVS: b= + CVS: i= + CVS: i= + EOB cat $1 >> $TMP cp $TMP $1 -- 1.8.3.1