summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/classify.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-01-26 03:09:57 +0000
committerpeter <peter@FreeBSD.org>1998-01-26 03:09:57 +0000
commite6e45661e44f15cb8c5c6f063080509bd910b98d (patch)
treea9812ba7ade0fde6f62c1626b45d522ba104c314 /contrib/cvs/src/classify.c
parent571cfa0005d94d99d1341bf8ab02be04d4df5f9f (diff)
downloadFreeBSD-src-e6e45661e44f15cb8c5c6f063080509bd910b98d.zip
FreeBSD-src-e6e45661e44f15cb8c5c6f063080509bd910b98d.tar.gz
Import cvs-1.9.23 as at 19980123. There are a number of really nice
things fixed in here, including the '-ko' vs. -A problem with remote cvs which caused all files with -ko to be resent each time (which is damn painful over a modem, I can tell you). It also found a heap of stray empty directories that should have been pruned with the -P flag to cvs update but were not for some reason. It also has the fully integrated rcs and diff, so no more fork/exec overheads for rcs,ci,patch,diff,etc. This means that it parses the control data in the rcs files only once rather than twice or more. If the 'cvs diff' vs. Index thing is going to be fixed for future patch compatability, this is the place to do it.
Diffstat (limited to 'contrib/cvs/src/classify.c')
-rw-r--r--contrib/cvs/src/classify.c54
1 files changed, 17 insertions, 37 deletions
diff --git a/contrib/cvs/src/classify.c b/contrib/cvs/src/classify.c
index 55851f7..57c23cd 100644
--- a/contrib/cvs/src/classify.c
+++ b/contrib/cvs/src/classify.c
@@ -3,19 +3,14 @@
* Copyright (c) 1989-1992, Brian Berliner
*
* You may distribute under the terms of the GNU General Public License as
- * specified in the README file that comes with the CVS 1.4 kit.
+ * specified in the README file that comes with the CVS source distribution.
*
*/
#include "cvs.h"
-#ifdef SERVER_SUPPORT
-static void sticky_ck PROTO((char *file, int aflag, Vers_TS * vers,
- List * entries,
- char *repository, char *update_dir));
-#else
-static void sticky_ck PROTO((char *file, int aflag, Vers_TS * vers, List * entries));
-#endif
+static void sticky_ck PROTO ((struct file_info *finfo, int aflag,
+ Vers_TS * vers));
/*
* Classify the state of a file
@@ -26,7 +21,11 @@ Classify_File (finfo, tag, date, options, force_tag_match, aflag, versp,
struct file_info *finfo;
char *tag;
char *date;
+
+ /* Keyword expansion options. Can be either NULL or "" to
+ indicate none are specified here. */
char *options;
+
int force_tag_match;
int aflag;
Vers_TS **versp;
@@ -68,8 +67,8 @@ Classify_File (finfo, tag, date, options, force_tag_match, aflag, versp,
is what I would expect. */
if (!force_tag_match || !(vers->tag || vers->date))
if (!really_quiet)
- error (0, 0, "use `cvs add' to create an entry for %s",
- finfo->fullname);
+ error (0, 0, "use `%s add' to create an entry for %s",
+ program_name, finfo->fullname);
ret = T_UNKNOWN;
}
}
@@ -79,8 +78,8 @@ Classify_File (finfo, tag, date, options, force_tag_match, aflag, versp,
ret = T_UPTODATE;
else
{
- error (0, 0, "use `cvs add' to create an entry for %s",
- finfo->fullname);
+ error (0, 0, "use `%s add' to create an entry for %s",
+ program_name, finfo->fullname);
ret = T_UNKNOWN;
}
}
@@ -308,12 +307,7 @@ conflict: %s created independently by second party",
ret = T_CHECKOUT;
else
{
-#ifdef SERVER_SUPPORT
- sticky_ck (finfo->file, aflag, vers, finfo->entries,
- finfo->repository, finfo->update_dir);
-#else
- sticky_ck (finfo->file, aflag, vers, finfo->entries);
-#endif
+ sticky_ck (finfo, aflag, vers);
ret = T_UPTODATE;
}
}
@@ -339,12 +333,7 @@ conflict: %s created independently by second party",
ret = T_NEEDS_MERGE;
#else
ret = T_MODIFIED;
-#ifdef SERVER_SUPPORT
- sticky_ck (finfo->file, aflag, vers, finfo->entries,
- finfo->repository, finfo->update_dir);
-#else
- sticky_ck (finfo->file, aflag, vers, finfo->entries);
-#endif /* SERVER_SUPPORT */
+ sticky_ck (finfo, aflag, vers);
#endif
}
else
@@ -434,19 +423,10 @@ conflict: %s created independently by second party",
}
static void
-#ifdef SERVER_SUPPORT
-sticky_ck (file, aflag, vers, entries, repository, update_dir)
-#else
-sticky_ck (file, aflag, vers, entries)
-#endif
- char *file;
+sticky_ck (finfo, aflag, vers)
+ struct file_info *finfo;
int aflag;
Vers_TS *vers;
- List *entries;
-#ifdef SERVER_SUPPORT
- char *repository;
- char *update_dir;
-#endif
{
if (aflag || vers->tag || vers->date)
{
@@ -458,7 +438,7 @@ sticky_ck (file, aflag, vers, entries)
(entdate && vers->date && strcmp (entdate, vers->date)) ||
((entdate && !vers->date) || (!entdate && vers->date)))
{
- Register (entries, file, vers->vn_user, vers->ts_rcs,
+ Register (finfo->entries, finfo->file, vers->vn_user, vers->ts_rcs,
vers->options, vers->tag, vers->date, vers->ts_conflict);
#ifdef SERVER_SUPPORT
@@ -468,7 +448,7 @@ sticky_ck (file, aflag, vers, entries)
It is possible we will later update it again via
server_updated or some such, but that is OK. */
server_update_entries
- (file, update_dir, repository,
+ (finfo->file, finfo->update_dir, finfo->repository,
strcmp (vers->ts_rcs, vers->ts_user) == 0 ?
SERVER_UPDATED : SERVER_MERGED);
}
OpenPOWER on IntegriCloud