version 1.79, 2006/04/19 06:53:41 |
version 1.80, 2006/04/21 07:06:25 |
|
|
break; |
break; |
case 'p': |
case 'p': |
rcs_setrevstr(&rev_str, rcs_optarg); |
rcs_setrevstr(&rev_str, rcs_optarg); |
pipeout = 1; |
flags |= PIPEOUT; |
break; |
break; |
case 'q': |
case 'q': |
rcs_setrevstr(&rev_str, rcs_optarg); |
rcs_setrevstr(&rev_str, rcs_optarg); |
|
|
|
|
if (!(flags & QUIET)) |
if (!(flags & QUIET)) |
printf("%s --> %s\n", fpath, |
printf("%s --> %s\n", fpath, |
(pipeout == 1) ? "standard output" : argv[i]); |
(flags & PIPEOUT) ? "standard output" : argv[i]); |
|
|
if ((flags & CO_LOCK) && (kflag & RCS_KWEXP_VAL)) { |
if ((flags & CO_LOCK) && (kflag & RCS_KWEXP_VAL)) { |
cvs_log(LP_ERR, "%s: cannot combine -kv and -l", fpath); |
cvs_log(LP_ERR, "%s: cannot combine -kv and -l", fpath); |
|
|
file->rf_path, lcount); |
file->rf_path, lcount); |
} |
} |
|
|
if (pipeout == 0 && stat(dst, &st) == 0 && !(flags & FORCE)) { |
if (!(flags & PIPEOUT) && stat(dst, &st) == 0 && !(flags & FORCE)) { |
/* |
/* |
* XXX - Not sure what is "right". If we go according |
* XXX - Not sure what is "right". If we go according |
* to GNU's behavior, an existing file with no writable |
* to GNU's behavior, an existing file with no writable |
|
|
} |
} |
} |
} |
|
|
if (pipeout == 1) { |
if (flags & PIPEOUT) { |
cvs_buf_putc(bp, '\0'); |
cvs_buf_putc(bp, '\0'); |
content = cvs_buf_release(bp); |
content = cvs_buf_release(bp); |
printf("%s", content); |
printf("%s", content); |