[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-cvs] Changes to ccvs/src/cvs.h [signed-commits2]
From: |
Derek Robert Price |
Subject: |
[Cvs-cvs] Changes to ccvs/src/cvs.h [signed-commits2] |
Date: |
Tue, 15 Nov 2005 22:30:20 -0500 |
Index: ccvs/src/cvs.h
diff -u ccvs/src/cvs.h:1.345.2.2 ccvs/src/cvs.h:1.345.2.3
--- ccvs/src/cvs.h:1.345.2.2 Thu Nov 10 04:47:44 2005
+++ ccvs/src/cvs.h Wed Nov 16 03:30:18 2005
@@ -278,30 +278,7 @@
command line, the client, etc. */
#define MAXDATELEN 50
-/* The type of an entnode. */
-enum ent_type
-{
- ENT_FILE, ENT_SUBDIR
-};
-
-/* structure of a entry record */
-struct entnode
-{
- enum ent_type type;
- char *user;
- char *version;
-
- /* Timestamp, or "" if none (never NULL). */
- char *timestamp;
-
- /* Keyword expansion options, or "" if none (never NULL). */
- char *options;
-
- char *tag;
- char *date;
- char *conflict;
-};
-typedef struct entnode Entnode;
+#include "entries.h"
/* The type of request that is being done in do_module() */
enum mtype
@@ -643,68 +620,8 @@
* this is usually obtained from a call to Version_TS which takes a
* tag argument for the RCS file if desired
*/
-struct vers_ts
-{
- /* rcs version user file derives from, from CVS/Entries.
- It can have the following special values:
-
- NULL = file is not mentioned in Entries (this is also used for a
- directory).
- "" = INVALID! The comment used to say that it meant "no user file"
- but as far as I know CVS didn't actually use it that way.
- Note that according to cvs.texinfo, "" is not valid in the
- Entries file.
- 0 = user file is new
- -vers = user file to be removed. */
- char *vn_user;
-
- /* Numeric revision number corresponding to ->vn_tag (->vn_tag
- will often be symbolic). */
- char *vn_rcs;
- /* If ->tag is a simple tag in the RCS file--a tag which really
- exists which is not a magic revision--and if ->date is NULL,
- then this is a copy of ->tag. Otherwise, it is a copy of
- ->vn_rcs. */
- char *vn_tag;
-
- /* This is the timestamp from stating the file in the working directory.
- It is NULL if there is no file in the working directory. It is
- "Is-modified" if we know the file is modified but don't have its
- contents. */
- char *ts_user;
- /* Timestamp from CVS/Entries. For the server, ts_user and ts_rcs
- are computed in a slightly different way, but the fact remains that
- if they are equal the file in the working directory is unmodified
- and if they differ it is modified. */
- char *ts_rcs;
-
- /* Options from CVS/Entries (keyword expansion), malloc'd. If none,
- then it is an empty string (never NULL). */
- char *options;
-
- /* If non-NULL, there was a conflict (or merely a merge? See merge_file)
- and the time stamp in this field is the time stamp of the working
- directory file which was created with the conflict markers in it.
- This is from CVS/Entries. */
- char *ts_conflict;
- /* Tag specified on the command line, or if none, tag stored in
- CVS/Entries. */
- char *tag;
- /* Date specified on the command line, or if none, date stored in
- CVS/Entries. */
- char *date;
- /* If this is 1, then tag is not a branch tag. If this is 0, then
- tag may or may not be a branch tag. */
- int nonbranch;
-
- /* Pointer to entries file node */
- Entnode *entdata;
-
- /* Pointer to parsed src file info */
- RCSNode *srcfile;
-};
-typedef struct vers_ts Vers_TS;
+#include "vers_ts.h"
Vers_TS *Version_TS (struct file_info *finfo, char *options, char *tag,
char *date, int force_tag_match,