version 1.9, 2006/07/07 17:37:17 |
version 1.10, 2006/07/08 00:34:20 |
|
|
{ "", -1, NULL, 0 } |
{ "", -1, NULL, 0 } |
}; |
}; |
|
|
|
static void client_check_directory(char *); |
static char *client_get_supported_responses(void); |
static char *client_get_supported_responses(void); |
static char *lastdir = NULL; |
static char *lastdir = NULL; |
static int end_of_response = 0; |
static int end_of_response = 0; |
|
|
return (d); |
return (d); |
} |
} |
|
|
|
static void |
|
client_check_directory(char *data) |
|
{ |
|
int l; |
|
CVSENTRIES *entlist; |
|
char *entry, *parent, *base; |
|
|
|
STRIP_SLASH(data); |
|
|
|
cvs_mkpath(data); |
|
|
|
if ((base = basename(data)) == NULL) |
|
fatal("client_check_directory: overflow"); |
|
|
|
if ((parent = dirname(data)) == NULL) |
|
fatal("client_check_directory: overflow"); |
|
|
|
entry = xmalloc(CVS_ENT_MAXLINELEN); |
|
l = snprintf(entry, CVS_ENT_MAXLINELEN, "D/%s////", base); |
|
if (l == -1 || l >= CVS_ENT_MAXLINELEN) |
|
fatal("client_check_directory: overflow"); |
|
|
|
entlist = cvs_ent_open(parent); |
|
cvs_ent_add(entlist, entry); |
|
cvs_ent_close(entlist, ENT_SYNC); |
|
|
|
xfree(entry); |
|
} |
|
|
void |
void |
cvs_client_connect_to_server(void) |
cvs_client_connect_to_server(void) |
{ |
{ |
|
|
cvs_log(LP_TRACE, "cvs_client_sendfile(%s)", cf->file_path); |
cvs_log(LP_TRACE, "cvs_client_sendfile(%s)", cf->file_path); |
cvs_remote_classify_file(cf); |
cvs_remote_classify_file(cf); |
|
|
|
if (cf->file_type == CVS_DIR) |
|
return; |
|
|
if (cf->file_ent != NULL) { |
if (cf->file_ent != NULL) { |
if (cf->file_status == FILE_ADDED) { |
if (cf->file_status == FILE_ADDED) { |
len = strlcpy(rev, "0", sizeof(rev)); |
len = strlcpy(rev, "0", sizeof(rev)); |
|
|
char revbuf[32], *len, *fpath, *wdir; |
char revbuf[32], *len, *fpath, *wdir; |
|
|
cvs_log(LP_TRACE, "cvs_client_updated(%s)", data); |
cvs_log(LP_TRACE, "cvs_client_updated(%s)", data); |
|
|
|
client_check_directory(data); |
|
|
rpath = cvs_remote_input(); |
rpath = cvs_remote_input(); |
entry = cvs_remote_input(); |
entry = cvs_remote_input(); |