Lines Matching defs:finfo

37 static int add_directory (struct file_info *finfo);
291 struct file_info finfo;
294 memset (&finfo, 0, sizeof finfo);
299 finfo.fullname = xstrdup (argv[i]);
307 finfo.update_dir = "";
308 finfo.file = p;
313 finfo.update_dir = filename;
314 finfo.file = p;
315 if (CVS_CHDIR (finfo.update_dir) < 0)
316 error (1, errno, "could not chdir to `%s'", finfo.update_dir);
323 finfo.rcs = NULL;
326 repository = Name_Repository (NULL, finfo.update_dir);
342 finfo.repository = repository;
343 finfo.entries = entries;
349 vers = Version_TS (&finfo, options, NULL, NULL, 1, 0);
359 error (0, 0, "nothing known about `%s'", finfo.fullname);
362 else if (!isdir (finfo.file)
363 || wrap_name_has (finfo.file, WRAP_TOCVS))
369 char *dname = Xasprintf ("%s/%s", repository, finfo.file);
374 finfo.fullname);
387 if (wrap_name_has (finfo.file, WRAP_RCSOPTION))
391 vers->options = wrap_rcsoption (finfo.file, 1);
405 if (build_entry (repository, finfo.file, vers->options,
416 (wrap_name_has (finfo.file,
420 finfo.fullname, vers->tag);
424 (wrap_name_has (finfo.file,
428 finfo.fullname);
436 if (isdir (finfo.file)
437 && !wrap_name_has (finfo.file, WRAP_TOCVS))
441 " of the", finfo.fullname);
488 finfo.fullname);
495 finfo.fullname, prev);
496 status = RCS_checkout (vers->srcfile, finfo.file,
500 xchmod (finfo.file, 1);
512 timestamp = time_stamp (finfo.file);
514 write_letter (&finfo, 'U');
530 finfo.fullname, bbuf, vers->vn_rcs);
534 Register (entries, finfo.file, "0",
544 server_updated (&finfo, vers,
568 finfo.fullname);
580 error (0, 0, "`%s' has already been entered", finfo.fullname);
598 " second party", finfo.fullname);
611 status = RCS_checkout (vers->srcfile, finfo.file,
615 xchmod (finfo.file, cvswrite);
628 tmp = time_stamp (finfo.file);
629 write_letter (&finfo, 'U');
632 finfo.fullname, vers->vn_user);
634 Register (entries, finfo.file, vers->vn_user,
644 server_updated (&finfo, vers,
658 `%s' should be removed and is still there (or is back again)", finfo.fullname);
667 finfo.fullname,
675 && isdir (finfo.file)
676 && !wrap_name_has (finfo.file, WRAP_TOCVS))
678 err += add_directory (&finfo);
684 server_checked_in (finfo.file, finfo.update_dir, repository);
700 free ((char *) finfo.fullname);
726 add_directory (struct file_info *finfo)
728 const char *repository = finfo->repository;
729 List *entries = finfo->entries;
730 const char *dir = finfo->file;
769 error (0, errno, "cannot chdir to %s", finfo->fullname);
774 error (0, 0, "%s/%s already exists", finfo->fullname, CVSADM);
782 finfo->fullname);
849 WriteTemplate (finfo->fullname, 1, rcsdir);
851 Create_Admin (".", finfo->fullname, rcsdir, tag, date, nonbranch, 0, 1);