Lines Matching refs:rev

51 static int lock_RCS (const char *user, RCSNode *rcs, const char *rev,
67 char *rev; /* a numeric rev, if we know it */ member
1066 ci->rev = xstrdup (vers->tag); in check_fileproc()
1068 ci->rev = RCS_whatbranch (finfo->rcs, vers->tag); in check_fileproc()
1070 ci->rev = NULL; in check_fileproc()
1343 char *rev = RCS_getversion (finfo->rcs, write_dirtag, NULL, 1, NULL); in commit_fileproc() local
1344 if (rev != NULL in commit_fileproc()
1347 if (rev != NULL) in commit_fileproc()
1348 free (rev); in commit_fileproc()
1416 if (lock_RCS (finfo->file, finfo->rcs, ci->rev, in commit_fileproc()
1447 if (ci->rev) in commit_fileproc()
1448 free (ci->rev); in commit_fileproc()
1449 ci->rev = RCS_whatbranch (finfo->rcs, ci->tag); in commit_fileproc()
1450 err = Checkin ('A', finfo, ci->rev, in commit_fileproc()
1471 if (ci->rev == NULL) in commit_fileproc()
1489 err = finaladd (finfo, ci->rev ? ci->rev : xrev, ci->tag, ci->options); in commit_fileproc()
1495 err = Checkin ('M', finfo, ci->rev, ci->tag, in commit_fileproc()
1752 char *rev; in remove_file() local
1757 rev = NULL; in remove_file()
1785 rev = NULL; in remove_file()
1791 rev = RCS_whatbranch (finfo->rcs, tag); in remove_file()
1792 if (rev == NULL) in remove_file()
1798 branchname = RCS_getbranch (finfo->rcs, rev, 1); in remove_file()
1808 corev = xstrdup (rev); in remove_file()
1834 retcode = RCS_checkout (finfo->rcs, finfo->file, rev ? corev : NULL, in remove_file()
1847 if (RCS_lock (finfo->rcs, rev ? corev : NULL, 1) == 0) in remove_file()
1855 rev, 0, RCS_FLAGS_DEAD | RCS_FLAGS_QUIET); in remove_file()
1867 if (rev != NULL) in remove_file()
1868 free (rev); in remove_file()
1904 finaladd (struct file_info *finfo, char *rev, char *tag, char *options) in finaladd() argument
1908 ret = Checkin ('A', finfo, rev, tag, options, saved_message); in finaladd()
2118 char *rev; in checkaddfile() local
2157 rev = RCS_getversion (rcs, tag, NULL, 1, NULL); in checkaddfile()
2159 if (lock_RCS (file, rcs, rev, repository)) in checkaddfile()
2162 rev ? rev : tag ? tag : "HEAD", rcs->path); in checkaddfile()
2163 if (rev != NULL) in checkaddfile()
2164 free (rev); in checkaddfile()
2168 if (rev != NULL) in checkaddfile()
2169 free (rev); in checkaddfile()
2382 lock_RCS (const char *user, RCSNode *rcs, const char *rev, in lock_RCS() argument
2397 if (rev == NULL in lock_RCS()
2398 || (rev && isdigit ((unsigned char) *rev) && numdots (rev) < 2)) in lock_RCS()
2416 RCS_lock (rcs, rev, 1); in lock_RCS()
2482 if (ci->rev) in ci_delproc()
2483 free (ci->rev); in ci_delproc()