version 1.77, 2006/01/25 11:13:18 |
version 1.78, 2006/01/27 15:26:38 |
|
|
/* at this point, the file is modified */ |
/* at this point, the file is modified */ |
cvs_rcs_getpath(cf, rcspath, sizeof(rcspath)); |
cvs_rcs_getpath(cf, rcspath, sizeof(rcspath)); |
|
|
rf = rcs_open(rcspath, RCS_READ); |
if ((rf = rcs_open(rcspath, RCS_READ)) == NULL) |
if (rf == NULL) { |
fatal("cvs_diff_local: rcs_open `%s': %s", rcspath, |
return (CVS_EX_DATA); |
strerror(rcs_errno)); |
} |
|
|
|
cvs_printf("Index: %s\n%s\nRCS file: %s\n", diff_file, |
cvs_printf("Index: %s\n%s\nRCS file: %s\n", diff_file, |
RCS_DIFF_DIV, rcspath); |
RCS_DIFF_DIV, rcspath); |
|
|
if (dap->rev1 == NULL) |
if (dap->rev1 == NULL) |
r1 = cf->cf_lrev; |
r1 = cf->cf_lrev; |
else { |
else { |
if ((r1 = rcsnum_parse(dap->rev1)) == NULL) { |
if ((r1 = rcsnum_parse(dap->rev1)) == NULL) |
rcs_close(rf); |
fatal("cvs_diff_local: rcsnum_parse failed"); |
return (CVS_EX_DATA); |
|
} |
|
} |
} |
|
|
cvs_printf("retrieving revision %s\n", |
cvs_printf("retrieving revision %s\n", |