version 1.12, 2004/12/14 22:30:48 |
version 1.13, 2004/12/21 18:32:10 |
|
|
int |
int |
cvs_commit_file(CVSFILE *cf, void *arg) |
cvs_commit_file(CVSFILE *cf, void *arg) |
{ |
{ |
|
int ret; |
char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN]; |
char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN]; |
RCSFILE *rf; |
RCSFILE *rf; |
struct cvsroot *root; |
struct cvsroot *root; |
struct cvs_ent *entp; |
struct cvs_ent *entp; |
|
|
|
ret = 0; |
rf = NULL; |
rf = NULL; |
repo = NULL; |
repo = NULL; |
root = CVS_DIR_ROOT(cf); |
root = CVS_DIR_ROOT(cf); |
|
|
if (cf->cf_type == DT_DIR) { |
if (cf->cf_type == DT_DIR) { |
if (cf->cf_cvstat != CVS_FST_UNKNOWN) { |
if (root->cr_method != CVS_METHOD_LOCAL) { |
if ((cf->cf_parent != NULL) && |
if (cf->cf_cvstat != CVS_FST_UNKNOWN) |
(root != cf->cf_parent->cf_ddat->cd_root)) { |
ret = cvs_senddir(root, cf); |
cvs_connect(root); |
|
} |
|
|
|
cvs_senddir(root, cf); |
|
} |
} |
|
|
return (0); |
return (ret); |
} |
} |
|
|
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
cvs_file_getpath(cf, fpath, sizeof(fpath)); |