[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Latest cvs 1.11.7/8 incompatible to prev. Versions
From: |
Larry Jones |
Subject: |
Re: Latest cvs 1.11.7/8 incompatible to prev. Versions |
Date: |
Wed, 8 Oct 2003 15:13:55 -0400 (EDT) |
Frank Hemer writes:
>
> The 'cvs history' command failes if the client side uses cvs version > 1.11.7
> and the server uses cvs version < 1.11.7
> Cause: The 'P' record type is not known to the server, so it aborts.
Mea culpa, I forgot that history was brain-damaged. I've checked in a
fix, here's a patch for anyone that wants it:
Index: history.c
===================================================================
RCS file: /cvs/ccvs/src/history.c,v
retrieving revision 1.58.4.3
diff -u -r1.58.4.3 history.c
--- history.c 28 Aug 2003 04:21:26 -0000 1.58.4.3
+++ history.c 8 Oct 2003 19:11:41 -0000
@@ -218,6 +218,7 @@
static short report_count;
static short extract;
+static short extract_all;
static short v_checkout;
static short modified;
static short tag_report;
@@ -400,7 +401,7 @@
break;
case 'e':
report_count++;
- extract++;
+ extract_all++;
free (rec_types);
rec_types = xstrdup (ALL_REC_TYPES);
break;
@@ -585,6 +586,8 @@
option_with_arg ("-t", since_tag);
for (mod = user_list; mod < &user_list[user_count]; ++mod)
option_with_arg ("-u", *mod);
+ if (extract_all)
+ send_arg("-e");
if (extract)
option_with_arg ("-x", rec_types);
option_with_arg ("-z", tz_name);
@@ -608,7 +611,7 @@
(void) strcat (rec_types, "T");
}
}
- else if (extract)
+ else if (extract || extract_all)
{
if (user_list)
user_sort++;
-Larry Jones
When you're SERIOUS about having fun, it's not much fun at all! -- Calvin