bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS bug with -D and vendor branches


From: staffan.ohman
Subject: Re: CVS bug with -D and vendor branches
Date: Tue, 28 May 2002 9:33:38 +0300

Hi,
what you have found here is a bug in rcs.c that still
hasn't been fixed in the latest stable release. (1.11.2)
Quite some time ago I posted a patch here for 1.11.1p1
but that didn't get in :-(
Anyway, here is something that works for 1.11.2

Index: rcs.c
===================================================================
RCS file: /usr/local/cvsroot/cvs_src/src/rcs.c,v
retrieving revision 1.1.1.2
retrieving revision 1.4
diff -u -r1.1.1.2 -r1.4
--- rcs.c       18 Apr 2002 08:04:05 -0000      1.1.1.2
+++ rcs.c       18 Apr 2002 08:08:55 -0000      1.4
@@ -2935,7 +2935,9 @@
     char *cur_rev = NULL;
     char *retval = NULL;
     Node *p;
+    Node *p_1_1;
     RCSVers *vers = NULL;
+    RCSVers *vers_1_1 = NULL;

     /* make sure we have something to look at... */
     assert (rcs != NULL);
@@ -3000,7 +3002,9 @@
        if (p)
        {
            vers = (RCSVers *) p->data;
-           if (RCS_datecmp (vers->date, date) != 0)
+           p_1_1 = findnode (rcs->versions, "1.1");
+           vers_1_1 = (RCSVers *) p_1_1->data;
+           if (RCS_datecmp (vers->date, vers_1_1->date) 
!= 0)
                return xstrdup ("1.1");
        }
     }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]