pardon my pseudo-code...
if ( arg_for_skip_rundb != 'TRUE' ) then
if ( no_svn_client_available or user/password_is_invalid ) then
echo "unable to contact rundb to verify casename is unique"
echo "duplicate casenames are bad - visit website to verify casename by hand"
echo "to skip this message when running create_newcase, use arg_for_skip_rundb = 'TRUE'"
exit
endif
if ( case_info_already_in_rundb ) then
echo "casename already in use - find another casename"
exit
endif
if ( casename_is_merely_reserved_in_rundb ) then
echo "casename is reserved by $reserver - acknowledge/continue or quit?"
if ( quit ) exit
else
echo "no info for casename in rundb - would you like to reserve it?"
if ( yes ) reserve casename in rundb
endif
endif |