version 1.113, 2008/01/10 10:08:22 |
version 1.114, 2008/01/21 16:36:46 |
|
|
fatal("cvs_update_enterdir: `%s': %s", |
fatal("cvs_update_enterdir: `%s': %s", |
cf->file_path, strerror(errno)); |
cf->file_path, strerror(errno)); |
|
|
(void)xasprintf(&entry, "D/%s////", cf->file_name); |
if (cvs_cmdop != CVS_OP_EXPORT) { |
|
(void)xasprintf(&entry, "D/%s////", cf->file_name); |
|
|
entlist = cvs_ent_open(cf->file_wd); |
entlist = cvs_ent_open(cf->file_wd); |
cvs_ent_add(entlist, entry); |
cvs_ent_add(entlist, entry); |
cvs_ent_close(entlist, ENT_SYNC); |
cvs_ent_close(entlist, ENT_SYNC); |
xfree(entry); |
xfree(entry); |
|
} |
} else if ((cf->file_status == DIR_CREATE && build_dirs == 0) || |
} else if ((cf->file_status == DIR_CREATE && build_dirs == 0) || |
cf->file_status == FILE_UNKNOWN) { |
cf->file_status == FILE_UNKNOWN) { |
cf->file_status = FILE_SKIP; |
cf->file_status = FILE_SKIP; |
|
|
struct cvs_ent *ent; |
struct cvs_ent *ent; |
struct cvs_ent_line *line; |
struct cvs_ent_line *line; |
CVSENTRIES *entlist; |
CVSENTRIES *entlist; |
char export[MAXPATHLEN]; |
|
|
|
cvs_log(LP_TRACE, "cvs_update_leavedir(%s)", cf->file_path); |
cvs_log(LP_TRACE, "cvs_update_leavedir(%s)", cf->file_path); |
|
|
if (cvs_cmdop == CVS_OP_EXPORT) { |
|
(void)xsnprintf(export, MAXPATHLEN, "%s/%s", |
|
cf->file_path, CVS_PATH_CVSDIR); |
|
|
|
/* XXX */ |
|
if (cvs_rmdir(export) == -1) |
|
fatal("cvs_update_leavedir: %s: %s:", export, |
|
strerror(errno)); |
|
|
|
return; |
|
} |
|
|
|
if (cvs_server_active == 1 && !strcmp(cf->file_name, ".")) |
if (cvs_server_active == 1 && !strcmp(cf->file_name, ".")) |
return; |
return; |
|
|
|
|
/* XXX */ |
/* XXX */ |
cvs_rmdir(cf->file_path); |
cvs_rmdir(cf->file_path); |
|
|
if (cvs_server_active == 0) { |
if (cvs_server_active == 0 && cvs_cmdop != CVS_OP_EXPORT) { |
entlist = cvs_ent_open(cf->file_wd); |
entlist = cvs_ent_open(cf->file_wd); |
cvs_ent_remove(entlist, cf->file_name); |
cvs_ent_remove(entlist, cf->file_name); |
cvs_ent_close(entlist, ENT_SYNC); |
cvs_ent_close(entlist, ENT_SYNC); |
|
|
cvs_log(LP_TRACE, "cvs_update_local(%s)", cf->file_path); |
cvs_log(LP_TRACE, "cvs_update_local(%s)", cf->file_path); |
|
|
if (cf->file_type == CVS_DIR) { |
if (cf->file_type == CVS_DIR) { |
if (cf->file_status == FILE_SKIP) |
if (cf->file_status == FILE_SKIP) { |
|
if (cvs_cmdop == CVS_OP_EXPORT && verbosity > 0) |
|
cvs_printf("? %s\n", cf->file_path); |
return; |
return; |
|
} |
|
|
if (cf->file_status != FILE_UNKNOWN && |
if (cf->file_status != FILE_UNKNOWN && |
verbosity > 1) |
verbosity > 1) |