Lines Matching refs:cf
125 cvs_remove_force(struct cvs_file *cf)
127 if (cf->file_type != CVS_DIR) {
128 if (cf->file_flags & FILE_ON_DISK) {
129 if (unlink(cf->file_path) == -1)
131 (void)close(cf->fd);
132 cf->fd = -1;
138 cvs_remove_local(struct cvs_file *cf)
144 cvs_log(LP_TRACE, "cvs_remove_local(%s)", cf->file_path);
146 if (cf->file_type == CVS_DIR) {
148 cvs_log(LP_NOTICE, "Removing %s", cf->file_path);
153 cvs_file_classify(cf, cvs_directory_tag);
155 if (cf->file_status == FILE_UNKNOWN) {
158 cf->file_path);
162 if (cf->file_flags & FILE_ON_DISK) {
165 cf->file_name);
168 switch (cf->file_status) {
170 entlist = cvs_ent_open(cf->file_wd);
171 cvs_ent_remove(entlist, cf->file_name);
174 cf->file_wd, CVS_PATH_CVSDIR, cf->file_name,
181 cf->file_name);
188 cf->file_name);
192 rcsnum_tostr(cf->file_ent->ce_rev, rbuf, sizeof(rbuf));
194 ctime_r(&cf->file_ent->ce_mtime, tbuf);
198 if (cf->file_ent->ce_tag != NULL)
200 cf->file_ent->ce_tag);
203 cvs_ent_line_str(cf->file_name, rbuf, tbuf,
204 cf->file_ent->ce_opts ?
205 cf->file_ent->ce_opts : "", sticky, 0, 1,
209 cvs_server_update_entry("Checked-in", cf);
212 entlist = cvs_ent_open(cf->file_wd);
221 cf->file_name);
224 cf->file_status = FILE_REMOVED;