Blame SOURCES/cvs-1.11.21-diff.patch

83a95a
--- cvs-1.11.21/src/diff.c.old	2005-05-27 19:17:03.000000000 +0200
83a95a
+++ cvs-1.11.21/src/diff.c	2005-12-15 15:22:05.000000000 +0100
83a95a
@@ -955,14 +955,16 @@
83a95a
 	    /* The first revision does not exist.  If EMPTY_FILES is
83a95a
                true, treat this as an added file.  Otherwise, warn
83a95a
                about the missing tag.  */
83a95a
-	    if( use_rev2 == NULL || RCS_isdead( vers->srcfile, use_rev2 ) )
83a95a
+	    if( use_rev2 == NULL || RCS_isdead( vers->srcfile, use_rev2 ) ) {
83a95a
 		/* At least in the case where DIFF_REV1 and DIFF_REV2
83a95a
 		 * are both numeric (and non-existant (NULL), as opposed to
83a95a
 		 * dead?), we should be returning some kind of error (see
83a95a
 		 * basicb-8a0 in testsuite).  The symbolic case may be more
83a95a
 		 * complicated.
83a95a
 		 */
83a95a
-		return DIFF_SAME;
83a95a
+		error (0, 0, "no revision in file %s or missing file %s", finfo->fullname, finfo->fullname);
83a95a
+		return DIFF_ERROR;
83a95a
+	    }
83a95a
 	    if( empty_files )
83a95a
 		return DIFF_ADDED;
83a95a
 	    if( use_rev1 != NULL )