bug-cvs
[Top][All Lists]
Advanced

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

definition for CVS history file 'X' character


From: Mark D. Baushke
Subject: definition for CVS history file 'X' character
Date: Wed, 07 Jun 2006 02:11:46 -0700

Greetings,

The NetBSD version of CVS adds a definition for
the 'X' character as a record type in the
CVSROOT/history file. I think it is a reasonable
addition and would like to hear if there are any
objections before I adopt it and commit it to the
FEATURE branch.

For what it may be worth, I have verified that the
CVSNT sources do not currently appear to use this
'X' record type AND that the patch I am providing
might even drop into their sources (modulo the
names of the files being .cpp rather than .c).

Note: I have not yet come up with any sanity.sh
tests, I plan to do that after the idea is
approved.

The patch is after my .signature.

        Thanks,
        -- Mark

ChangeLog Entry for CVS FEATURE branch:

        * admin.c (admin_fileproc): Used by NetBSD, add 'X' to the
        pantheon of history record types to keep "cvs admin" command
        information.
        * history.c: Document addition of the 'X' history record type.
        * history.h (ALL_HISTORY_REC_TYPES): Add 'X' to the list.

Index: admin.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/admin.c,v
retrieving revision 1.114
diff -u -p -r1.114 admin.c
--- admin.c     16 May 2006 01:30:34 -0000      1.114
+++ admin.c     7 Jun 2006 09:03:09 -0000
@@ -735,6 +735,9 @@ admin_fileproc (void *callerdat, struct 
        goto exitfunc;
     }
 
+    history_write ('X', finfo->update_dir, admin_data->cmdline, finfo->file,
+                  finfo->repository);
+
     rcs = vers->srcfile;
     if (rcs == NULL)
     {
Index: history.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/history.c,v
retrieving revision 1.97
diff -u -p -r1.97 history.c
--- history.c   24 Apr 2006 18:50:26 -0000      1.97
+++ history.c   7 Jun 2006 09:03:09 -0000
@@ -54,6 +54,7 @@
  *             M       "Commit" cmd - "Modified" file.
  *             A       "Commit" cmd - "Added" file.
  *             R       "Commit" cmd - "Removed" file.
+ *             X       "Admin"  cmd.
  *
  *  date       is a fixed length 8-char hex representation of a Unix time_t.
  *             [Starting here, variable fields are delimited by '|' chars.]
@@ -88,7 +89,7 @@
  *
  *   Extract list of record types
  *
- *     -e, -x [TOEFWUPGCMAR]
+ *     -e, -x [TOEFWUPGCMARX]
  *
  *             Extracted records are simply printed, No analysis is performed.
  *             All "field" modifiers apply.  -e chooses all types.
Index: history.h
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/history.h,v
retrieving revision 1.4
diff -u -p -r1.4 history.h
--- history.h   1 Feb 2005 22:20:06 -0000       1.4
+++ history.h   7 Jun 2006 09:03:09 -0000
@@ -14,5 +14,5 @@
 
 #ifndef HISTORY_H
 # define HISTORY_H
-#define ALL_HISTORY_REC_TYPES "TOEFWUPCGMAR"
+#define ALL_HISTORY_REC_TYPES "TOEFWUPCGMARX"
 #endif /* HISTORY_H */




reply via email to

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