Thursday, 1 July 2010

CVS : Pre-tag check failure

Very annoying and a completely useless error message

This may be caused by a validation rule being set up on tags - eg. disallowing them to be moved/deleted
Look at ../CVS/CVSROOT/taginfo which matches items being tagged to an executable to validate the action
eg a line like
DEFAULT /usr/local/bin/
will redirect to the shell script which can contain something like the following to stop deletes or changes :
if [ "$TAG_OP" != "add" ]; then
   exit -1
   # exit 0