version 1.38, 2005/12/03 01:02:09 |
version 1.39, 2005/12/30 02:03:28 |
|
|
|
|
if (cf->cf_type == DT_DIR) { |
if (cf->cf_type == DT_DIR) { |
if (cf->cf_cvstat == CVS_FST_UNKNOWN) |
if (cf->cf_cvstat == CVS_FST_UNKNOWN) |
ret = cvs_sendreq(root, CVS_REQ_QUESTIONABLE, |
cvs_sendreq(root, CVS_REQ_QUESTIONABLE, cf->cf_name); |
cf->cf_name); |
|
else |
else |
ret = cvs_senddir(root, cf); |
cvs_senddir(root, cf); |
|
return (0); |
if (ret == -1) |
|
ret = CVS_EX_PROTO; |
|
return (ret); |
|
} |
} |
|
|
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
|
|
if (cvs_remove_file(fpath) < 0) |
if (cvs_remove_file(fpath) < 0) |
return (CVS_EX_FILE); |
return (CVS_EX_FILE); |
|
|
if (cvs_sendentry(root, cf) < 0) |
cvs_sendentry(root, cf); |
return (CVS_EX_PROTO); |
|
|
|
if (cf->cf_cvstat != CVS_FST_LOST && force_remove != 1) { |
if (cf->cf_cvstat != CVS_FST_LOST && force_remove != 1) { |
if (cf->cf_cvstat != CVS_FST_ADDED) { |
if (cf->cf_cvstat != CVS_FST_ADDED) |
if (cvs_sendreq(root, CVS_REQ_MODIFIED, |
cvs_sendreq(root, CVS_REQ_MODIFIED, cf->cf_name); |
cf->cf_name) < 0) { |
|
return (CVS_EX_PROTO); |
|
} |
|
} |
|
|
|
if (cf->cf_flags & CVS_FILE_ONDISK) { |
if (cf->cf_flags & CVS_FILE_ONDISK) |
if (cvs_sendfile(root, fpath) < 0) |
cvs_sendfile(root, fpath); |
return (CVS_EX_PROTO); |
|
} |
|
} |
} |
|
|
return (0); |
return (0); |