version 1.62, 2005/11/28 08:49:25 |
version 1.63, 2005/12/03 01:02:09 |
|
|
ent->ce_mtime = time(&(ent->ce_mtime)); |
ent->ce_mtime = time(&(ent->ce_mtime)); |
|
|
/* replace the current entry with the one we just received */ |
/* replace the current entry with the one we just received */ |
(void)cvs_ent_remove(cvs_resp_lastent, ent->ce_name); |
(void)cvs_ent_remove(cvs_resp_lastent, ent->ce_name, 0); |
|
|
cvs_ent_add(cvs_resp_lastent, ent); |
cvs_ent_add(cvs_resp_lastent, ent); |
} |
} |
|
|
|
|
if ((type == CVS_RESP_UPDEXIST) || (type == CVS_RESP_UPDATED) || |
if ((type == CVS_RESP_UPDEXIST) || (type == CVS_RESP_UPDATED) || |
(type == CVS_RESP_MERGED) || (type == CVS_RESP_CREATED)) { |
(type == CVS_RESP_MERGED) || (type == CVS_RESP_CREATED)) { |
if ((cvs_ent_remove(cvs_resp_lastent, ent->ce_name) < 0) && |
if ((cvs_ent_remove(cvs_resp_lastent, ent->ce_name, 0) < 0) && |
(type != CVS_RESP_CREATED)) { |
(type != CVS_RESP_CREATED)) { |
cvs_log(LP_WARN, "failed to remove entry for '%s`", |
cvs_log(LP_WARN, "failed to remove entry for '%s`", |
ent->ce_name); |
ent->ce_name); |
|
|
if (resp_check_dir(root, line) < 0) |
if (resp_check_dir(root, line) < 0) |
return (-1); |
return (-1); |
|
|
(void)cvs_ent_remove(cvs_resp_lastent, file); |
(void)cvs_ent_remove(cvs_resp_lastent, file, 0); |
if ((type == CVS_RESP_REMOVED) && ((unlink(fpath) == -1) && |
if ((type == CVS_RESP_REMOVED) && ((unlink(fpath) == -1) && |
errno != ENOENT)) { |
errno != ENOENT)) { |
cvs_log(LP_ERRNO, "failed to unlink `%s'", file); |
cvs_log(LP_ERRNO, "failed to unlink `%s'", file); |