version 1.144, 2008/06/20 14:04:29 |
version 1.145, 2009/02/21 14:50:53 |
|
|
"comparison available", cf->file_path); |
"comparison available", cf->file_path); |
return; |
return; |
} |
} |
if (cf->fd == -1) { |
if (!(cf->file_flags & FILE_ON_DISK)) { |
if (!cvs_server_active) |
cvs_log(LP_ERR, "cannot find %s", |
cvs_log(LP_ERR, "cannot find %s", |
cf->file_path); |
cf->file_path); |
|
return; |
return; |
} |
} |
break; |
break; |
|
|
} |
} |
break; |
break; |
default: |
default: |
if (cvs_server_active != 1 && cf->fd == -1) { |
if (!(cf->file_flags & FILE_ON_DISK)) { |
cvs_log(LP_ERR, "cannot find %s", |
cvs_log(LP_ERR, "cannot find %s", |
cf->file_path); |
cf->file_path); |
return; |
return; |
|
|
fd2 = rcs_rev_write_stmp(cf->file_rcs, diff_rev2, p2, 0); |
fd2 = rcs_rev_write_stmp(cf->file_rcs, diff_rev2, p2, 0); |
if (futimes(fd2, tv2) == -1) |
if (futimes(fd2, tv2) == -1) |
fatal("cvs_diff_local: utimes failed"); |
fatal("cvs_diff_local: utimes failed"); |
} else if (cvs_cmdop == CVS_OP_DIFF && cf->fd != -1 && |
} else if (cvs_cmdop == CVS_OP_DIFF && |
|
(cf->file_flags & FILE_ON_DISK) && |
cf->file_ent->ce_status != CVS_ENT_REMOVED) { |
cf->file_ent->ce_status != CVS_ENT_REMOVED) { |
if (fstat(cf->fd, &st) == -1) |
if (fstat(cf->fd, &st) == -1) |
fatal("fstat failed %s", strerror(errno)); |
fatal("fstat failed %s", strerror(errno)); |