version 1.6, 2005/10/08 14:09:18 |
version 1.7, 2005/10/08 14:18:35 |
|
|
exit(1); |
exit(1); |
} |
} |
|
|
|
|
if (dflag) { |
if (dflag) { |
/* XXX */ |
/* XXX */ |
} |
} |
|
|
|
|
/* |
/* |
* Load file contents |
* Load file contents |
*/ |
*/ |
|
|
* Current head revision gets the RCS patch as rd_text |
* Current head revision gets the RCS patch as rd_text |
*/ |
*/ |
if (rcs_deltatext_set(file, file->rf_head, deltatext) == -1) { |
if (rcs_deltatext_set(file, file->rf_head, deltatext) == -1) { |
cvs_log(LP_ERR, "failed to set new rd_text for head rev"); |
cvs_log(LP_ERR, |
|
"failed to set new rd_text for head rev"); |
exit (1); |
exit (1); |
} |
} |
/* |
/* |
|
|
BUF *logbuf; |
BUF *logbuf; |
RCSNUM *tmprev; |
RCSNUM *tmprev; |
|
|
|
rcs_msg = NULL; |
tmprev = rcsnum_alloc(); |
tmprev = rcsnum_alloc(); |
rcsnum_cpy(rev, tmprev, 16); |
rcsnum_cpy(rev, tmprev, 16); |
rcsnum_tostr(rev, prev, sizeof(prev)); |
rcsnum_tostr(rev, prev, sizeof(prev)); |
|
|
rcsnum_free(tmprev); |
rcsnum_free(tmprev); |
|
|
if ((logbuf = cvs_buf_alloc(64, BUF_AUTOEXT)) == NULL) { |
if ((logbuf = cvs_buf_alloc(64, BUF_AUTOEXT)) == NULL) { |
cvs_log(LP_ERR, |
cvs_log(LP_ERR, "failed to allocate log buffer"); |
"failed to allocate log buffer"); |
|
return (NULL); |
return (NULL); |
} |
} |
cvs_printf("%s <-- %s\n", rcsfile, workingfile); |
cvs_printf("%s <-- %s\n", rcsfile, workingfile); |
cvs_printf("new revision: %s; previous revision: %s\n", |
cvs_printf("new revision: %s; previous revision: %s\n", nrev, prev); |
nrev, prev); |
|
cvs_printf("enter log message, terminated with single " |
cvs_printf("enter log message, terminated with single " |
"'.' or end of file:\n"); |
"'.' or end of file:\n"); |
cvs_printf(">> "); |
cvs_printf(">> "); |