bugConcurrent Versions System - Bugs: bug #16026, verifymsg failure if committing...

 
 

bug #16026: verifymsg failure if committing multiple binary files from different difectories at once

Submitter:  None
Submitted:  Tue 07 Mar 2006 12:27:36 PM UTC
   
 
Category:  Bug Report Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release: 
Fixed Release:  None Fixed Feature Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 07 Mar 2006 12:27:36 PM UTC, original submission:  

Using cygwin command line client v1.11.17 on Windows XP, and server v1.11.18 on Linux (Red Hat AS 2.1)

We have a simple script that verifies commit messages, along the same principles as the short example in the Cederqvist (section C.4.2). This works fine for committing single files and multiple files in the same directory, and multiple text files in different directories, all at once.

However when committing several binary files in different directories at once, our script accepts all files in the first directory, but denies the checkin of all files in other directories. It seems as if CVS is not always passing on the commit comments to the script?

I've attached the CVS client logs of an example failed transaction.

Our commit script is as follows:

#!/bin/sh
#
#  Verify that the CVS commit message contains a valid infra number
#  (or the word "none") on the first line.
#
#  Converted to use JIRA numbers.
#
# Jira: none
if sed 1q < "$1" | egrep -i '^jira:[[:space:]]*none$' > /dev/null; then
    # It is okay to allow commits with 'Jira: none',
    # but do not put that text into the real log message.
    egrep -i -v '^jira:[[:space:]]*none$' "$1" > "$1.rewrite"
    mv "$1.rewrite" "$1"
    exit 0

#
# Jira: ABC-1234[,DEF-2222,GHI-3333...]
# (can have one or more JIRAs, separated by commas or whitespace)
#
elif sed 1q < "$1" | egrep -i '^jira:[[:space:]]*[[:alpha:]]{3}-[[:digit:]]+([[:space:],]+[[:alpha:]]{3}-[[:digit:]]+)*$' > /dev/null; then
    # force any text on the first line to be uppercase
    sed 1y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ < "$1" > "$1.rewrite"
    mv "$1.rewrite" "$1"
    exit 0

else
    echo "No JIRA Numbers found."
    exit 1
fi

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #1579:  cvs_client_logs.zip added by None (178KiB - application/zip - WinZip of CVS client debug log, for an example failed commit)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-03-07 cjn Carbon-Copy- Added cjn
2006-03-07 None Attached File- Added cvs_client_logs.zip, #3477

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code