Lines Matching refs:cf

238 cvs_tag_check_files(struct cvs_file *cf)
244 cvs_log(LP_TRACE, "cvs_tag_check_files(%s)", cf->file_path);
246 cvs_file_classify(cf, tag);
248 if (cf->file_type == CVS_DIR || cf->file_status == FILE_UNKNOWN)
252 if (cf->file_status != FILE_UPTODATE &&
253 cf->file_status != FILE_CHECKOUT &&
254 cf->file_status != FILE_PATCH) {
257 "%s is locally modified", cf->file_path);
262 switch (cf->file_status) {
271 if (cf->file_ent == NULL)
273 srev = cf->file_ent->ce_rev;
275 srev = cf->file_rcsrev;
280 fi->file_path = xstrdup(cf->file_path);
287 if ((rev = rcs_sym_getrev(cf->file_rcs, tag_name)) != NULL) {
326 cvs_tag_local(struct cvs_file *cf)
328 cvs_log(LP_TRACE, "cvs_tag_local(%s)", cf->file_path);
330 cvs_file_classify(cf, tag);
332 if (cf->file_type == CVS_DIR) {
336 cf->file_path);
342 if (tag_del(cf) == 0) {
344 cvs_printf("D %s\n", cf->file_path);
349 switch (cf->file_status) {
354 cf->file_path);
361 cf->file_path);
368 if (tag_add(cf) == 0) {
370 cvs_printf("T %s\n", cf->file_path);
371 cvs_history_add(CVS_HISTORY_TAG, cf, tag_name);
380 tag_del(struct cvs_file *cf)
382 if (cf->file_rcs == NULL)
388 return (rcs_sym_remove(cf->file_rcs, tag_name));
392 tag_add(struct cvs_file *cf)
399 if (cf->file_rcs == NULL) {
402 "control file for `%s'", cf->file_name);
407 if (cf->file_ent == NULL)
409 srev = cf->file_ent->ce_rev;
411 srev = cf->file_rcsrev;
418 trev = rcs_sym_getrev(cf->file_rcs, tag_name);
428 cvs_printf("W %s : %s ", cf->file_path, tag_name);
434 sym = rcs_sym_get(cf->file_rcs, tag_name);
436 cf->file_rcs->rf_flags &= ~RCS_SYNCED;
443 if ((trev = rcs_branch_new(cf->file_rcs, srev)) == NULL)
450 if ((ret = rcs_sym_add(cf->file_rcs, tag_name, trev)) != 0) {
454 tag_name, revbuf, cf->file_rcs->rf_path);