version 1.107, 2006/04/18 03:35:57 |
version 1.108, 2006/04/19 06:53:41 |
|
|
"or end of file:\nNOTE: This is NOT the log message!\n" |
"or end of file:\nNOTE: This is NOT the log message!\n" |
|
|
const char rcs_version[] = "OpenCVS RCS version 3.6"; |
const char rcs_version[] = "OpenCVS RCS version 3.6"; |
int verbose = 1; |
|
int pipeout = 0; |
int pipeout = 0; |
|
|
int flags; |
int flags; |
|
|
orange = xstrdup(rcs_optarg); |
orange = xstrdup(rcs_optarg); |
break; |
break; |
case 'q': |
case 'q': |
verbose = 0; |
rcsflags |= QUIET; |
break; |
break; |
case 't': |
case 't': |
descfile = rcs_optarg; |
descfile = rcs_optarg; |
|
|
if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0) |
if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0) |
continue; |
continue; |
|
|
if (verbose == 1) |
if (!(rcsflags & QUIET)) |
printf("RCS file: %s\n", fpath); |
printf("RCS file: %s\n", fpath); |
|
|
if ((file = rcs_open(fpath, flags, fmode)) == NULL) |
if ((file = rcs_open(fpath, flags, fmode)) == NULL) |
|
|
fatal("%s: can't lock nonexisting revision %s", |
fatal("%s: can't lock nonexisting revision %s", |
fpath, rev_str); |
fpath, rev_str); |
if (rcs_lock_add(file, username, rev) != -1 && |
if (rcs_lock_add(file, username, rev) != -1 && |
verbose == 1) |
!(rcsflags & QUIET)) |
printf("%s locked\n", rev_str); |
printf("%s locked\n", rev_str); |
rcsnum_free(rev); |
rcsnum_free(rev); |
} |
} |
|
|
fatal("%s: can't unlock nonexisting revision %s", |
fatal("%s: can't unlock nonexisting revision %s", |
fpath, rev_str); |
fpath, rev_str); |
if (rcs_lock_remove(file, username, rev) == -1 && |
if (rcs_lock_remove(file, username, rev) == -1 && |
verbose == 1) |
!(rcsflags & QUIET)) |
cvs_log(LP_ERR, |
cvs_log(LP_ERR, |
"%s: warning: No locks are set.", fpath); |
"%s: warning: No locks are set.", fpath); |
rcsnum_free(rev); |
rcsnum_free(rev); |
|
|
if (rcsflags & PRESERVETIME) |
if (rcsflags & PRESERVETIME) |
rcs_set_mtime(fpath, rcs_mtime); |
rcs_set_mtime(fpath, rcs_mtime); |
|
|
if (verbose == 1) |
if (!(rcsflags & QUIET)) |
printf("done\n"); |
printf("done\n"); |
} |
} |
|
|