1 Thu Sep 15 08:20:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3 * subr.c (run_setup, run_args): Check USE_PROTOTYPES if defined
4 instead of __STDC__, just like cvs.h does.
6 Thu Sep 15 00:14:58 1994 david d `zoo' zuhn <zoo@monad.armadillo.com>
8 * main.c: rename nocvsrc to use_cvsrc, don`t read ~/.cvsrc when -H
11 Wed Sep 14 21:55:17 1994 david d `zoo' zuhn <zoo@monad.armadillo.com>
13 * cvs.h, subr.c: use size_t for xmalloc, xrealloc, and xstrdup
16 * cvsrc.c: optimize away two calls of getenv
18 * commit.c, subr.c: use mode_t for file mode values (Thanks to jtc@cygnus.com)
20 * main.c: update copyrights in -v message
22 Tue Sep 6 10:29:13 1994 J.T. Conklin (jtc@rtl.cygnus.com)
24 * hash.c (hashp): Replace hash function with one from p436 of the
25 Dragon book (via libg++'s hash.cc) which has *much* better
28 Wed Aug 17 09:37:44 1994 J.T. Conklin (jtc@cygnus.com)
30 * find_names.c (find_dirs): Use 4.4BSD filesystem feature (it
31 contains the file type in the dirent structure) to avoid
34 Tue Aug 16 11:15:12 1994 J.T. Conklin (jtc@cygnus.com)
36 * rcs.h (struct rcsnode): add symbols_data field.
37 * rcs.c (RCS_parsercsfile_i): store value of rcs symbols in
38 symbols_data instead of parsing it.
39 (RCS_symbols): New function used for lazy symbols parsing.
40 Build a list out of symbols_data and store it in symbols if it
41 hasn't been done already, and return the list of symbols.
42 (RCS_gettag, RCS_magicrev, RCS_nodeisbranch, RCS_whatbranch):
44 * status.c: (status_fileproc): Use RCS_symbols.
46 Thu Jul 14 13:02:51 1994 david d `zoo' zuhn (zoo@monad.armadillo.com)
48 * src/diff.c (diff_fileproc): add support for "cvs diff -N" which
49 allows for adding or removing files via patches. (from
50 K. Richard Pixley <rich@cygnus.com>)
52 Wed Jul 13 10:52:56 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
54 * cvs.h: Add macro CVSRFLPAT, a string containing a shell wildcard
55 expression that matches read lock files.
56 * lock.c (readers_exist): Reorganized to use CVSRFLPAT and to not
57 compute the full pathname unless the file matches.
59 * rcs.h: Add macro RCSPAT, a string containing a shell wildcard
60 expression that matches RCS files.
61 * find_names.c (find_rcs, find_dirs): Use RCSPAT.
63 Fri Jul 8 07:02:08 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
65 * entries.c (Register): Pass two arguments to write_ent_proc, in
66 accordance with its declaration.
68 Thu Jun 30 09:08:57 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
70 * logmsg.c (do_editor): Fix typo ("c)continue" -> "c)ontinue").
72 Thu Jun 23 18:28:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
74 * find_names.c (find_rcs, find_dirs): use fnmatch instead of
75 re_comp/re_exec for wildcard matching.
76 * lock.c (readers_exist): Likewise.
78 Fri May 20 08:13:10 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
80 * modules.c (do_module): If something is aliased to itself, print
81 an error message rather than recursing.
83 Fri May 6 19:25:28 1994 david d zuhn (zoo@monad.armadillo.com)
85 * cvsrc.c (read_cvsrc): use open_file for error checking
87 Sat Feb 26 10:59:37 1994 david d zuhn (zoo@monad.armadillo.com)
89 * import.c: use $TMPDIR if available, instead of relying on /tmp
91 Mon Jan 24 19:10:03 1994 david d zuhn (zoo@monad.armadillo.com)
93 * update.c (joining): compare join_rev1 with NULL instead of
94 casting pointer to an int
96 * options.h: remove S_IWRITE, S_IWGRP, S_IWOTH macros
98 * logmsg.c: #if 0 around gethostbyname prototype
100 * hash.c (printnode), find_names.c (add_entries_proc),
101 entries.c (write_ent_proc): correct declaration for function
102 (added void *closure)
104 * cvs.h: header include order reorganization: First include the
105 program config headers (config.h, options.h). Then include any
106 system headers (stdio.h, unistd.h). Last, get the program
107 headers and any cvs supplied library support
109 * commit.c: use xstrdup instead of strdup
111 * cvs.h: redefined USE(var) macro; comment after an #endif
113 * all .c files: remove the semicolon from after the USE(var)
115 Sat Dec 18 00:17:27 1993 david d zuhn (zoo@monad.armadillo.com)
117 * cvs.h: include errno.h if available, otherwise declare errno if
118 it's not somehow else defined
120 * commit.c (checkaddfile): remove unused file argument from
121 RCS_nodeisbranch call
123 * rcs.c (RCS_nodeisbranch): remove file from arguments (was unused)
125 * rcs.h (RCS_nodeisbranch): remove file from prototype
127 * main.c: don't use rcsid when printing version number (the CVS
128 version number is independent of the repository that it comes
131 * hash.c (printlist, printnode): use %p to print pointers, not %x
132 (avoids gcc format warnings)
134 * cvs.h: define USE if GCC 2, to avoid unused variable warning
136 * all .c files: use USE(rcsid)
138 * Makefile.in (VPATH): don't use $(srcdir), but @srcdir@ instead
139 (COMMON_OBJECTS): define, and use in several places
140 (OBJECTS): reorder alphabetically
142 * hash.c (nodetypestring): handle default return value better
144 * modules.c (do_module): remove extra argument to ign_dir_add
146 * main.c (main): initialize cvs_update_env to 0 (zero)
148 * modules.c (do_module): return error code when ignoring directory
149 (instead of a bare return). error code should be zero here
151 * cvs.h: add prototypes for ignore_directory, ign_dir_add
153 * ignore.c: add comments about ignore_directory
155 * root.c (Name_Root): remove unused variables has_cvsadm and path
157 * checkin.c (Checkin): only use -m<message> when message is non-NULL
159 * cvsrc.c (read_cvsrc): make sure homeinit is never used while
160 uninitialized (could have happened if getenv("HOME") had failed)
162 * cvs.h: include unistd.h if available
164 Fri Dec 17 23:54:58 1993 david d zuhn (zoo@monad.armadillo.com)
166 * all files: now use strchr, strrchr, and memset instead of index,
167 rindex, and bzero respectively
169 Sat Dec 11 09:50:03 1993 david d zuhn (zoo@monad.armadillo.com)
171 * version.c (version_string): bump to +104z
173 * Makefile.in: set standard directory variables, CC, and other
174 variables needed to be able to do 'make all' in this directory
176 * import.c: implement -k<subst> options, for setting the RCS
177 keyword expansion mode
179 * all files: use PROTO() macro for ANSI function prototypes
180 instead of #ifdef __STDC__/#else/#endif around two sets of
183 Thu Nov 18 19:02:51 1993 K. Richard Pixley (rich@sendai.cygnus.com)
185 * add.c (add), import.c (import), commit.c (commit): change
186 xmalloc & strcpy to xstrdup.
188 * commit.c (remove_file): correct another static buffer problem.
190 Wed Nov 10 15:01:34 1993 K. Richard Pixley (rich@sendai.cygnus.com)
192 * recurse.c (start_recursion): directories in repository but not
193 in working directory should be added to dirlist. Fixes "update
196 * version.c (version_string): bump to +103r.
198 * commit.c (checkaddfile): mkdir attic only if it does not already
199 exist. comment changes. changed diagnostic about adding on a
200 branch. if a file is added on a branch, remove and replace the
201 internal representation of that rcs file.
203 Tue Nov 9 18:02:01 1993 K. Richard Pixley (rich@sendai.cygnus.com)
205 * add.c (add): if a file is being added on a branch, then say so;
206 add quotes around file names in error messages.
208 Thu Nov 4 16:58:33 1993 K. Richard Pixley (rich@sendai.cygnus.com)
210 * version.c (version_string): bump to +102r.
212 * recurse.c (unroll_files_proc, addfile): new files, forward
213 decls, and prototypes.
214 (recursion_frame): new struct.
215 (start_recursion): rewrite to handle the case of "file1 file2
218 * rcs.c (RCS_parsercsfile): trap and error out on the case where
219 getrcskey tells us it hit an error while reading the file.
221 * commit.c (lock_filesdoneproc): add comment about untrapped error
224 * hash.c (addnode): comment change.
226 * subr.c: add comment about caching.
228 * sanity.sh: updated copyright.
230 Wed Nov 3 14:49:15 1993 K. Richard Pixley (rich@sendai.cygnus.com)
232 * version.c (version_string): bump to +101r.
234 * hash.c (walklist): add a closure for called routines. All
235 callers, callees, and prototypes changed.
237 * hash.c (nodetypestring, printnode, printlist): new functions for
238 dumping lists & nodes.
240 * tag.c (tag_fileproc): fatal out on failure to set tag.
242 Tue Nov 2 14:26:38 1993 K. Richard Pixley (rich@sendai.cygnus.com)
244 * version.c (version_string): bump version to +99.
246 Mon Nov 1 15:54:51 1993 K. Richard Pixley (rich@sendai.cygnus.com)
248 Change buffer allocation for check in messages from static to
250 * add.c (add): dynamically allocate message.
251 (build_entry): check (message != NULL) now that message is a
253 * commit.c (got_message, commit, commit_fileproc,
254 commit_filesdoneproc, commit_direntproc): removed. Replaced by
255 (message != NULL). Dynamically allocate message.
256 * cvs.h: adjust do_editor prototype and forward decl.
257 (MAXMESGLEN): removed.
258 * import.c (import): dynamically allocate message.
259 * logmsg.c (do_editor): change return type to char *. Remove
260 message parameter. Slight optimization to algorythm for
261 removing CVSEDITPREFIX lines. Add comment about fgets lossage.
263 * subr.c (xmalloc): change error message to print number of bytes
264 we were attempting to allocate.
266 Fri Oct 29 14:22:02 1993 K. Richard Pixley (rich@sendai.cygnus.com)
268 * add.c (add): prevent adding a directory if there exists a dead
269 file of the same name.
271 * sanity.sh: update argument to diff from "+ignore-file" to
274 * Makefile.in (TAGS): extend to work from an objdir.
276 Mon Oct 18 18:45:45 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
278 * tag.c, rtag.c: change the default actions to make writing over
279 existing tags harder (but not impossible)
281 Thu Oct 14 18:00:53 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
283 CVS/Root changes from Mark Baushke (mdb@cisco.com)
285 * Makefile.in: added new file called root.c
287 * create_adm.c: will create CVS/Root at the same time that the
288 other CVS files are being created
290 * cvs.h: new CVSADM_ROOT define plus new function externs
292 * main.c: default to using CVS/Root contents for CVSROOT
293 if neither the environment variable or the command line
294 "-d" switch is given. If either are given, perform a
295 sanity check that this directory belongs to that repository.
297 * update.c: if CVS/Root does not exist, then create it
298 during an update -- this may be removed if CVS/Root becomes a
301 * root.c: implement new functions to manipulate CVS/Root
302 [this may be integrated with other utility functions in
303 a future revision if CVS/Root becomes a standard feature.]
305 Wed Sep 29 17:01:40 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
307 * patch.c (patch_fileproc): output an Index: line for each file
309 Mon Sep 6 18:40:22 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
311 * cvs.h: wrap definition of PATH_MAX in #ifndef PATH_MAX/#endif
313 Tue Aug 9 21:52:10 1994 Mark Eichin (eichin@cygnus.com)
315 * commit.c (remove_file): actually allocate space for the
316 filename, not just the directory.
318 Tue Jul 6 19:05:37 1993 david d `zoo' zuhn (zoo@cygnus.com)
320 * diff.c: patches to print an Index: line
322 Mon Jun 14 12:19:35 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
324 * Makefile.in: update install target
326 Tue Jun 1 17:03:05 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
328 * Makefile.in: link cvs against libiberty
330 Wed May 19 14:10:34 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
332 * ignore.c: add code for keeping lists of directories to ignore.
334 * modules.c: new syntax for modules file, !dirname is added to
335 the list of directories to ignore
337 * update.c: don't process directories on the ignore list
339 Tue Apr 6 14:22:48 1993 Ian Lance Taylor (ian@cygnus.com)
341 * cvs.h: Removed gethostname prototype, since it is unnecessary
342 and does not match prototype in <unistd.h> on HP/UX.
344 Mon Mar 22 23:25:16 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
346 * Makefile.in: rename installtest to installcheck
348 Mon Feb 1 12:53:34 1993 K. Richard Pixley (rich@rtl.cygnus.com)
350 * Makefile.in (check, installtest): set RCSBIN so that we
351 explicitly test the appropriate version of rcs as well.
353 Fri Jan 29 13:37:35 1993 K. Richard Pixley (rich@rtl.cygnus.com)
355 * version.c: bump version to +2.
357 Thu Jan 28 18:11:34 1993 K. Richard Pixley (rich@rtl.cygnus.com)
359 * import.c (update_rcs_file): if a file was dead, be sure to check
362 * update.c (checkout_file): if file_is_dead and we *did* have an
365 Tue Jan 26 16:16:48 1993 K. Richard Pixley (rich@rtl.cygnus.com)
367 * sanity.sh: parcel into pieces for easier truncation when
370 * update.c (checkout_file): print the "no longer pertinent"
371 message only if there was a user file.
373 Wed Jan 20 17:08:09 1993 K. Richard Pixley (rich@rtl.cygnus.com)
375 * update.c (checkout_file): remove unused variable s.
376 (join_file): remove unused variables rev & baserev. Fix a typo.
378 * commit.c (commit_fileproc): remove unused variable magicbranch.
380 * sanity.sh: bring back test 45 even though it fails. Update
381 tests against imported files.
383 * add.c (add_directory): move declaration of unused variable.
385 * Makefile.in (xxx): when building in this directory, pass CC for
388 Mon Jan 18 13:48:33 1993 K. Richard Pixley (rich@cygnus.com)
390 * commit.c (remove_file): fix for files removed in trunk
391 immediately after import.
393 * commit.c (remove_file): initialize some variables. Otherwise we
394 end up free'ing some rather inconvenient things.
396 Wed Jan 13 15:55:36 1993 K. Richard Pixley (rich@rtl.cygnus.com)
398 * Makefile.in (check, install, installtest): use the sanity test.
400 * sanity.el: make into real functions and bind to sun keys.
402 * sanity.sh: bring back to working order. Add test for death
405 Tue Dec 22 17:45:19 1992 K. Richard Pixley (rich@cygnus.com)
407 * commit.c (remove_file): when checking in a dead revision to a
408 branch as we are creating the branch, do not lock the underlying
409 revision. Also free some malloc'd memory.
411 Wed Dec 2 13:09:48 1992 K. Richard Pixley (rich@cygnus.com)
413 * RCS-patches: new file.
415 Fri Nov 27 20:12:48 1992 K. Richard Pixley (rich@rtl.cygnus.com)
417 Added support for adding previously removed files, as well as
418 adding and removing files in branches.
420 * add.c (build_entry): add new argument, tag, so as to store in
421 Entries the per directory sticky tag under which a file is
422 added. Changed prototype and caller.
423 (build_entry): Do not prevent file additions if the file exists
425 (add): if the file being adding was previously dead, say so, and
426 mark the Entries file with the addition.
427 * checkin.c (Checkin): adding with a tag no longer means to add,
428 then tag. Hence, remove the tagging operation.
429 * classify.c (Classify_File): if the base RCS version is dead,
430 then the file is being added. If a file being added already
431 exists in the attic, and the base RCS version is NOT dead, then
433 * commit.c (checkaddfile): add the list of srcfiles to calling
434 convention. Change prototype and callers.
435 (remove_file): add message and list of srcfiles to calling
436 convention. Change prototype and callers. When removing a file
437 with a tag, remove the tag only when the tag does not represent
438 a branch. Remove files by committing dead revisions in the
439 appropriate branch. When removing files from the trunk, also
440 move the RCS file into the Attic.
441 (check_fileproc): when adding, and looking for previously
442 existing RCS files, do not look in the Attic.
443 (commit_fileproc): adding files with tags now implies adding the
444 file on a branch with that tag.
445 (checkaddfile): When adding a file on a branch, in addition to
446 creating the rcs file in the Attic, also create a dead, initial
447 revision on the trunk and stub in a magic branch tag.
448 * cvs.h (joining, gca): added prototypes.
449 * rcs.c (RCS_getbranch): now global rather than static.
450 remove prototype and forward decl.
451 (parse_rcs_proc): use RCS_addnode.
452 (RCS_addnode): new function.
453 (RCS_parsercsfile): recognize the new RCS revision
454 newphrase, "dead". Mark the node for the revision.
455 (RCS_gettag): requesting the head of a file in the attic now
456 returns the head of the file in the attic rather than NULL.
457 (RCS_isbranch): use RCS_nodeisbranch.
458 (RCS_nodeisbranch): new function.
459 (RCS_isdead): new function.
460 * rcs.h (RCSDEAD): new macro for new rcs keyword.
461 (struct rcsversnode): new field to flag dead revisions.
462 (RCS_nodeisbranch, RCS_isdead, RCS_addnode): new functions,
463 new prototypes, new externs.
464 (RCS_getbranch): now global, so prototype and extern moved
466 * subr.c (gca): new function.
467 * update.c (join_file): add entries list to calling
468 convention. Caller changed.
469 (update): also search the Attic when joining.
470 (checkout_file): when joining, checkout dead revisions too. If
471 a file has died across an update then say so.
472 (join_file): support joins of dead files against live ones, live
473 files against dead ones, and added files. Change the semantic
474 of a join with only rev specified to mean join specified rev
475 against checked out files via the greatest common ancestor of
476 the specified rev and the base rev of the checked out files.
477 (joining): new function.
478 * vers_ts.c (Version_TS): ALWAYS get the rcs version number.
480 * update.c (update): write the 'C' letter for conflicts.
482 * cvs.h (ParseTag): remove duplicate extern.
484 * add.c (add_directory): do not prompt for interactive
485 verification before adding a directory. Doing so prevents
488 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
490 * Makefile.in, configure.in: removed traces of namesubdir,
491 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
492 copyrights to '92, changed some from Cygnus to FSF.
494 Tue Dec 10 01:24:40 1991 K. Richard Pixley (rich at cygnus.com)
496 * diff.c: do not pass an empty -r option to rcsdiff.
498 * update.c: fix bug where return code from rcsmerge wasn't being
501 * main.c: "rm" and "delete" now synonyms for "remove".
503 * commit.c: abort if editor session fails, but remember to clear
506 * Makefile.in: remove conf.h and checkin.configured on clean.
507 infodir belongs in datadir.
509 Thu Dec 5 22:46:03 1991 K. Richard Pixley (rich at rtl.cygnus.com)
511 * Makefile.in: idestdir and ddestdir go away. Added copyrights
512 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
513 and mandir now keyed off datadir by default.
515 Wed Nov 27 02:47:13 1991 K. Richard Pixley (rich at sendai)
517 * brought Makefile.in's up to standards.text.
522 For older changes, there might be some relevant stuff in the bottom of
523 the NEWS file, but I'm afraid probably a lot of them are lost in the