Lines Matching defs:rcs

29 static int add_rev PROTO((char *message, RCSNode *rcs, char *vfile,
31 static int add_tags PROTO((RCSNode *rcs, char *vfile, char *vtag, int targc,
564 char *rcs;
567 rcs = xmalloc (strlen (repository) + strlen (vfile) + sizeof (RCSEXT)
569 (void) sprintf (rcs, "%s/%s%s", repository, vfile, RCSEXT);
570 if (!isfile (rcs))
622 retval = add_rcs_file (message, rcs, vfile, vhead, our_opt,
627 free (rcs);
634 free (rcs);
636 * an rcs file exists. have to do things the official, slow, way.
667 finfo.rcs = NULL;
676 * The rcs file does have a revision on the vendor branch. Compare
739 add_rev (message, rcs, vfile, vers)
741 RCSNode *rcs;
761 if (RCS_lock (rcs, vbranch, 1) != 0)
764 RCS_rewrite (rcs, NULL, NULL);
768 status = RCS_checkin (rcs, tocvsPath == NULL ? vfile : tocvsPath,
782 "ERROR: Check-in of %s failed", rcs->path);
784 "ERROR: Check-in of %s failed", rcs->path);
788 (void) RCS_unlock(rcs, vbranch, 0);
789 RCS_rewrite (rcs, NULL, NULL);
803 add_tags (rcs, vfile, vtag, targc, targv)
804 RCSNode *rcs;
818 if ((retcode = RCS_settag(rcs, vtag, vbranch)) != 0)
822 "ERROR: Failed to set tag %s in %s", vtag, rcs->path);
824 "ERROR: Failed to set tag %s in %s", vtag, rcs->path);
827 RCS_rewrite (rcs, NULL, NULL);
836 finfo.rcs = NULL;
840 if ((retcode = RCS_settag (rcs, targv[i], vers->vn_rcs)) == 0)
841 RCS_rewrite (rcs, NULL, NULL);
847 rcs->path);
850 rcs->path);
858 * Stolen from rcs/src/rcsfnms.c, and adapted/extended.
1015 This probably should be moved to rcs.c now that it is called from
1021 add_rcs_file (message, rcs, user, add_vhead, key_opt,
1027 const char *rcs;
1036 revisions (similar to the one created by "rcs -i"). */
1138 fprcs = CVS_FOPEN (rcs, "w+b");
1447 if (chmod (rcs, mode) < 0)
1452 "WARNING: cannot change mode of file %s", rcs);
1453 error (0, ierrno, "WARNING: cannot change mode of file %s", rcs);
1466 error (0, errno, "cannot close %s", rcs);
1471 fperrmsg (add_logfp, 0, ierrno, "ERROR: cannot write file %s", rcs);
1472 error (0, ierrno, "ERROR: cannot write file %s", rcs);
1475 if (CVS_UNLINK (rcs) < 0)
1476 error (0, errno, "cannot remove %s", rcs);
1578 char *rcs = NULL;
1618 rcs = xmalloc (strlen (repository) + sizeof (RCSEXT) + 5);
1619 (void) sprintf (rcs, "%s%s", repository, RCSEXT);
1620 if (isfile (repository) || isfile(rcs))
1643 if (rcs != NULL)
1644 free (rcs);