version 1.98, 2005/07/18 01:02:20 |
version 1.99, 2005/07/22 16:27:29 |
|
|
} |
} |
|
|
SIMPLEQ_FOREACH(sf, &(cf->cf_files), cf_list) |
SIMPLEQ_FOREACH(sf, &(cf->cf_files), cf_list) |
if (cvs_file_cmpname(pp, CVS_FILE_NAME(sf)) == 0) |
if (cvs_file_cmpname(pp, sf->cf_name) == 0) |
break; |
break; |
if (sf == NULL) |
if (sf == NULL) |
return (NULL); |
return (NULL); |
|
|
|
|
/* find the top node */ |
/* find the top node */ |
for (top = file; (top != NULL) && (i > 0); top = top->cf_parent) { |
for (top = file; (top != NULL) && (i > 0); top = top->cf_parent) { |
fp = CVS_FILE_NAME(top); |
fp = top->cf_name; |
|
|
/* skip self-references */ |
/* skip self-references */ |
if ((fp[0] == '.') && (fp[1] == '\0')) |
if ((fp[0] == '.') && (fp[1] == '\0')) |
|
|
cfp->cf_flags &= ~CVS_GDIR_IGNORE; |
cfp->cf_flags &= ~CVS_GDIR_IGNORE; |
|
|
if (cvs_file_getdir(cfp, flags, np, cb, arg) < 0) { |
if (cvs_file_getdir(cfp, flags, np, cb, arg) < 0) { |
cvs_log(LP_ERR, "failed to get %s", CVS_FILE_NAME(cfp)); |
cvs_log(LP_ERR, "failed to get %s", cfp->cf_name); |
continue; |
continue; |
} |
} |
} |
} |
|
|
const CVSFILE *cf1, *cf2; |
const CVSFILE *cf1, *cf2; |
cf1 = *(CVSFILE * const *)f1; |
cf1 = *(CVSFILE * const *)f1; |
cf2 = *(CVSFILE * const *)f2; |
cf2 = *(CVSFILE * const *)f2; |
return cvs_file_cmpname(CVS_FILE_NAME(cf1), CVS_FILE_NAME(cf2)); |
return cvs_file_cmpname(cf1->cf_name, cf2->cf_name); |
} |
} |
|
|
|
|