version 1.6, 2004/08/06 13:08:39 |
version 1.7, 2004/08/12 18:37:27 |
|
|
} |
} |
else |
else |
cvs_files = cvs_file_getspec(argv, argc, 0); |
cvs_files = cvs_file_getspec(argv, argc, 0); |
|
if (cvs_files == NULL) |
|
return (EX_DATAERR); |
|
|
cvs_file_examine(cvs_files, cvs_diff_file, &darg); |
cvs_file_examine(cvs_files, cvs_diff_file, &darg); |
|
|
|
|
dap = (struct diff_arg *)arg; |
dap = (struct diff_arg *)arg; |
|
|
if (cfp->cf_type == DT_DIR) { |
if (cfp->cf_type == DT_DIR) { |
root = cfp->cf_ddat->cd_root; |
if (cfp->cf_cvstat == CVS_FST_UNKNOWN) { |
if ((cfp->cf_parent == NULL) || |
root = cfp->cf_parent->cf_ddat->cd_root; |
(root != cfp->cf_parent->cf_ddat->cd_root)) { |
cvs_sendreq(root, CVS_REQ_QUESTIONABLE, cfp->cf_name); |
cvs_connect(root); |
|
cvs_diff_sendflags(root, dap); |
|
} |
} |
|
else { |
|
root = cfp->cf_ddat->cd_root; |
|
if ((cfp->cf_parent == NULL) || |
|
(root != cfp->cf_parent->cf_ddat->cd_root)) { |
|
cvs_connect(root); |
|
cvs_diff_sendflags(root, dap); |
|
} |
|
|
cvs_senddir(root, cfp); |
cvs_senddir(root, cfp); |
|
} |
|
|
return (0); |
return (0); |
} |
} |
else /* take the root of parent directory */ |
|
root = cfp->cf_parent->cf_ddat->cd_root; |
|
|
|
rf = NULL; |
rf = NULL; |
diff_file = cfp->cf_path; |
diff_file = cfp->cf_path; |
|
|
if (cfp->cf_parent != NULL) { |
if (cfp->cf_parent != NULL) { |
dir = cfp->cf_parent->cf_path; |
dir = cfp->cf_parent->cf_path; |
|
root = cfp->cf_parent->cf_ddat->cd_root; |
repo = cfp->cf_parent->cf_ddat->cd_repo; |
repo = cfp->cf_parent->cf_ddat->cd_repo; |
} |
} |
else { |
else { |
dir = "."; |
dir = "."; |
|
root = NULL; |
repo = NULL; |
repo = NULL; |
} |
} |
|
|