summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-21 16:21:08 +0000
committerpeter <peter@FreeBSD.org>1997-05-21 16:21:08 +0000
commit5b1c23591630438692f2b0cd58ef70854accd622 (patch)
tree925c1b7705bb02e6df4af60e28e2d0fd670bc6d6 /contrib
parentcb550ca60736eef047d931f07aac980a5aa9cd0d (diff)
downloadFreeBSD-src-5b1c23591630438692f2b0cd58ef70854accd622.zip
FreeBSD-src-5b1c23591630438692f2b0cd58ef70854accd622.tar.gz
Attempt to work around the problem Bruce reported with 'cvs diff -rHEAD'
complaining about long-deleted files having been deleted and that there is no diff available.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cvs/src/diff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/cvs/src/diff.c b/contrib/cvs/src/diff.c
index 8253a2f..cc29f09 100644
--- a/contrib/cvs/src/diff.c
+++ b/contrib/cvs/src/diff.c
@@ -383,14 +383,16 @@ diff_fileproc (callerdat, finfo)
exists = 0;
/* special handling for TAG_HEAD */
if (diff_rev1 && strcmp (diff_rev1, TAG_HEAD) == 0)
- exists = vers->vn_rcs != NULL;
+ exists = (vers->vn_rcs != NULL && /* XXX ? */
+ !RCS_isdead (vers->srcfile, vers->vn_rcs)); /*XXX*/
else
{
Vers_TS *xvers;
xvers = Version_TS (finfo, NULL, diff_rev1, diff_date1,
1, 0);
- exists = xvers->vn_rcs != NULL;
+ exists = (vers->vn_rcs != NULL &&
+ !RCS_isdead (vers->srcfile, vers->vn_rcs)); /*XXX*/
freevers_ts (&xvers);
}
if (exists)
OpenPOWER on IntegriCloud