Lines Matching refs:cf

259 cvs_edit_local(struct cvs_file *cf)  in cvs_edit_local()  argument
270 cvs_log(LP_TRACE, "cvs_edit_local(%s)", cf->file_path); in cvs_edit_local()
272 cvs_file_classify(cf, cvs_directory_tag); in cvs_edit_local()
290 cf->file_name, timebuf, thishost, wdir); in cvs_edit_local()
303 if (fchmod(cf->fd, 0644) == -1) in cvs_edit_local()
307 CVS_PATH_BASEDIR, cf->file_name); in cvs_edit_local()
313 if (cvs_file_copy(cf->file_path, bfpath) == -1) in cvs_edit_local()
316 (void)cvs_base_handle(cf, BASE_ADD); in cvs_edit_local()
320 cvs_editors_local(struct cvs_file *cf) in cvs_editors_local() argument
325 cvs_unedit_local(struct cvs_file *cf) in cvs_unedit_local() argument
335 cvs_log(LP_TRACE, "cvs_unedit_local(%s)", cf->file_path); in cvs_unedit_local()
340 cvs_file_classify(cf, cvs_directory_tag); in cvs_unedit_local()
343 CVS_PATH_BASEDIR, cf->file_name); in cvs_unedit_local()
348 if (cvs_file_cmp(cf->file_path, bfpath) != 0) { in cvs_unedit_local()
350 cf->file_name); in cvs_unedit_local()
356 cvs_rename(bfpath, cf->file_path); in cvs_unedit_local()
374 cf->file_name, timebuf, thishost, wdir); in cvs_unedit_local()
378 if ((ba_rev = cvs_base_handle(cf, BASE_GET)) == NULL) { in cvs_unedit_local()
380 cf->file_name, CVS_PATH_BASEREV); in cvs_unedit_local()
384 if (cf->file_ent != NULL) { in cvs_unedit_local()
389 entlist = cvs_ent_open(cf->file_wd); in cvs_unedit_local()
391 if ((ent = cvs_ent_get(entlist, cf->file_name)) == NULL) in cvs_unedit_local()
397 ctime_r(&cf->file_ent->ce_mtime, timebuf); in cvs_unedit_local()
401 if (cf->file_ent->ce_tag != NULL) in cvs_unedit_local()
403 cf->file_ent->ce_tag); in cvs_unedit_local()
406 cf->file_name, rbuf, timebuf, cf->file_ent->ce_opts ? in cvs_unedit_local()
407 cf->file_ent->ce_opts : "", sticky); in cvs_unedit_local()
418 (void)cvs_base_handle(cf, BASE_REMOVE); in cvs_unedit_local()
420 if (fchmod(cf->fd, 0644) == -1) in cvs_unedit_local()
425 cvs_base_handle(struct cvs_file *cf, int flags) in cvs_base_handle() argument
433 cvs_log(LP_TRACE, "cvs_base_handle(%s)", cf->file_path); in cvs_base_handle()
466 if (cvs_file_cmpname(fields[0], cf->file_path) == 0) { in cvs_base_handle()
483 (void)rcsnum_tostr(cf->file_ent->ce_rev, rbuf, sizeof(rbuf)); in cvs_base_handle()
484 (void)fprintf(tfp, "B%s/%s/\n", cf->file_path, rbuf); in cvs_base_handle()