PageRenderTime 87ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/contrib/cvs/src/ChangeLog-96

https://bitbucket.org/freebsd/freebsd-head/
#! | 4434 lines | 3324 code | 1110 blank | 0 comment | 0 complexity | 41a7434c0f28d95ff0a2b81613b9fc09 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
  1. Mon Dec 30 15:43:48 1996 Abe Feldman <feldman@harvey.cyclic.com>
  2. * checkout.c (build_dirs_and_chdir): Reproduced block containing
  3. Create_Admin, placing it before Subdir_Register.
  4. * sanity.sh (basicb): Added tests 1a and 9a to test above changes
  5. to the checkout command.
  6. Mon Dec 30 13:29:14 1996 uz@wuschel.ibb.schwaben.com (Ullrich von Bassewitz)
  7. and Jim Kingdon <kingdon@harvey.cyclic.com>
  8. * cvs.h (CVSEDITPREFIXLEN): New define.
  9. * logmsg.c (do_editor): Use CVSEDITPREFIXLEN when deciding whether
  10. to strip off CVSEDITPREFIX and when telling the user what we will
  11. strip off.
  12. Sun Dec 22 22:06:49 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  13. * logmsg.c (do_verify): If noexec, skip the verification *without*
  14. printing a message. Use cvs_output not printf. Skip verification
  15. for client_active.
  16. Wed Dec 18 12:27:35 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  17. * repos.c (Name_Repository): Add comment regarding wording of
  18. "*PANIC*" error message.
  19. 1996-12-18 Jim Kingdon
  20. * client.c (call_in_directory): If the directory we are about
  21. to create is the same as CVSADM as seen by fncmp (for example,
  22. it is "cvs" and filenames are case-insensitive), then give a
  23. fatal error.
  24. Tue Dec 17 13:14:22 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  25. * options.h.in: Add comments about SETXID security holes.
  26. * logmsg.c (do_verify): Reindent comments. Check errno if return
  27. code from run_exec is -1, not if it is 1.
  28. * sanity.sh (info): Move tests info-4 and info-8 to end and rename
  29. them. Add verifymsg tests. Instead of forcibly removing loginfo,
  30. remove it nicely (test info-11).
  31. Tue Dec 17 12:45:32 1996 Abe Feldman <feldman@cyclic.com>
  32. * commit.c, import.c: Call do_verify as well as do_editor.
  33. * cvs.h (CVSROOTADM_VERIFYMSG): Define.
  34. * logmsg.c, cvs.h (do_verify, verifymsg_proc): New functions.
  35. (verifymsg_script): New variable.
  36. * mkmodules.c (filelist): Add CVSROOTADM_VERIFYMSG.
  37. Mon Dec 16 13:24:47 1996 Ian Lance Taylor <ian@cygnus.com>
  38. * lock.c (remove_locks): New static function, copied from part of
  39. Lock_Cleanup.
  40. (Lock_Cleanup): Call remove_locks.
  41. (Writer_Lock): Call remove_locks rather than Lock_Cleanup when
  42. waiting for a lock.
  43. Thu Dec 12 10:36:37 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  44. * login.c (get_cvs_password): If CVS_PASSWORD is set, print a
  45. warning (and then proceed to ignore it). It was a documented
  46. feature, so we should point people who were using it to the
  47. replacement.
  48. Mon Dec 9 12:35:43 1996 Ian Lance Taylor <ian@cygnus.com>
  49. * server.c (server_updated): Change comment to only worry about
  50. umask in the rsh case.
  51. (server): Create the temporary directory, and change the mode to
  52. S_IRWXU.
  53. (switch_to_user): Set the umask to 0, not 077.
  54. Mon Dec 9 10:58:28 1996 Jim Blandy <jimb@floss.cyclic.com>
  55. * login.c (get_cvs_password): Remove code to check for value of
  56. CVS_PASSWORD. Keeping cleartext passwords in environment
  57. variables is a really bad idea on Unix, since anyone can print
  58. out a processes' environment using 'ps' (on BSD variants
  59. anyway). Update help message.
  60. Fri Dec 6 15:59:40 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  61. * sanity.sh: When matching "use .cvs commit. to remove this file
  62. permanently" messages, change "cvs" to "${PROG}".
  63. (rdiff, binfiles): Likewise.
  64. This fixes testing a program named something other than "cvs", e.g.
  65. $ cp cvs cvs-test
  66. $ /bin/sh <srcdir>/sanity.sh `pwd`/cvs-test
  67. 1996-12-02 Jim Kingdon
  68. * client.c: In comment saying that socket buffers don't
  69. implement the blocking routine, say they are blocking.
  70. * buffer.h (struct buffer): In description of input function,
  71. describe blocking, non-blocking, and NEED more fully. Say
  72. what happens if we read a nonzero amount less than NEED and
  73. then get end of file.
  74. * client.c (socket_buffer_input): If NEED == 0, still call
  75. recv (once). Handle the case where recv returns 0.
  76. Sat Nov 30 15:10:07 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  77. * subr.c, cvs.h (file_has_markers): New function.
  78. * rcs.h (RCS_MERGE_PAT): Now a fixed string not a regexp.
  79. * options.h.in (GREP): Removed; no longer used.
  80. * update.c (update_fileproc), commit.c (check_fileproc): Call
  81. file_has_markers rather than GREP.
  82. * rcscmds.c (RCS_merge): Just give a fatal error in the case where
  83. we had been calling GREP. I suspect noone is using this code
  84. any more.
  85. * sanity.sh (conflicts): Rewrite tests 131, 132, and 133 to use
  86. dotest; tests that the above changes didn't break anything.
  87. Fri Nov 29 09:06:41 1996 fnf@ninemoons.com (Fred Fish)
  88. and Jim Kingdon <kingdon@harvey.cyclic.com>
  89. * checkout.c (safe_location): Only call readlink if HAVE_READLINK.
  90. * run.c (piped_child, filter_stream_through_program): If
  91. HAVE_VFORK, call vfork not fork.
  92. * run.c (run_exec): Add comment about why we use vfork.
  93. Mon Nov 25 12:48:31 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  94. * release.c (release): Don't return after processing the first
  95. argument; that kind of defeats the purpose of having a loop, eh?
  96. For client, close the connection after we've processed them all.
  97. * sanity.sh: Remove workaround for modules2-8 test; tests for
  98. above fix. Adjust modules2-6 test to answer both questions.
  99. * login.c: Reindent (all of get_cvs_password, a handful of lines
  100. elsewhere).
  101. Cleanups to release, mostly cosmetic:
  102. * release.c (release_server): New function; breaks out server code
  103. from the release function.
  104. * release.c: Move delete_flag inside the release function.
  105. * release.c (release): Reindent. Rewrite comments about how the
  106. implementation could be improved. Don't declare variables as
  107. "register". Include errno in error message. Don't cast result of
  108. printf to void. Remove unused variable srepos.
  109. * release.c: Remove comments at top of file about what it does.
  110. They were not particularly coherent and they were also out of date
  111. (I think). Likewise for comment in release function about "if we
  112. are in a repository".
  113. * release.c: Change "module" to "directory" in a few messages
  114. since that is what is meant.
  115. * sanity.sh: In tests ignore-195 and ignore-193, change expected
  116. message accordingly.
  117. Sun Nov 24 11:30:55 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  118. * sanity.sh: Clarify a few items in the todo list.
  119. * log.c (log_parse_date): Use the "end" of the epoch not "next
  120. week" as the time which means "no end time".
  121. * sanity.sh (rcs): New test, tests dates and importing RCS files.
  122. 1996-11-19 Jim Kingdon
  123. Visual C++ lint:
  124. * hash.c: Declare qsort_comp.
  125. * update.c: Declare isremoved.
  126. 1996-11-19 Jim Kingdon <kingdon@harvey.cyclic.com>
  127. * root.c, repos.c, modules.c, create_adm.c: Change all calls to
  128. strip_path to strip_trailing_slashes. Basically strip_path is
  129. just an unneeded complication (we should keep the pathname the way
  130. the user specifies it, and the system can worry about things like
  131. consecutive /'s if it wants to). Stripping trailing slashes is
  132. potentially dubious for the same reason, but it is a somewhat
  133. different case which I won't try to tackle now.
  134. * cvs.h (strip_path): Remove declaration.
  135. Tue Nov 19 15:18:13 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  136. There are a lot of details to this change, but the concept is
  137. relatively simple: make it so that for every CVSLCK lock that we
  138. might take out, there is a flag which is set iff we have created
  139. the CVSLCK directory.
  140. * lock.c (struct lock): New structure.
  141. * lock.c: Remove static variables repository and cleanup_lckdir.
  142. They are replaced by global_readlock.repository and
  143. global_readlock.have_lckdir, respectively (except insofar as the
  144. rest of these changes change the concept of cleanup_lckdir).
  145. New static variable global_readlock.
  146. (Reader_Lock, Lock_Cleanup): Use global_readlock in place of
  147. repository.
  148. (lock_simple_remove, set_lock, clear_lock, write_lock): Take a
  149. struct lock * instead of just a repository. Set/clear
  150. lock->have_lckdir instead of cleanup_lckdir.
  151. (set_writelock_proc, unlock_proc): Pass ->data, not ->key, to
  152. write_lock or lock_simple_remove.
  153. (lock_filesdoneproc,lock_dir_for_write): Allocate a struct lock,
  154. put it in the ->data field, and fill in its fields.
  155. (lock_simple_remove): Use lock->have_lckdir as the sole test for
  156. whether the CVSLCK directory needs to be removed. Add
  157. comments about why readlock and writelock variables don't tell us
  158. for sure whether locks exist.
  159. (lock_simple_remove, clear_lock): Use SIG_beginCrSect and
  160. SIG_endCrSect to ensure that ->have_lckdir is set to 0 iff the
  161. CVSLCK directory was really removed.
  162. (lock_simple_remove): Check for errors removing CVSLCK directory.
  163. (lock_simple_remove, Check_Owner, set_lock): Remove all code which
  164. checks userids (including all of Check_Owner and all the AFCVS
  165. code). It was bogus if several CVS processes with the same userid
  166. were running (common if several users share a userid; a common
  167. practice with remote CVS), and with the rest of the changes here
  168. should not be needed.
  169. 1996-11-16 Paul Eggert <eggert@twinsun.com>
  170. * rcs.c (RCS_deltas): Fix unintended trigraphs.
  171. Fri Nov 15 13:06:03 1996 Tom Hageman <tom@basil.icce.rug.nl>
  172. * diff.c (diff_fileproc): In printing error messages, use the
  173. correct filename for which the error occurred.
  174. Sun Nov 10 21:13:38 1996 Paul Sanders <p.sanders@dial.pipex.com>
  175. and Jim Kingdon <kingdon@harvey.cyclic.com>
  176. * server.c: Use all the right cruft which goes along with
  177. including sys/time.h.
  178. * server.c: Include a "copyright" notice.
  179. * server.c: If HAVE_WINSOCK_H, include winsock.h.
  180. * server.c (server): Only set a handler for SIGHUP if it is
  181. defined. Likewise for all the other signals.
  182. * server.c (do_cvs_command): Use DEVNULL not /dev/null.
  183. Fri Nov 08 12:14:20 1996 Jim Kingdon
  184. IBM ICC (OS/2) lint:
  185. * add.c (add): Only declare begin_added_files if
  186. SERVER_SUPPORT.
  187. * client.c (init_sockaddr): Change port argument from
  188. unsigned short to unsigned int. Change hostname
  189. argument from const char * to char *.
  190. Sun Nov 3 18:24:28 1996 Noel Cragg <noel@gargle.rain.org>
  191. * sanity.sh (info): add new tests that check behavior of format
  192. string substitution in loginfo file.
  193. Sat Nov 2 09:39:09 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  194. * client.c (do_deferred_progs): Don't access memory once it is
  195. freed (we already did it right for checkin_progs; do the same
  196. thing for update_progs).
  197. * update.c, client.c, classify.c, client.h, diff.c, commit.c,
  198. create_adm.c: Nuke more PATH_MAX.
  199. Fri Nov 1 18:22:32 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  200. * error.h: Define PROTO if it is not defined.
  201. Wed Oct 30 08:53:20 1996 jalving@ibm.net
  202. * patch.c (patch_fileproc): Set line1 and line2 to NULL up-front
  203. (before the first "goto out") so we don't try to free them.
  204. Wed Oct 30 08:53:20 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  205. * commit.c (remove_file, commit_filesdoneproc), run.c (run_print,
  206. run_exec), modules.c (open_module, cat_module, do_module), update.c
  207. (update_dirleave_proc), tag.c (tag_fileproc): Call cvs_out* rather
  208. than stdio.
  209. * server.c (serve_expand_modules): Remove comment about do_module
  210. writing to stdout/stderr; above changes should fix this.
  211. Tue Oct 29 17:23:59 1996 Ian Lance Taylor <ian@cygnus.com>
  212. * status.c (tag_list_proc): When printing the tag name, don't
  213. truncate it to 25 characters.
  214. Tue Oct 29 12:49:07 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  215. * add.c, checkin.c, checkout.c, filesubr.c: Nuke arbitrary limit
  216. of PATH_MAX. Many more such limits surely remain.
  217. * fileattr.c (fileattr_set): Set attrs_modified *after* we might
  218. call fileattr_read, because fileattr_read clears it.
  219. * sanity.sh (devcom2): New tests, test for above fix and other
  220. behaviors I discovered in the process of looking into it.
  221. Mon Oct 28 08:55:57 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  222. The following changes are to ensure that SYSTEM_CLEANUP is always
  223. called.
  224. * error.c, cvs.h, main.c: Remove error_set_cleanup and related
  225. machinery. It was for a time when error.c was intended to be
  226. shared with other programs, but that is no longer true.
  227. * error.c, error.h (error_exit): New function; like error_cleanup
  228. from main.c but also calls SYSTEM_CLEANUP and exit (EXIT_FAILURE).
  229. * error.c (error, fperror): Call error_exit instead of doing it
  230. ourself.
  231. * server.c (server, serve_valid_responses, switch_to_user,
  232. check_password, pserver_authenticate_connection,
  233. kserver_authenticate_connection): Call SYSTEM_CLEANUP before exit.
  234. * add.c, client.c, import.c, main.c, mkmodules.c, modules.c,
  235. recurse.c, server.c, tag.c, update.c: Call error_exit ()
  236. instead of exit (EXIT_FAILURE).
  237. Sun Oct 27 08:34:16 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  238. * sanity.sh (conflicts): New test 128.5 tests "cvs co -p" in an empty
  239. directory (like 126.5), but when the file has nonempty contents.
  240. * rcs.c (RCS_checkout): If writing to stdout, use cvs_output
  241. rather than fwrite.
  242. * update.c (checkout_file): Call cvs_stderr not fprintf.
  243. These changes should fix some out-of-order bugs which show up in
  244. situations like conflicts-126.5 and conflicts-128.5.
  245. * mkmodules.c (checkout_file): Call RCS_checkout rather than
  246. run_exec on RCS_CO.
  247. Sat Oct 26 18:29:46 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  248. * sanity.sh (rdiff): cd out of testimport directory and remove it
  249. when done.
  250. * sanity.sh (info): Adjust tests to reflect fact that loginfo was
  251. created by cvs init.
  252. * sanity.sh (ignore): Change test 187a1 to allow any number of
  253. files in CVSROOT, not just modules.
  254. * sanity.sh (modules): In tests 148a0 and 148a1, don't expect a
  255. module which defines CVSROOT to itself, since we don't define one
  256. any more. Also change test to rewrite modules rather than append
  257. to it (in case any previous tests are changed to do something with
  258. modules). Change test 155b to allow any number of files in
  259. CVSROOT, not just modules.
  260. * add.c (add_directory): Set rev_old and rev_new fields of struct
  261. logfile_info to NULL (prevents us from trying to free them later).
  262. * commit.c (find_fileproc), import.c (import): Likewise.
  263. * sanity.sh (crerepos): New tests, to test alternate ways of
  264. creating a repository and related matters.
  265. * sanity.sh: Remove tests 1 through 3 and related cruft; replace
  266. them with a new test 1 which merely tests "cvs init". By doing
  267. the obscure stuff in crerepos we avoid having to do all this stuff
  268. any time we run any single test.
  269. Sat Oct 26 16:19:48 1996 Jim Blandy <jimb@totoro.cyclic.com>
  270. * main.c (main): If HAVE_TZSET is #defined, call tzset. This is
  271. harmless on all systems I know of, and required on some.
  272. Fri Oct 25 13:20:44 1996 Ian Lance Taylor <ian@cygnus.com>
  273. * diff.c (diff_file_nodiff): When setting use_rev1, only return
  274. DIFF_SAME if empty_file is DIFF_DIFFERENT and ts_user is not
  275. NULL. Don't get confused by a vn_user field of "0" or one
  276. starting with '-'.
  277. * sanity.sh (death2): Add new death2-diff-{1,2,7,8} tests for
  278. above patch. Renumber existing death2-diff tests to make room.
  279. Fri Oct 25 12:38:29 1996 Jim Wilson <wilson@cygnus.com>
  280. * sanity.sh (death2): In tests death2-diff-{2,4,6,8,10}, allow "_"
  281. in temp file names. The system (tmpnam or whatever) generates
  282. these names so they vary from system to system.
  283. Fri Oct 25 07:52:44 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  284. * logmsg.c (logfile_write): Give an error for several cases which
  285. should not be legal. Adjust comments accordingly.
  286. * mkmodules.c (loginfo_contents): Make description of loginfo much
  287. more concise. This should be a reminder, not full documentation.
  288. Tue Oct 22 10:37:37 1996 Noel Cragg <noel@gargle.rain.org>
  289. * commit.c (update_delproc): free structure members rev_old and
  290. rev_new if they have been allocated.
  291. * mkmodules.c: change loginfo_contents to include a description of
  292. the new format string.
  293. * logmsg.c (logfile_write): change syntax of format string.
  294. Sat Oct 19 16:09:55 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  295. For reference, this takes CVS's text segment from 348348 bytes to
  296. 347420 bytes.
  297. * server.c (requests): Change Directory to rq_essential
  298. per change in doc/cvsclient.texi.
  299. * client.c: Remove use_directory and all code which executed if
  300. it wasn't set. This includes the get_short_pathname function.
  301. * server.c: Likewise, for use_dir_and_repos.
  302. (serve_repository): Give a fatal error.
  303. * server.c (requests): Remove Lost. Change Unchanged to rq_essential.
  304. (serve_lost): Removed.
  305. * server.c, server.h, client.c, vers_ts.c: Remove use_unchanged,
  306. code to set it, and all code which executed if it wasn't set.
  307. Sat Oct 19 12:44:08 1996 J. Richard Sladkey <jrs@world.std.com>
  308. and Jim Kingdon <kingdon@harvey.cyclic.com>
  309. * hash.c (sortlist, new function qsort_comp): Rewrite to use qsort
  310. instead of insert sort. Changes algorithm from n^2 to n log n
  311. (assuming qsort is implemented with quicksort or similar).
  312. Sat Oct 19 12:44:08 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  313. * sanity.sh (basic2): In test basic2-64, use -x and specify types
  314. which exclude E; the test is not built to deal with E (or any
  315. other new types).
  316. Sat Oct 19 12:00:00 1996 Mark Mitchell <mmitchell@usa.net>
  317. and Jim Kingdon <kingdon@harvey.cyclic.com>
  318. * update.c (isemptydir, new function isremoved): Avoid pruning
  319. directories that contain files marked for removal but not
  320. comitted.
  321. * update.c, update.h (isemptydir): Now extern, not static.
  322. * update.c (isemptydir): New parameter might_not_exist handles
  323. difference in functionality from old client_isemptydir. Bring
  324. over the improved error checking from client_isemptydir.
  325. * client.c (client_isemptydir): Removed; isemptydir now suffices.
  326. * update.c (update_dirleave_proc), client.c
  327. (process_prune_candidates): Update callers.
  328. * sanity.sh (deep): Add tests deep-rm* for above fix.
  329. Fri Oct 18 15:53:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  330. * sanity.sh (devcom): Add tests devcom-some* to test watching just
  331. a single file.
  332. * root.c (Name_Root): Use isabsolute to test whether a pathname is
  333. absolute instead of checking for the first character being '/'.
  334. (Reported by Antoine P. Brusseau <brusseau@jprc.com>).
  335. * commit.c (checkaddfile): Free rev only if it is non-NULL (thanks
  336. to cwong@world.std.com (Christopher Wong) for diagnosing this; the
  337. death2-15 test in sanity.sh hits it).
  338. Thu Oct 17 15:21:56 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  339. * sanity.sh: Reenable rdiff tests. Delete rdiff-9 test to reflect
  340. the fact that the change to add a -K option has not been
  341. incorporated. Adjust rdiff-8 test to reflect the fact that the
  342. change to change the default keyword expansion for the first
  343. revision has not been incorporated.
  344. * patch.c (patch_fileproc): Pass the symbolic revision to
  345. RCS_checkout so that Name can be expanded correctly. Reinstates
  346. one of the 30 Sep 96 changes and fixes a bug which the sanity.sh
  347. rdiff test tests for.
  348. Reinstate change from 30 Sep 96:
  349. * patch.c (patch): CLIENT_SUPPORT: send '-f' if NOT force_tag_match
  350. * client.c (process_prune_candidates): Do not ignore errors from
  351. unlink_file_dir.
  352. * filesubr.c (deep_remove_dir): If rmdir returns an error other
  353. than ENOTEMPTY or EEXIST, return -1 not 0. Add workaround for AIX
  354. header bug.
  355. Tue Apr 30 08:21:27 1996 Mike Sutton <mike_sutton@dayton.saic.com>
  356. * checkout.c, history.c: added logging/reporting of cvs export
  357. command
  358. Wed Oct 16 10:16:57 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  359. * sanity.sh: Remove tests 4, 4.5, and 4.75; this functionality is
  360. already tested by 45, 45.5 and other tests.
  361. (ignore): New tests ignore-192, ignore-193, ignore-194, and
  362. ignore-195 test output from "cvs release".
  363. (modules2): New tests modules2-6, modules2-7, and modules2-8 test
  364. ability of cvs release to handle multiple arguments. Since it
  365. currently doesn't, the tests are kludged.
  366. * server.c, cvs.h (cvs_flushout): New function.
  367. * recurse.c (do_file_proc): Call it.
  368. * server.c (cvs_outerr): Call fflush (stdout) in non-server case.
  369. * main.c (main): Don't call setvbuf. The code was incorrectly
  370. checking for "patch" (it really is "rdiff"); the concern about
  371. slowing down large amounts of output is not specific to rdiff
  372. (it applies to "log" for example); and the above changes should
  373. meet the need.
  374. Tue Oct 15 10:22:10 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  375. This is intended to facilitate some future cleanups to the
  376. locking, but by itself it is a simple, conversative rearrangement:
  377. * tag.c (locked_dir, locked_list): Move from here...
  378. * lock.c: ...to here.
  379. * lock.c (Lock_Cleanup): If locked_dir is set clean it up too.
  380. * tag.c (tag_unlockdir): Removed; with the above change
  381. Lock_Cleanup suffices.
  382. * tag.c (tag_lockdir): Move from here...
  383. * lock.c (lock_dir_for_write): ...to here.
  384. * tag.c (tag_fileproc), rtag.c (rtag_fileproc): Update callers.
  385. Move comments concerning why we are locking what we are from
  386. tag_lockdir to here.
  387. * tag.c (tag_filesdoneproc), rtag.c (rtag_filesdoneproc):
  388. Update callers.
  389. * lock.c (Writer_Lock): Made static.
  390. * cvs.h: Update declarations.
  391. * server.c (server_notify): Call lock_dir_for_write rather than
  392. calling Writer_Lock ourselves.
  393. This is intended to facilitate some future cleanups to the
  394. locking, but by itself it is a simple, conversative rearrangement:
  395. * lock.c (Lock_Cleanup): Also dellist (lock_tree_list).
  396. * lock.c, cvs.h (lock_tree_cleanup): Removed; with the above change
  397. Lock_Cleanup suffices.
  398. * commit.c, edit.c, watch.c: Change callers.
  399. Sat Oct 12 21:41:46 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  400. * sanity.sh (deep): Add comment about whether the deep-4b behavior
  401. is considered desirable.
  402. Sat Oct 12 20:36:36 1996 Ian Lance Taylor <ian@cygnus.com>
  403. * client.c (client_send_expansions): Add build_dirs parameter.
  404. Change all callers.
  405. (send_dirent_proc): Get build_dirs from callerdat; if it is
  406. zero, don't send a nonexistent directory to the server.
  407. (send_files): Add build_dirs parameter. Change all callers.
  408. * client.h (send_files): Update prototype.
  409. (send_files_contents): Remove prototype for nonexistent function.
  410. (client_send_expansions): Update prototype.
  411. * sanity.sh (deep): Add deep-4b test for above patch.
  412. Fri Oct 11 14:07:12 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  413. gcc -Wall lint:
  414. * logmsg.c (title_proc): Remove unused variables title and comma.
  415. * sanity.sh (modules2): Don't be picky about whether we are
  416. checking in 1.3 or 1.2 of modules; it depends on whether we are
  417. running all the tests or just some.
  418. Thu Oct 10 14:52:06 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  419. * server.c, server.h (server_dir): New variable.
  420. (output_dir): If it is set, send it before the directory name.
  421. * modules.c (do_module): Set it, in the case of & modules, and
  422. restore it when done.
  423. * sanity.sh (modules): Don't clean up first-dir before starting;
  424. tests now clean up for themselves at the end.
  425. (modules2): New tests, for above fix.
  426. Wed Oct 9 15:52:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
  427. * sanity.sh: Barf immediately if run as root.
  428. * rcs.c (RCS_getrevtime): When giving a date to get_date, use the full
  429. year, not the year - 1900, so that dates after 1999 are parsed
  430. correctly. (Change thanks to Paul Eggert.)
  431. Wed Oct 9 10:59:11 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  432. Clean up gcc -Wmissing-prototypes lint:
  433. * cvs.h (admin, add, checkout, commit, diff, history, import,
  434. cvslog, login, patch, release, cvsremove, rtag, status, tag):
  435. Declare.
  436. * server.c, main.c: Don't declare them here. Don't declare update
  437. either (which is already declared in cvs.h).
  438. * tag.c, cvs.h, main.c, server.c: Rename tag to cvstag to avoid
  439. name conflicts.
  440. * client.c (init_sockaddr, auth_server_port_number), entries.c
  441. (Entnode_Create, Entnode_Destroy), hash.c (nodetypestring),
  442. login.c (construct_cvspass_filename), server.c
  443. (supported_response), wrapper.c (wrap_matching_entry): Make static;
  444. prototype.
  445. * hash.c (printlist): Prototype.
  446. * myndbm.c (mydbm_load_file): Change declaration to prototype.
  447. Tue Oct 8 22:35:34 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  448. * sanity.sh (log2): Re-add these tests; they were deleted for 1.9
  449. (because they were thought to be destabilizing and/or due to
  450. confusion/accident), but they can be put back now.
  451. * sanity.sh (death2): In tests death2-diff-{2,4,6,8,10}, allow "-"
  452. or "%" in temp file names. The system (tmpnam or whatever)
  453. generates these names so they vary from system to system.
  454. Tue Oct 8 12:37:09 1996 Ian Lance Taylor <ian@cygnus.com>
  455. * options.h.in (HAD_RCS4): Remove; no longer used.
  456. Sun Oct 6 15:58:11 1996 Noel Cragg <noel@gargle.rain.org>
  457. * The following changes address problem #56 in the GNATS database
  458. on harvey.cyclic.com:
  459. * logmsg.c (str_list_format): new global -- contains the format
  460. for items to be placed in str_list.
  461. (Update_Logfile): move code that creates the "title" string...
  462. (logfile_write): ...to here. Pull apart the filter program and
  463. look for a format string, extracting it if there is one.
  464. (title_proc): write a given filename/value based on the format
  465. string.
  466. * commit.c (classify_file_internal): new routine, old code (needed
  467. to use the code in more than one place). Determines the status
  468. and version information about a file.
  469. (check_fileproc): use classify_file_internal. Fill in the rev_old
  470. field for the struct logfile_info.
  471. (commit_fileproc): Fill in the rev_new field.
  472. * cvs.h (struct logfile_info): add two new fields -- rev_old and
  473. rev_new -- that keep track of revision numbers across commits.
  474. Fri Sep 27 15:21:47 1996 Peter Wemm <peter@spinner.dialix.com>
  475. * logmsg.c (do_editor): Do not use editinfo if running on the client.
  476. Fri Oct 4 15:11:46 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  477. * server.c (server_cleanup): Temporarily clear noexec when calling
  478. unlink_file_dir. This is so we clean up the temp directory even
  479. when the -n global option is specified.
  480. Wed Oct 2 10:47:33 1996 Norbert Kiesel <nk@col.sw-ley.de>
  481. * client.c (send_repository): initialize some variables before
  482. first usage
  483. Tue Oct 1 13:01:24 1996 Jim Blandy <jimb@floss.cyclic.com>
  484. Revert some of Greg's changes; they're welcome later, but we're
  485. trying to keep CVS stable for pre-release testing at the moment.
  486. * checkin.c, commit.c, cvs.h, diff.c, import.c, main.c, no_diff.c,
  487. options.h.in, patch.c, rcs.c, rcs.h, rcscmds.c, sanity.sh, update.c:
  488. Revert changes of Sep 29 and 30.
  489. Tue Oct 1 13:17:31 1996 Ian Lance Taylor <ian@cygnus.com>
  490. Make sure the server temporary directory is removed even if
  491. Max-dotdot is used.
  492. * server.c (orig_server_temp_dir): New static variable.
  493. (serve_max_dotdot): Don't free server_temp_dir if it is the same
  494. as orig_server_temp_dir.
  495. (do_cvs_command): Use orig_server_temp_dir in error message.
  496. (server_cleanup): Remove orig_server_temp_dir.
  497. (server): Set orig_server_temp_dir. Remove incorrect indentation
  498. of error message.
  499. * import.c (update_rcs_file): Restore new argument to
  500. RCS_checkout, removed in last patch.
  501. Tue Oct 1 00:32:55 1996 Jim Blandy <jimb@floss.cyclic.com>
  502. * import.c: Revert Greg Woods' changes of Sep 30. We may want
  503. them later, but not before 1.9.
  504. Mon Sep 30 23:31:01 1996 Jim Blandy <jimb@floss.cyclic.com>
  505. * log.c (log_fileproc): Now that we might actually find a "desc"
  506. node in rcsfile->other, thanks to Ian's change below, we had
  507. better deal correctly if we find a null pointer in it.
  508. Mon Sep 30 13:55:03 1996 Greg A. Woods <woods@most.weird.com>
  509. * main.c (main): don't set need_to_create_root for "cvs init"
  510. either, just in case it's run from within a valid working
  511. directory.
  512. * sanity.sh (testcvs): oops, forgot to comment out test version I
  513. was using...
  514. * diff.c (diff_fileproc): use Diffbin instead of DIFF (3).
  515. * patch.c (patch_fileproc): use Diffbin instead of DIFF.
  516. * commit.c (check_fileproc): use Grepbin instead of GREP.
  517. * rcscmds.c (RCS_merge): use Grepbin instead of GREP.
  518. * update.c (patch_file): use Diffbin instead of DIFF.
  519. (update_fileproc): use Grepbin instead of GREP.
  520. * cvs.h (Diffbin): new declaration.
  521. (Grepbin): new declaration.
  522. (DIFFBIN_ENV): new manifest to name DIFFBIN environ var.
  523. (GREPBIN_ENV): new manifest to name GREPBIN environ var.
  524. * option.h.in (DIFFBIN_DFLT): renamed from DIFF.
  525. (GREPBIN_DFLT): renamed from GREP.
  526. * main.c (main): new variables diffbin_update_env and
  527. grepbin_update_inv, ala rcsbin_update_env.
  528. (main): new options -D diffbin and -g grepbin
  529. (usg): describe new options -D diffbin and -g grepbin.
  530. (Diffbin): new global variable for DIFF path.
  531. (Grepfbin): new global variable for GREP path.
  532. * options.h.in (RCSBIN_DFLT): mention this needs to be set if
  533. your PATH isn't set properly by rshd.
  534. * sanity.sh (rdiff): re-do Jim's change, but with the original
  535. keywords I had intended (should be a bit more like real life), and
  536. Jim's better RCS date and user matching form.
  537. [I guess that's what I get for checking things in at 3am! ;-)]
  538. Mon Sep 30 17:00:20 1996 Ian Lance Taylor <ian@cygnus.com>
  539. * rcs.c (RCS_reparsercsfile): Store desc field value in main RCS
  540. node data, not in version specific data.
  541. * sanity.sh: Enable log2 test (for local CVS only).
  542. Mon Sep 30 13:01:45 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  543. * sanity.sh (log2): New test, tests cvs add -m. Not yet enabled
  544. in "tests" because CVS currently flunks this test.
  545. * sanity.sh (rdiff, basic2): Allow "cvs server" as well as "cvs
  546. checkout" and friends in messages. In testing output of cvs
  547. status, don't require a tab which isn't there for remote. Skip
  548. test rdiff-9 for remote. In test basic2-64, add missing slash in
  549. the pattern which gets used for remote.
  550. * sanity.sh (rdiff): Fix strings we were matching against which
  551. got keyword-expanded in checking in sanity.sh.
  552. Mon Sep 30 03:21:37 1996 Greg A. Woods <woods@most.weird.com>
  553. * sanity.sh: change all regexpr literal '.' to '\.'
  554. (basic2): why are tests 34 & 42 commented out (because
  555. of 'diff -u'?)?
  556. add tests 56[abc], 57a, and 58a to test import to the main
  557. branch (i.e. branch '1').
  558. (rdiff): new test section for rdiff -K, etc.
  559. (dotest): remove dotest.ex? before running a new test.
  560. (dotest_fail): remove dotest.ex? before running a new test.
  561. (dotest_internal): write expected output to dotest.exp, or if $4
  562. also used, to dotest.ex1 and dotest.ex2.
  563. (patch): renamed this test to 'serverpatch'.
  564. (dotest_lit): rename dotest.res to dotest.exp ala dotest().
  565. remove dotest.ex? before running a new test.
  566. (DOTSTAR): mention the bug exists up to 1.12
  567. (ENDANCHOR): mention the bug exists up to 1.12
  568. (dotest_all_in_one): new function for debugging.
  569. (dotest_line_by_line): new function for debugging.
  570. (dotest_internal_debug): new function for debugging.
  571. (dotest_internal): stop emulating the ancient tests and don't spew
  572. the dotest.tmp contents onto $LOGFILE -- it's just too much
  573. meaningless noise. Only do this if the test fails. Many tests
  574. don't use dotest() yet, so this isn't quite so helpful as it might
  575. otherwise be.
  576. (TODO): mention CVS/* files, especially CVS/Root.
  577. * main.c (main): add a commented out piece of code to suggest that
  578. there should be a function lookup_command_attribute() that could
  579. tell us various things about internal commands, such as whether
  580. they use CVS/Root, or if they're repository-only, or if they need
  581. a working directory, etc....
  582. (main): don't set need_to_create_root if command doesn't use a
  583. local working directory.
  584. * patch.c (patch): CLIENT_SUPPORT: send '-f' if NOT force_tag_match
  585. * error.c (fperror): protect declaration for un-defined __STDC__
  586. * import.c (import): permit imports to a branch with zero dots,
  587. i.e. the trunk.
  588. (update_rcs_file): don't detect conflicts if importing to the
  589. trunk.
  590. (import): add hint that we should allow a module name, instead of
  591. just a pathname relative to $CVSROOT.
  592. (add_rcs_file): if importing to trunk, do it with ci(1).
  593. * import.c: XXX the following are all #if 0'ed out until a full
  594. implementation can be designed....
  595. (cbranch): new variable to support conflict detection on another
  596. branch set by -c.
  597. (import): truncate -b and -c optarg if to fit in static storage.
  598. (import_usage): describe -c
  599. * rcscmds.c (RCS_checkout): add new argument 'rcsver'. If rcsver
  600. is set, turn on 'keywords' to force call to RCS_exec_checkout.
  601. * rcs.c (RCS_exec_checkout): add new argument 'rcsver'. Pass
  602. 'rcsver' to "co" with run_arg().
  603. * cvs.h: (RCS_checkout): add new argument 'rcsver' to prototype.
  604. (RCS_exec_checkout): add new argument 'rcsver' to prototype.
  605. * commit.c (remove_file): supply new argument to RCS_checkout.
  606. * checkin.c (Checkin): supply new argument to RCS_checkout.
  607. * diff.c (diff_fileproc): supply new argument to RCS_checkout.
  608. (diff_file_nodiff): supply new argument to RCS_checkout.
  609. * no_diff.c (No_Difference): supply new argument to RCS_checkout.
  610. * update.c (checkout_file): supply new argument to RCS_checkout.
  611. (patch_file): supply new argument to RCS_checkout.
  612. (join_file): supply new argument to RCS_checkout.
  613. * patch.c: (o_options): new variable for -K
  614. (rcsver): new variable for -V.
  615. (patch): add -K flag which sets o_options, change -V to set
  616. rcsver, send o_options and rcsver if in client mode.
  617. (patch_fileproc): use RCS_checkout instead of RCS_fast_checkout in
  618. order to ensure $Name is expanded, use o_options if set, or
  619. options if set, or by default "-ko" when getting "old" file.
  620. Sun Sep 29 16:43:28 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  621. * rcscmds.c: Replace comment at top of file concerning RCS library
  622. with a reworded version based on discussion between me, Ian, Paul
  623. Eggert, and JimB.
  624. Sun Sep 29 13:09:45 1996 Noel Cragg <noel@kiva.rain.org>
  625. * main.c (main): don't create/update CVS/Root when doing the "cvs
  626. login" command. Consider: if the user executes "cvs login" with
  627. the working directory inside an already checked out module, we'd
  628. incorrectly change the CVS/Root file to reflect the CVSROOT of the
  629. "cvs login" command.
  630. * login.c (login): if we're re-logging into a server for which a
  631. .cvspass entry already exists, copy the temporary file to its home
  632. location rather than renaming. Renaming doesn't work between
  633. filesystems. After copying, unlink the temporary file.
  634. Fri Sep 27 05:24:56 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  635. * diff.c: Add comment about --brief option.
  636. * README-rm-add: Removed; the information which was here is now in
  637. cvs.texinfo.
  638. * Makefile.in (DISTFILES): Remove README-rm-add.
  639. Wed Sep 25 10:00:00 1996 Larry Jones <larry.jones@sdrc.com>
  640. * Makefile.in (cvsbug): Add dependency on version.c.
  641. Wed Sep 25 09:01:48 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  642. * filesubr.c (get_homedir), update.c (update): Reindent.
  643. Wed Sep 25 04:44:54 1996 Jim Blandy <jimb@totoro.cyclic.com>
  644. * version.c (version_string): Bump to 1.8.86.
  645. Wed Sep 25 05:17:50 1996 Jim Blandy <jimb@floss.cyclic.com>
  646. * update.c (update): Don't neglect to pass the -kmumble options
  647. to the server.
  648. * sanity.sh (binfiles-sticky): New tests for above.
  649. * cvsrc.c (read_cvsrc): Deal correctly with lines that specify a
  650. command, but no options; don't corrupt argv.
  651. * sanity.sh: When testing rsh, use the program specified by
  652. the CVS_RSH environment variable, if it's set. Move test to top
  653. of file, so it runs before all other tests (it's really a
  654. meta-test).
  655. * filesubr.c (get_homedir): Use getpwuid to find the home
  656. directory, if the HOME environment variable isn't set.
  657. * ignore.c (ign_add_file): Call get_homedir to find the user's
  658. home directory; this is more portable than calling getpwuid.
  659. Tue Sep 24 09:08:17 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  660. * log.c (log_tree): When walking through branches, follow the
  661. ->prev field rather than following ->next which insures that the
  662. loop only executes once and we only see the last branch.
  663. * sanity.sh (multibranch): Test "cvs log" too; tests for above fix.
  664. Mon Sep 23 09:55:22 1996 Norbert Kiesel <nk@col.sw-ley.de>
  665. * options.h.in: Fixed some typos in the comments and reindented
  666. them.
  667. Sat Sep 21 02:33:26 1996 Jim Blandy <jimb@totoro.cyclic.com>
  668. * sanity.sh: If we're testing remote CVS, make sure rsh itself is
  669. working before running any tests. It's confusing when basica-1
  670. fails just because you don't have the local host in your .rhosts
  671. file.
  672. * version.c (version_string): Bump to 1.8.85.
  673. Thu Sep 19 09:15:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  674. * options.h.in: Define SERVER_FLOWCONTROL, SERVER_HI_WATER,
  675. SERVER_LO_WATER. Several large sites (FreeBSD, Cygnus) have been
  676. pounding on this code without problems, and it doesn't seem to
  677. have any significant downsides.
  678. Tue Sep 17 01:13:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  679. * status.c (status_fileproc): Instead of a default case, set sstat
  680. before the switch. This way gcc -Wall can detect a missed case.
  681. Add explicit T_TITLE case.
  682. Tue Sep 17 00:09:44 1996 Assar Westerlund <assar@pdc.kth.se>
  683. * login.c (login): Print usage if argc < 0.
  684. Tue Sep 17 00:09:44 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  685. * lock.c: In comment, mention one more function of readlocks
  686. (fileattr not updated atomically). Note similarity between
  687. solutions #2 and #5.
  688. * checkout.c (safe_location): Do not reject a location merely
  689. because it textually starts with hardpath; insist that it be
  690. hardpath or a subdirectory thereof.
  691. Mon Sep 16 11:46:36 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  692. * server.c (server_cleanup): Add comment about ignoring errors
  693. from unlink_file_dir.
  694. Mon Sep 16 10:31:48 1996 Norbert Kiesel <nk@col.sw-ley.de>
  695. * main.c: Add support for -T <tmpdir> command line option. This
  696. is needed for servers started via inetd.
  697. (usg): Added line for -T. Improved -z documentation.
  698. (main): Read default for tmpdir from the environment. Test for 'T'
  699. in getopt loop. Use '/tmp' as ultimative fallback. Update
  700. environment if possible.
  701. * cvs.h (TMPDIR_ENV): Added for -T <tmpdir> command line option.
  702. * options.h.in: Add TMPDIR_DFLT
  703. * import.c (update_rcs_file): Use global variable Tmpdir instead
  704. of reading the environment.
  705. * server.c (server_cleanup): Use global variable Tmpdir instead of
  706. reading the environment. Also, replace system("rm -rf") with
  707. unlink_file_dir.
  708. (server): Use global variable Tmpdir instead of reading the
  709. environment.
  710. Thu Sep 12 1996 Jim Kingdon <kingdon@cyclic.com>
  711. * main.c (main): If ARGV0_NOT_PROGRAM_NAME, then just set
  712. program_name to "cvs" rather than argv[0].
  713. Thu Sep 12 12:06:56 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  714. * client.c (update_entries): If we can't write the file, don't
  715. make it a fatal error.
  716. Wed Sep 11 12:46:23 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  717. * client.c (start_server): Move START_SERVER_RETURNS_SOCKET code
  718. so that it is only run for server_method. It is wrong for
  719. pserver_method (in which connect_to_pserver sets server_sock).
  720. * login.c (construct_cvspass_filename): If NO_SLASH_AFTER_HOME,
  721. don't put a '/' between $HOME and .cvspass. Reindent function.
  722. * build_src.com: Add zlib.c, login.c, and scramble.c.
  723. * rcs.c (RCS_deltas): When looking for our branch in ->branches,
  724. check the branch number.
  725. * sanity.sh (multibranch): New tests test for above fix.
  726. * commit.c (precommit_list_proc): Fix typo in last change
  727. (->status to ->type).
  728. Tue Sep 10 23:05:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  729. * Makefile.in (DISTFILES): Add build_src.com.
  730. * build_src.com: Add buffer.c, buffer.obj, and zlib.olb.
  731. Tue Sep 10 20:35:23 1996 Juergen Renz <renz@conware.de>
  732. and Jim Kingdon <kingdon@harvey.cyclic.com>
  733. * commit.c (precommit_list_proc): Update to reflect Jul 22 change
  734. in which p->data was changed from a Ctype to a struct
  735. logfile_info *. This means that commitinfo scripts again get
  736. passed the file list like they should.
  737. Tue Sep 10 20:35:23 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  738. * client.c (auth_server_port_number): Change name of service from
  739. "cvs" to "cvspserver". The latter is what the manual has always
  740. recommended, and it is also officially registered with IANA.
  741. Tue Sep 10 11:12:42 1996 Mark A. Solinski <markso@mcs.com>
  742. and Jim Kingdon <kingdon@harvey.cyclic.com>
  743. * client.c (socket_buffer_output): Change ifdef VMS to ifdef
  744. SEND_NEVER_PARTIAL.
  745. (start_server): Change ifdef VMS to ifdef START_SERVER_RETURNS_SOCKET.
  746. Tue Sep 10 17:15:21 1996 Jim Blandy <jimb@totoro.cyclic.com>
  747. * client.c (auth_server_port_number): Look up "cvs" in the
  748. services database, and use the value it returns; fall back to
  749. CVS_AUTH_PORT if no entry is present.
  750. (connect_to_pserver): Use the correct port number in any error
  751. messages.
  752. Tue Sep 10 11:12:42 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  753. * sanity.sh (newb): New test newb-123j0 tests for another "cvs
  754. status" case.
  755. Sun Sep 8 15:20:37 1996 Ian Lance Taylor <ian@cygnus.com>
  756. * rcs.c (RCS_checkout): Clarify handling of options parameter.
  757. * rcs.c (RCS_checkout): Free buffer allocated by RCS_deltas.
  758. Sat Sep 7 21:28:27 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  759. * main.c (struct cmd): Add comment concerning recognizing unique
  760. abbreviations.
  761. Fri Sep 6 22:31:52 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  762. * rcs.c (RCS_checkout): Fix indentation.
  763. Fri Sep 6 11:48:08 1996 Ian Lance Taylor <ian@cygnus.com>
  764. * rcs.c (RCS_checkout): Replace tag parameter with rev and nametag
  765. parameters. Change all callers.
  766. * rcs.h (RCS_checkout): Update declaration.
  767. * rcs.c (RCS_getversion): Replace return_both parameter with
  768. simple_tag. Change all callers.
  769. (RCS_gettag): Likewise.
  770. * rcs.h (RCS_getversion, RCS_gettag): Update declarations.
  771. * vers_ts.c (Version_TS): Simplify vn_tag initialization using new
  772. simple_tag rather than old return_both.
  773. * cvs.h (struct vers_ts): Clarify vn_tag comment a bit.
  774. * main.c (usg): Only mention -x if ENCRYPTION is defined.
  775. (main): Mention ENCRYPTION define in comment for -x.
  776. * client.h (krb_encrypt_buffer_initialize): Only declare if
  777. ENCRYPTION is defined.
  778. * client.c (start_server): Only encrypt if ENCRYPTION is defined.
  779. * server.c (serve_kerberos_encrypt): Only define if ENCRYPTION is
  780. defined.
  781. (requests): Only include Kerberos-encrypt is ENCRYPTION is
  782. defined.
  783. (krb_encrypt_*): Only define if ENCRYPTION is defined.
  784. Thu Sep 5 17:32:39 1996 Ian Lance Taylor <ian@cygnus.com>
  785. * sanity.sh: When testing remote, use :ext: instead of :server: to
  786. match change made earlier today.
  787. Thu Sep 5 13:57:47 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  788. * client.c (start_tcp_server): Don't allow :kserver: to mean
  789. "direct tcp" (root.c already takes care of this, but I want to
  790. make it clear what is intended, and not intended, here).
  791. (start_server): Handle ext_method (external rsh program) and
  792. server_method (internal rsh client) separately.
  793. * client.c: Take rsh_pid and start_rsh_server out of
  794. RSH_NOT_TRANSPARENT ifdefs. It is useful for things like SSH on NT.
  795. * cvs.h (CVSmethod), root.c (method_names): Add ext_method.
  796. * root.c (parse_cvsroot): Recognize "ext" access method.
  797. If access method is not specified and CVSROOT contains a colon,
  798. use either ext_method or server_method depending on
  799. RSH_NOT_TRANSPARENT.
  800. Thu Sep 5 00:09:49 1996 Ian Lance Taylor <ian@cygnus.com>
  801. * rcs.c (RCS_checkout): Remove flags parameter, which was not
  802. serving any useful purpose. Change all callers.
  803. * rcscmds.c (RCS_exec_checkout): Likewise.
  804. * rcscmds.c (RCS_exec_checkout): Rename from RCS_checkout. Change
  805. all callers.
  806. * rcs.c (RCS_checkout): Rename from RCS_fast_checkout. Change all
  807. callers.
  808. Wed Sep 4 14:42:28 1996 Ian Lance Taylor <ian@cygnus.com>
  809. * rcs.c (RCS_fast_checkout): If tracing, output a message. If
  810. noexec, and workfile is not NULL, just return immediately. Assert
  811. that sout is RUN_TTY or workfile is NULL, rather than using it as
  812. a conditional. Replace found variable with two variables--gothead
  813. and keywords--reflecting what it actually means.
  814. * rcs.c (RCS_fast_checkout): Don't handle the case of workfile set
  815. to "".
  816. * rcscmds.c (RCS_checkout): Likewise.
  817. * checkin.c (Checkin): Pass explicit file name, not "", to
  818. RCS_fast_checkout.
  819. * update.c (join_file): Likewise.
  820. * commit.c (remove_file): Pass explicit file name to
  821. RCS_fast_checkout and RCS_checkin.
  822. * rcs.c (RCS_reparsercsfile): Always continue after seeing
  823. RCSSYMBOLS, even if the value is NULL. Clear the NODELTA flag
  824. after setting delta_pos.
  825. (free_rcsnode_contents): New static function.
  826. (freercsnode): Call free_rcsnode_contents.
  827. (RCS_fast_checkout): If NODELTA is set, reparse the RCS file.
  828. (RCS_settag): New function. Change all callers to old function.
  829. (RCS_deltag, RCS_setbranch): Likewise.
  830. (RCS_lock, RCS_unlock): Likewise.
  831. (RCS_deltas): If NODELTA is set, reparse the RCS file.
  832. * rcs.h (NODELTA): Define.
  833. (RCS_settag, RCS_deltag, RCS_setbranch): Declare.
  834. (RCS_lock, RCS_unlock): Declare.
  835. * rcscmds.c (RCS_exec_settag): Rename from RCS_settag. Don't
  836. check tag against BASE or HEAD (now done in new RCS_settag).
  837. (RCS_exec_deltag): Rename from RCS_deltag.
  838. (RCS_exec_setbranch): Rename from RCS_setbranch.
  839. (RCS_exec_lock): Rename from RCS_lock.
  840. (RCS_exec_unlock): Rename from RCS_unlock.
  841. * cvs.h: Update declarations of renamed functions.
  842. * checkin.c (Checkin): Remove rcscopy variable (no longer needed
  843. because of change in RCS_unlock call).
  844. * commit.c: Include <assert.h>.
  845. (remove_file): Update RCSNode path if the file is renamed.
  846. (unblockrcs): Change rcs parameter to RCSNode. Change all
  847. callers.
  848. (fixbranch): Likewise.
  849. (lock_RCS): Likewise. Don't call RCS_parsercsfile.
  850. (checkaddfile): Update RCSNode path if the file is renamed. After
  851. creating a new file, call RCS_parse. When stubbing a branch, use
  852. the passed in RCSNode if there is one, rather than calling
  853. RCS_Parse. Don't call RCS_Parse again after calling RCS_settag.
  854. Free head and magicrev even if RCS_settag fails.
  855. * import.c (add_rev): Change rcs parameter to RCSNode. Change all
  856. callers.
  857. (add_tag): Likewise.
  858. * rcs.c (RCS_fast_checkout): Amend last patch: if workfile is
  859. NULL, but sout is not NULL, use sout in error message.
  860. Wed Sep 4 13:35:09 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  861. * version.c: Increment version number to 1.8.8.
  862. * Version 1.8.7.
  863. Wed Sep 4 1996 Jim Kingdon <kingdon@cyclic.com>
  864. * client.c (send_file_names): Look for the name to send in
  865. Entries even if the file doesn't exist; we should send the
  866. name as it appears in Entries in the "rm foo; cvs update FOO"
  867. case.
  868. Tue Sep 3 20:50:11 1996 William A. Hoffman <hoffman@albirio.crd.ge.com>
  869. * rcs.c (RCS_fast_checkout): If workfile is NULL, don't try to
  870. include it in error message.
  871. Mon Aug 26 12:27:38 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  872. * mkmodules.c (mkdir_if_needed): Move from here ...
  873. * filesubr.c, cvs.h (mkdir_if_needed): ... to here. Have it
  874. return a value saying whether the directory was created.
  875. * client.c (call_in_directory), edit.c (edit_fileproc): Call it.
  876. Fri Aug 23 19:19:44 1996 Ian Lance Taylor <ian@cygnus.com>
  877. * checkin.c (Checkin): Copy rcs parameter in case it is freed when
  878. finfo->rcs is freed.
  879. Fri Aug 23 14:55:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  880. * remove.c (remove_fileproc): Revert change of 23 Aug to print
  881. getwd and finfo->file in message. The latter is redundant with
  882. fullname and the former is redundant with fullname and the working
  883. directory when CVS was invoked. The implementation was also
  884. lacking as the getwd call could overflow the buffer.
  885. Fri Aug 23 18:40:35 1996 Norbert Kiesel <nk@col.sw-ley.de>
  886. * remove.c (cvsremove): fix remove -f for client/server
  887. Fri Aug 23 11:28:27 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  888. * wrapper.c, cvs.h: Remove conflictHook field of WrapperEntry,
  889. WRAP_CONFLICT in WrapMergeHas, and 'c' option in wrap_add; they
  890. are never used.
  891. Fri Aug 23 11:41:46 1996 Norbert Kiesel <nk@col.sw-ley.de>
  892. * server.c (switch_to_user): use #ifdef SETXID_SUPPORT instead of
  893. #if SETXID_SUPPORT
  894. Thu Aug 22 14:18:43 1996 Ian Lance Taylor <ian@cygnus.com>
  895. * checkin.c (Checkin): Remove local variable xfinfo. Reparse the
  896. RCS file after the checkin. Call RCS_fast_checkout rather than
  897. RCS_checkout.
  898. * cvs.h (RCS_FLAGS_LOCK): Don't define.
  899. (RCS_FLAGS_*): Adjust values to fill in hole left by removal of
  900. RCS_FLAGS_LOCK.
  901. * rcs.c (RCS_fast_checkout): Don't check for RCS_FLAGS_LOCK.
  902. * rcscmds.c (RCS_checkout): Likewise.
  903. * commit.c (commit_fileproc): Remove rcs local variable. If
  904. status is T_MODIFIED, require that finfo->rcs be set, call
  905. Lock_RCS directly, and don't call locate_rcs. If adding to a tag,
  906. require that finfo->rcs be set, and don't call locate_rcs.
  907. (remove_file): Remove rcs local variable. Require that finfo->rcs
  908. be set. Don't call locate_rcs. Don't pass RCS_FLAGS_LOCK to
  909. RCS_checkout; use RCS_lock instead. Call RCS_fast_checkout rather
  910. than RCS_checkout.
  911. (unlockrcs): Use a single rcs parameter rather than two parameters
  912. for file and repository. Change all callers. Don't call
  913. locate_rcs.
  914. (fixbranch): Likewise.
  915. (lockrcsfile): Remove; no more callers.
  916. Tue Aug 20 10:13:59 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  917. * buffer.c, rcs.c: Don't use inline. It wasn't being used in a
  918. loop or any such place where it would matter for performance, and
  919. it was a (minor) portability hassle.
  920. * server.c (server): Change "Dummy argument 0" to "cvs server" and
  921. add comment explaining why.
  922. * rcs.c (linevector_add): Add comment regarding changing \n to \0.
  923. Tue Aug 20 09:19:19 1996 Norbert Kiesel <nk@col.sw-ley.de>
  924. * checkout.c (checkout_proc): Call RCS_parse to get the default
  925. options from the RCS file.
  926. * sanity.sh (binfiles): Add tests 5.5b0 and 5.5b1 for the above fix
  927. Mon Aug 19 18:13:32 1996 Ian Lance Taylor <ian@cygnus.com>
  928. * rcs.c (linevector_init): Make inline. Set lines_alloced to 0,
  929. not 10. Set vector to NULL.
  930. (linevector_add): Remove assertion that lines_alloced is greater
  931. than zero. Initialize lines_alloced if necessary.
  932. (linevector_copy): Initialize lines_alloced if necessary.
  933. (linevector_free): Only free vector if it is not NULL.
  934. (RCS_deltas): Always call linevector_init and linevector_free on
  935. curlines, headlines, and trunklines.
  936. (RCS_fast_checkout): Remove #if 0 around code that calls
  937. RCS_deltas.
  938. Fri Aug 16 17:52:54 1996 Ian Lance Taylor <ian@cygnus.com>
  939. * rcs.c (linevector_add): Handle zero length correctly.
  940. (RCS_deltas): In RCS_FETCH case, the data is in headlines, not
  941. curlines.
  942. (RCS_fast_checkout): Update comment about RCS_deltas: the
  943. testsuite now passes.
  944. * rcs.c (RCS_fully_parse): Use the length of the value, rather
  945. than assuming that there are no embedded zero bytes.
  946. (struct line): Add len field.
  947. (linevector_add): Add len parameter. Change all callers. Use
  948. len, rather than assuming that there are no embedded zero bytes.
  949. Set the len field in new lines.
  950. (RCS_deltas): Use the length of the value, rather than assuming
  951. that there are no embedded zero bytes. Use the line length when
  952. outputting it and when copying it.
  953. (RCS_fast_checkout): Update comment about RCS_deltas to remove
  954. note about supporting zero bytes correctly.
  955. Thu Aug 15 23:38:48 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  956. * commit.c, import.c: Revise comments regarding the fact that we
  957. call start_server before do_editor.
  958. Thu Aug 15 11:30:55 1996 Ian Lance Taylor <ian@cygnus.com>
  959. * server.c: Include <sys/socket.h> if AUTH_SERVER_SUPPORT.
  960. (pserver_authenticate_connection): Set SO_KEEPALIVE on
  961. STDIN_FILENO.
  962. (kserver_authenticate_connection): Likewise.
  963. Thu Aug 15 10:26:41 1996 Norbert Kiesel <nk@col.sw-ley.de>
  964. * server.c (switch_to_user): Fix previous patch to compile it for
  965. both HAVE_KERBEROS and AUTH_SERVER_SUPPORT
  966. Wed Aug 14 14:02:00 1996 Norbert Kiesel <nk@col.sw-ley.de>
  967. * server.c (check_password): if available use getspnam instead of
  968. getpwnam when reading system passwords. This allows cvs pserver
  969. to run on systems with shadow passwords.
  970. (switch_to_user): new static function. Contains the extracted
  971. common tail of kserver_authenticate_connection and
  972. pserver_authenticate_connection. If compiled with SETXID_SUPPORT,
  973. honor the setgid bit if it is set.
  974. (check_repository_password): turn into a static function
  975. (check_password): ditto
  976. (pserver_authenticate_connection): little code cleanup
  977. Wed Aug 14 01:07:10 1996 Greg A. Woods <woods@most.weird.com>
  978. * history.c (history): apply fix posted by Steven Meyer
  979. <steve@blacksmith.com> to info-cvs to correct handling of '-D'
  980. argument. Message-Id: <9608122335.AA01385@nijel.blacksmith.com>
  981. Tue Aug 13 13:42:36 1996 Ian Lance Taylor <ian@cygnus.com>
  982. * log.c (cvslog): Remove comment about calling rlog.
  983. * rcs.c (translate_symtag): Correct typo in comment (l ist ->
  984. list).
  985. * server.c (server_write_entries): Add omitted word (lists) in
  986. comment.
  987. Tue Aug 13 14:01:49 1996 Norbert Kiesel <nk@col.sw-ley.de>
  988. * wrapper.c (wrap_rcsoption): fix memory access error
  989. * rcs.c (RCS_fast_checkout): fix memory access error (triggered
  990. by an empty option string)
  991. Mon Aug 12 17:45:15 1996 Jim Kingdon (unknown@beezley)
  992. * buffer.c, zlib.c: If EIO is not defined, try to define it.
  993. Mon Aug 12 10:33:27 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  994. * import.c (comtable): Add comment concerning applicability with
  995. RCS 5.7.
  996. * server.c (server): If TMPDIR is not an absolute pathname, give
  997. an error.
  998. Mon Aug 12 10:34:43 1996 Norbert Kiesel <nk@col.sw-ley.de>
  999. * main.c: add synonym "ann" for "annotate" again
  1000. Sun Aug 11 17:54:11 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1001. * rcs.h (RCS_RLOG): Removed; no longer used.
  1002. Fri Aug 9 20:16:20 1996 Ian Lance Taylor <ian@cygnus.com>
  1003. * server.c (dirswitch): Open the Entries file with mode "a" rather
  1004. than "w+".
  1005. (server_write_entries): Open the Entries file with mode "a" rather
  1006. than "w".
  1007. * sanity.sh (modules): Add topfiles module and 155cN tests for
  1008. above patch.
  1009. Fri Aug 9 12:11:25 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1010. * main.c (cmd): Add comment regarding synonyms.
  1011. Thu Aug 8 14:40:10 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1012. * main.c: Remove synonyms for "cvs annotate". Synonyms create
  1013. user confusion.
  1014. Thu Aug 8 10:24:04 1996 Norbert Kiesel <nk@col.sw-ley.de>
  1015. * main.c: Revert (undocumented) change to rename the cvs history
  1016. alias "his" to "hist"
  1017. Wed Aug 7 18:26:25 1996 Ian Lance Taylor <ian@cygnus.com>
  1018. * server.c (cvs_output): Change str parameter to const char *.
  1019. Correct loop to print from p, not str.
  1020. (cvs_outerr): Likewise.
  1021. * cvs.h (cvs_output, cvs_outerr): Update declarations.
  1022. * server.c (receive_partial_file): Read and discard remaining file
  1023. data on a write error.
  1024. (serve_modified): Discard data while size > 0, not >=.
  1025. Wed Aug 7 15:11:40 1996 Norbert Kiesel <nk@col.sw-ley.de>
  1026. * main.c (cmds): Add some aliases for "annotate".
  1027. (usg): Improve usage message text
  1028. (cmd_synonyms): New function to print the command synonym list
  1029. (main): Add new option --help-synonyms
  1030. Wed Aug 7 00:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
  1031. Keep track of subdirectories in the Entries file.
  1032. * cvs.h (enum ent_type): Define.
  1033. (struct entnode): Add type field.
  1034. (struct stickydirtag): Add subdirs field.
  1035. (Subdirs_Known, Subdir_Register, Subdir_Deregister): Declare.
  1036. (ignore_files): Update declaration for new parameter.
  1037. (FILESDONEPROC): Add entries parameter.
  1038. (DIRENTPROC, DIRLEAVEPROC): Likewise.
  1039. * entries.c (Entnode_Create): Add type parameter. Change all
  1040. callers.
  1041. (write_ent_proc): If closure is not NULL, treat it as a pointer to
  1042. an int, and set it to 1 if a node is seen which is not ENT_FILE.
  1043. (write_entries): If subdirectory information is known, but no
  1044. subdirectories were written, write an unadorned D to the file.
  1045. (Scratch_Entry): Write an R command to Entries.Log. Don't rewrite
  1046. the Entries file.
  1047. (Register): Set entfilename. Write an A command rather than an
  1048. unadorned entries line.
  1049. (fgetentent): Add cmd and sawdir parameters. Change all callers.
  1050. If CMD is not NULL, expect and return a single character command.
  1051. Handle an initial D by setting the type to ENT_SUBDIR.
  1052. (fputentent): Output an initial D for an ENT_SUBDIR entry.
  1053. (Entries_Open): Handle removal commands in Entries.Log. Record
  1054. whether subdirectory information is known in the list private
  1055. data.
  1056. (Subdirs_Known): New function.
  1057. (subdir_record): New static function.
  1058. (Subdir_Register, Subdir_Deregister): New functions.
  1059. * find_names.c (add_entries_proc): Skip entries that are not
  1060. ENT_FILE.
  1061. (add_subdir_proc): New static function.
  1062. (register_subdir_proc): New static function.
  1063. (Find_Directories): If the Entries file has subdirectory
  1064. information, get the directories out of it. Otherwise, call
  1065. find_dirs, and add the information to the Entries file.
  1066. * recurse.c (struct frame_and_entries): Define.
  1067. (do_recursion): Don't call Entries_Close until after processing
  1068. dirlist. Pass entries to filesdoneproc. Pass a frame_and_entries
  1069. structure to do_dir_proc via walklist.
  1070. (do_dir_proc): Expect a frame_and_entries structure in closure,
  1071. not a recursion_frame. Pass entries to direntproc and
  1072. dirleaveproc.
  1073. * ignore.c (ignore_files): Add entries parameter. Change all
  1074. callers. If we have subdirectory information, check for
  1075. directories in entries.
  1076. * add.c (add): If client_active, call Subdir_Register on each new
  1077. directory.
  1078. (add_directory): Add entries parameter. Change caller. Call
  1079. Subdir_Register.
  1080. * checkout.c (build_dirs_and_chdir): Call Subdir_Register.
  1081. * client.c (call_in_directory): Call Subdir_Register for newly
  1082. created directories. Call Subdirs_Known or Find_Directories after
  1083. calling Entries_Open.
  1084. (process_prune_candidates): Call Subdir_Deregister.
  1085. * commit.c (findmaxrev): Skip entries that are not ENT_FILE.
  1086. * server.c (dirswitch): Call Subdir_Register.
  1087. * update.c (update_dirent_proc): Call Subdir_Register.
  1088. (update_dirleave_proc): Call Subdir_Deregister.
  1089. * Several files: Change direntproc, dirleaveproc, and
  1090. filesdoneproc routines to expect an entries argument.
  1091. * rcs.c (translate_symtag): New static function.
  1092. (RCS_gettag): Use translate_symtag rather than RCS_symbols.
  1093. (RCS_nodeisbranch, RCS_whatbranch): Likewise.
  1094. Tue Aug 6 15:36:09 1996 Ian Lance Taylor <ian@cygnus.com>
  1095. Finish the conversion of cvs log so that it never invokes rlog.
  1096. * log.c (struct log_data): Remove dorlog field. Add nameonly,
  1097. header, long_header, statelist, and authorlist fields.
  1098. (log_usage): Remove rlog-options. Add -R, -h, -t, -b, -s, -w.
  1099. (cvslog): Don't clear opterr. Handle -h, -R, -s, -t, -w. If an
  1100. unrecognized option is seen, call usage.
  1101. (log_parse_list): New static function.
  1102. (log_fileproc): Remove code that called rlog. Check nameonly,
  1103. header, and long_header fields in log_data.
  1104. (log_version_requested): Check statelist and authorlist.
  1105. * log.c (struct datelist): Define.
  1106. (struct log_data): Add datelist and singledatelist fields.
  1107. (log_usage): Add -d.
  1108. (cvslog): Handle -d.
  1109. (log_parse_date): New static function.
  1110. (log_fileproc): Do special single date handling.
  1111. (log_version_requested): Check datelist and singledatelist.
  1112. (log_fix_singledate): New static function.
  1113. Mon Aug 5 23:48:16 1996 Ian Lance Taylor <ian@cygnus.com>
  1114. * log.c (struct option_revlist): Define.
  1115. (struct revlist): Define.
  1116. (struct log_data): Add default_branch and revlist fields.
  1117. (struct log_data_and_rcs): Define.
  1118. (log_usage): Add -N and -r.
  1119. (cvslog): Handle -N and -r.
  1120. (log_parse_revlist): New static function.
  1121. (log_fileproc): Call log_expand_revlist and log_free_revlist.
  1122. Pass log_data_and_rcs structure to log_count_print via walklist.
  1123. (log_expand_revlist, log_free_revlist): New static functions.
  1124. (log_version_requested): New static function.
  1125. (log_count_print): New static function.
  1126. (log_tree): Add log_data and revlist parameter. Change all
  1127. callers.
  1128. (log_abranch): Likewise.
  1129. (log_version): Likewise. Call log_version_requested.
  1130. (version_compare): New static function.
  1131. * sanity.sh (log): New tests for -r, -b, and -N options to log.
  1132. Sun Aug 4 11:19:30 1996 Ian Lance Taylor <ian@cygnus.com>
  1133. Handle simple cases of cvs log without invoking rlog.
  1134. * log.c (struct log_data): Define.
  1135. (cvslog): Use getopt to parse options. Set up a log_data
  1136. structure, and pass it to start_recursion.
  1137. (log_fileproc): Get arguments form callerdat rather than static
  1138. variables. In simple cases, print the log information directly,
  1139. rather than invoking rlog.
  1140. (log_symbol, log_count, log_tree): New static functions.
  1141. (log_abranch, log_version, log_branch): New static functions.
  1142. * rcs.h (struct rcsnode): Add other field.
  1143. (struct rcsversnode): Add other field.
  1144. (RCS_fully_parse): Declare.
  1145. * rcs.c (getrcsrev): Move declaration to start of file.
  1146. (RCS_reparsercsfile): Add all parameter. Change all callers.
  1147. (RCS_fully_parse): New function.
  1148. (freercsnode): Free other list.
  1149. (rcsvers_delproc): Free other list.
  1150. * hash.h (enum ntype): Add RCSFIELD.
  1151. * hash.c (nodetypestring): Handle RCSFIELD.
  1152. Sat Aug 3 19:39:54 1996 Ian Lance Taylor <ian@cygnus.com>
  1153. * log.c (cvslog): Correct position of CLIENT_SUPPORT #endif.
  1154. Thu Jul 25 12:06:45 1996 Ian Lance Taylor <ian@cygnus.com>
  1155. * update.c (join_file): If merging a branch, and the branch
  1156. revision does not exist, just return without doing anything.
  1157. * sanity.sh (join): Add cases file7 and file8 to test above
  1158. patch.
  1159. * server.c (cvsencrypt): Rename from encrypt, to avoid conflict
  1160. with NetBSD unistd.h. Rename all uses.
  1161. * server.c (krb_encrypt_buffer_output): Fix typo in comment (reply
  1162. -> replay).
  1163. Thu Jul 25 10:37:32 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1164. * server.c (krb_encrypt_buffer_output): Fix typo in comment
  1165. (krb_recv_auth -> krb_recvauth).
  1166. Wed Jul 24 09:28:33 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1167. * lock.c (set_lock): Adjust comment regarding why we call stat.
  1168. Wed Jul 24 15:06:08 1996 Ian Lance Taylor <ian@cygnus.com>
  1169. Add encryption support over a Kerberos connection.
  1170. * main.c (usg): Mention -x if CLIENT_SUPPORT.
  1171. (main): Handle -x.
  1172. * client.h (encrypt): Declare.
  1173. (krb_encrypt_buffer_initialize): Declare.
  1174. * client.c (kblock, sched): New static variables if
  1175. HAVE_KERBEROS.
  1176. (start_tcp_server): Remove sched local variable. Copy
  1177. cred.session into kblock.
  1178. (start_server): Turn on encryption if requested.
  1179. * server.c (kblock, sched): New static variables if
  1180. HAVE_KERBEROS.
  1181. (serve_kerberos_encrypt): New static function.
  1182. (requests): Add "Kerberos-encrypt" if HAVE_KERBEROS.
  1183. (kserver_authenticate_connection): Remove sched local variable.
  1184. Copy auth.session into kblock.
  1185. (encrypt): New global variable.
  1186. (struct krb_encrypt_buffer): Define.
  1187. (krb_encrypt_buffer_initialize): New function.
  1188. (krb_encrypt_buffer_input): New static function.
  1189. (krb_encrypt_buffer_output): New static function.
  1190. (krb_encrypt_buffer_flush): New static function.
  1191. (krb_encrypt_buffer_block): New static function.
  1192. (krb_encrypt_buffer_shutdown): New static function.
  1193. Wed Jul 24 09:28:33 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1194. * recurse.c (do_recursion): Add comment about calling
  1195. Name_Repository in !(which & W_LOCAL) case.
  1196. * expand_path.c (expand_variable): Fix typo (varaible -> variable).
  1197. Tue Jul 23 15:05:01 1996 Ian Lance Taylor <ian@cygnus.com>
  1198. * update.c (update_fileproc): In T_REMOVE_ENTRY case, only call
  1199. server_scratch_entry_only if ts_user is NULL.
  1200. * sanity.sh (death2): Add death2-20 test for above patch.
  1201. * diff.c (diff_fileproc): If a file is not in the working
  1202. directory, check that the tag is present before warning that no
  1203. comparison is possible.
  1204. * sanity.sh (death2): Add death2-diff-9 and death2-diff-10 tests
  1205. for above patch.
  1206. Tue Jul 23 12:05:42 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1207. * tag.c (tag_check_valid): Fix indentation.
  1208. * client.c (handle_e): Flush stdout before writing to stderr.
  1209. (handle_m): Flush stderr before writing to stdout.
  1210. Fri Jul 19 16:02:11 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1211. * client.c: Added NO_CLIENT_GZIP_PROCESS to deal with the MacOS
  1212. client where Gzip-stream is supported, but "gzip-file-contents" is
  1213. not.
  1214. Fri Jul 19 16:02:11 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1215. * repos.c: Fixed recent patch which added plain fopen rather than
  1216. CVS_FOPEN
  1217. Mon Jul 22 22:25:53 1996 Ian Lance Taylor <ian@cygnus.com>
  1218. * logmsg.c (tag): New static variable.
  1219. (setup_tmpfile): Don't print the prefix before calling fmt_proc.
  1220. Free tag if it is set.
  1221. (find_type): Get type from logfile_info struct.
  1222. (fmt_proc): Likewise. Print tag information. Handle all prefix
  1223. printing.
  1224. (revision): Remove static variable.
  1225. (Update_Logfile): Remove xrevision parameter. Change all
  1226. callers.
  1227. (title_proc): Get type from logfile_info struct.
  1228. (logfile_write): Remove revision parameter. Change all callers.
  1229. * cvs.h (struct logfile_info): Define.
  1230. (Update_Logfile): Update prototype.
  1231. * commit.c (find_fileproc): Set logfile_info information.
  1232. (check_fileproc): Likewise.
  1233. (commit_filesdoneproc): Don't call ParseTag.
  1234. (update_delproc): Free logfile_info information.
  1235. * add.c (add_directory): Set logfile_info information.
  1236. * import.c (import): Likewise.
  1237. * tag.c (tag_check_valid): The special BASE and HEAD tags are
  1238. always valid.
  1239. * sanity.sh (basica): Add basica-6.3 test for above patch.
  1240. Mon Jul 22 14:41:20 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1241. * update.c (merge_file): Pass 0 not NULL to checkout_file (20 Jul
  1242. 96 change changed other calls to checkout_file but missed this one).
  1243. Sat Jul 20 00:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
  1244. * update.c (join_file): Check whether the target of the merge is
  1245. the same as the working file revision before checking whether the
  1246. file was added during the merge.
  1247. * update.c (scratch_file): Remove existing parameters, and add a
  1248. single parameter of type struct file_info. Change all callers.
  1249. Warn if unlink_file fails.
  1250. (checkout_file): Remove resurrecting_out parameter. Add adding
  1251. parameter. Change all callers. Remove joining code.
  1252. (join_file): Remove resurrecting parameter. Rewrite to handle
  1253. joining dead or added revisions.
  1254. * classify.c (Classify_File): If there is no user file, and the
  1255. RCS file is dead, return T_UPTODATE rather than T_CHECKOUT.
  1256. * checkout.c (checkout_proc): Set W_ATTIC if there is a join tag.
  1257. * sanity.sh (join): New set of tests for above patches.
  1258. (death): Adjust tests 86, 89, 89a, 92.1c, 95 for above patches.
  1259. (import): Adjust test 113 for above patches.
  1260. Thu Jul 18 19:24:08 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1261. * lock.c: Add comment explaining what locks are for. Also discuss
  1262. various changes to locking which get proposed from time to time.
  1263. * sanity.sh (death2): Change a number of test names from death-*
  1264. to death2-*.
  1265. * wrapper.c (wrap_setup): Don't look in repository if client_active.
  1266. * wrapper.c, cvs.h (wrap_send): New function.
  1267. * update.c (update), import.c (import): Call it.
  1268. * sanity.sh (binwrap): Do binwrap tests for remote as well as
  1269. local; tests for above fixes.
  1270. * wrapper.c: Add a few FIXME comments.
  1271. Thu Jul 18 18:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
  1272. * sanity.sh (patch): Fix names of a couple of tests to say patch
  1273. rather than death2.
  1274. Thu Jul 18 16:19:21 1996 Bill Bumgarner <bbum@friday.com>
  1275. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1276. * add.c (add), import.c (add_rcs_file): Check for options from
  1277. wrappers and use them if specified.
  1278. * cvs.h (WrapMergeHas): Add WRAP_RCSOPTION.
  1279. * wrapper.c (WrapperEntry): Add rcsOption field.
  1280. (wrap_add): Allow a single character argument to an option.
  1281. (wrap_add): Handle -k option.
  1282. (wrap_add_entry): Handle rcsOption field.
  1283. (wrap_name_has): Handle WRAP_RCSOPTION.
  1284. * wrapper.c, cvs.h (wrap_rcsoption): New function.
  1285. * add.c, import.c, wrapper.c: Minor beautification (mostly
  1286. removing trailing spaces).
  1287. * sanity.sh (binwrap): New tests test for this feature.
  1288. Wed Jul 17 10:14:20 1996 Ian Lance Taylor <ian@cygnus.com>
  1289. * checkout.c (checkout): Remove extraneous else accidentally
  1290. inserted in last checkin.
  1291. Tue Jul 16 11:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
  1292. * sanity.sh (import): Use quoting to avoid expansion of RCS ID
  1293. strings.
  1294. * sanity.sh (import): Use dotest to examine the output of test
  1295. 113, and the actual contents of the file in test 116.
  1296. * update.c (join_file): Always skip rcsmerge if the two revisions
  1297. are the same (the old code always did the rcsmerge when two -j
  1298. options were specified).
  1299. * checkout.c (history_name): New static variable.
  1300. (checkout): Permit both tag and date to be specified. Set
  1301. history_name.
  1302. (checkout_proc): Use history_name when calling history_write.
  1303. * rcs.c (RCS_getversion): If both tag and date are set, use
  1304. RCS_whatbranch to get the branch revision number of a symbolic
  1305. tag.
  1306. (RCS_getdatebranch): If the branch revision itself is early
  1307. enough, then use it if the first branch is not early enough. Add
  1308. comment for invalid RCS file. Don't bother to check for NULL
  1309. before calling xstrdup, since xstrdup checks anyhow.
  1310. * client.h (file_gzip_level): Declare.
  1311. * client.c (file_gzip_level): Define.
  1312. (start_server): Don't set gzip_level to zero after sending
  1313. Gzip-stream command. Set file_gzip_level after sending
  1314. gzip-file-contents command.
  1315. (send_modified): Use file_gzip_level rather than gzip_level.
  1316. * server.c (server_updated): Likewise.
  1317. (serve_gzip_contents): Likewise.
  1318. * sanity.sh (patch): New tests. Test remote CVS handling of
  1319. unpatchable files.
  1320. * sanity.sh (death2): Accept a '.' in the temporary file name
  1321. printed by diff.
  1322. * rcscmds.c (RCS_checkin): Remove noerr parameter. Change all
  1323. callers.
  1324. * cvs.h (RCS_checkin): Update declaration.
  1325. * commit.c (remove_file): Pass RCS_FLAGS_QUIET to RCS_checkin.
  1326. * history.c (history): Cast sizeof to int to use correct type in
  1327. error printf string.
  1328. (report_hrecs): Cast strlen result to int to use correct type in
  1329. printf string.
  1330. * server.c (cvs_flusherr): Correct typo in comment.
  1331. * rcs.c (getrcskey): Hoist three constant strcmp calls out of the
  1332. value reading loop.
  1333. * fileattr.c (fileattr_get): Change parameter types from char * to
  1334. const char *.
  1335. (fileattr_get0, fileattr_modify, fileattr_set): Likewise.
  1336. (fileattr_newfile): Likewise.
  1337. * fileattr.h (fileattr_get): Update declaration.
  1338. (fileattr_get0, fileattr_modify, fileattr_set): Likewise.
  1339. (fileattr_newfile): Likewise.
  1340. Thu May 16 11:12:18 1996 Mark P. Immel <immel@radix.net>
  1341. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1342. * client.h, client.c, checkout.c (client_send_expansions):
  1343. Pass an additional parameter indicating where the checkout is
  1344. to occur, to avoid passing the wrong information to send_files().
  1345. * sanity.sh (basicb): New test basicb-cod-1 tests for above fix.
  1346. Mon Jul 15 18:26:56 1996 Ian Lance Taylor <ian@cygnus.com>
  1347. * recurse.c (do_recursion): Require a repository before calling
  1348. Find_Names.
  1349. * repos.c (Name_Repository): Remove sanity checks which spend time
  1350. examining the filesystem.
  1351. Mon Jul 15 1996 Jim Kingdon <kingdon@cyclic.com>
  1352. * client.c (send_file_names): Send file names as they appear
  1353. in CVS/Entries, rather than as specified (in cases where they
  1354. might differ in case).
  1355. (send_fileproc): Use file name from CVS/Entries (vers->entdata->user)
  1356. rather than file name as specified (finfo->file) when available.
  1357. Sun Jul 14 15:39:44 1996 Mark Eichin <eichin@cygnus.com>
  1358. and Ian Lance Taylor <ian@cygnus.com>
  1359. Improve diff -N handling of nonexistent tags and removed files.
  1360. * diff.c (enum diff_file): New definition for whole file, moving
  1361. unnamed enum out of diff_fileproc, renaming DIFF_NEITHER to
  1362. DIFF_DIFFERENT, and adding DIFF_SAME.
  1363. (diff): Look through the repository even if only one revision is
  1364. given.
  1365. (diff_fileproc): Change empty_file to be enum diff_file. If there
  1366. is no user revision, but there is a repository file, treat it as a
  1367. removed file. Pass empty_file to diff_file_nodiff, and set it
  1368. from the return value.
  1369. (diff_file_nodiff): Change return type to enum diff_file. Replace
  1370. just_set_rev parameter with enum diff_file empty_file parameter.
  1371. Change handling of a missing tag to return an enum diff_file value
  1372. if empty_files is set, rather than reporting an error. Free tmp
  1373. if xcmp returns 0.
  1374. * sanity.sh (death2): Add tests for above patches.
  1375. Sat Jul 13 19:11:32 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1376. * rcs.c (annotate): In sending options to server, reverse sense of
  1377. test so that we send -f iff -f was specified, rather than iff -f was
  1378. not specified.
  1379. Fri Jul 12 20:23:54 1996 Greg A. Woods <woods@most.weird.com>
  1380. * zlib.c (compress_buffer_input): add a couple of casts for
  1381. uses of z_stream's next_in and next_out
  1382. Fri Jul 12 18:55:26 1996 Ian Lance Taylor <ian@cygnus.com>
  1383. * zlib.c: New file.
  1384. * client.c (log_buffer_block): Call set_block and set_nonblock,
  1385. rather than lb->buf->block.
  1386. (log_buffer_shutdown): New static function.
  1387. (get_responses_and_close): Call buf_shutdown on to_server and
  1388. from_server.
  1389. (start_server): If "Gzip-stream" is supported, use it rather than
  1390. "gzip-file-contents".
  1391. * server.c (print_error): Call buf_flush rather than
  1392. buf_send_output.
  1393. (print_pending_error, serve_valid_responses): Likewise.
  1394. (serve_expand_modules, serve_valid_requests): Likewise.
  1395. (do_cvs_command): Call buf_flush rather than buf_send_output
  1396. before the fork, and in the parent after the child has completed.
  1397. In the child, set buf_to_net and buf_from_net to NULL.
  1398. (serve_gzip_stream): New static function.
  1399. (requests): Add "Gzip-stream".
  1400. (server_cleanup): Don't do anything with buf_to_net if it is
  1401. NULL. Call buf_flush rather than buf_send_output. Call
  1402. buf_shutdown on buf_to_net and buf_from_net. Call error for an
  1403. malloc failure rather than buf_output to buf_to_net.
  1404. * buffer.h (struct buffer): Add shutdown field.
  1405. (buf_initialize): Update declaration for new shutdown parameter.
  1406. (compress_buffer_initialize): Declare.
  1407. (buf_shutdown): Declare.
  1408. * buffer.c (buf_initialize): Add shutdown parameter. Change all
  1409. callers.
  1410. (buf_shutdown): New function.
  1411. * Makefile.in (SOURCES): Add zlib.c
  1412. (OBJECTS): Add zlib.o.
  1413. ($(PROGS)): Depend upon ../zlib/libz.a.
  1414. (cvs): Link against ../zlib/libz.a.
  1415. (zlib.o): New target.
  1416. Fri Jul 12 1996 Jim Kingdon <kingdon@cyclic.com>
  1417. * client.c (log_buffer_input, log_buffer_output): Use size_t
  1418. to avoid Visual C++ signed/unsigned warnings.
  1419. Thu Jul 11 22:01:37 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1420. * client.c (handle_f): Reindent.
  1421. * client.c (mode_to_string, handle_m, handle_e,
  1422. auth_server_port_number, get_responses_and_close), server.c
  1423. (pserver_authenticate_connection, serve_modified,
  1424. serve_enable_unchanged, wait_sig, server_cleanup): Reindent.
  1425. * server.c: Remove #if 0'd block of code above
  1426. check_repository_password; it was yanked out of some unknown
  1427. context and didn't seem to be very useful.
  1428. Thu Jul 11 20:10:21 1996 Ian Lance Taylor <ian@cygnus.com>
  1429. * server.c (do_cvs_command): Pass new special parameter to
  1430. buf_copy_counted. If it gets set to -1, send an 'F' response if
  1431. the client supports it, and call cvs_flusherr.
  1432. (cvs_flusherr): New function.
  1433. * cvs.h (cvs_flusherr): Declare.
  1434. * client.c (handle_f): New static function.
  1435. (responses): Add "F".
  1436. * buffer.c (buf_send_special_count): New function.
  1437. (buf_copy_counted): Add special parameter. Handle negative counts
  1438. specially.
  1439. * buffer.h (buf_send_sepcial_count): Declare.
  1440. (buf_copy_counted): Update declaration.
  1441. * lock.c (lock_wait, lock_obtained): Call cvs_flusherr.
  1442. Change the client to use the buffer data structure.
  1443. * client.c: Include "buffer.h".
  1444. (to_server): Change to be struct buffer *.
  1445. (to_server_fp): New static variable.
  1446. (from_server): Change to be struct buffer *.
  1447. (from_server_fp): New static variable.
  1448. (from_server_logfile, to_server_logfile): Remove.
  1449. (buf_memory_error): New static function.
  1450. (struct log_buffer): Define.
  1451. (log_buffer_initialize, log_buffer_input): New static functions.
  1452. (log_buffer_output, log_buffer_flush): New static functions.
  1453. (log_buffer_block): New static function.
  1454. (struct socket_buffer): Define if NO_SOCKET_TO_FD.
  1455. (socket_buffer_initialize): New static function if
  1456. NO_SOCKET_TO_FD.
  1457. (socket_buffer_input, socket_buffer_output): Likewise.
  1458. (socket_buffer_flush): Likewise.
  1459. (read_line): Rewrite to use buf_read_line. Remove eof_ok
  1460. parameter (it was always passed as 0); change all callers.
  1461. (send_to_server): Rewrite to use buf_output.
  1462. (try_read_from_server): Rewrite to use buf_read_data.
  1463. (get_responses_and_close): Use from_server_fp and to_server_fp for
  1464. the streams. Check buf_empty_p when checking for dying gasps.
  1465. (start_server): Don't set from_server_logfile and
  1466. to_server_logfile; instead, call log_buffer_initialize. If
  1467. NO_SOCKET_TO_FD and use_socket_style, call
  1468. socket_buffer_initialize; otherwise, call
  1469. stdio_buffer_initialize.
  1470. * buffer.c: Compile if CLIENT_SUPPORT is defined.
  1471. (buf_flush): Fix comment to describe return value.
  1472. (buf_read_line): Add lenp parameter. Change all callers. Look
  1473. for a line terminated by \012 rather than \n.
  1474. * buffer.h: Compile if CLIENT_SUPPORT is defined.
  1475. (buf_read_line): Update declaration.
  1476. * server.c (server): Initialize buf_to_net, buf_from_net,
  1477. saved_output, and saved_outerr before setting error_use_protocol.
  1478. (pserver_authenticate_connection): Don't set error_use_protocol.
  1479. Errors before the authentication is complete aren't handled
  1480. cleanly anyhow. Change error call after authentication to use
  1481. printf.
  1482. Thu Jul 11 1996 Jim Kingdon <kingdon@cyclic.com>
  1483. * client.c (start_server): Open logfiles in binary, not text, mode.
  1484. Wed Jul 10 19:24:22 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1485. * server.c (print_pending_error, print_error): Remove comments
  1486. about deadlocks; they don't apply here. Add comments saying
  1487. that these functions must only be called when it is OK to
  1488. send output (which is why the deadlock concern doesn't apply). The
  1489. comments remain for server_cleanup and serve_valid_responses,
  1490. where they are an example of the "print a message and exit"
  1491. behavior which is noted in cvsclient.texi and which also exists
  1492. places like kserver_authenticate_connection.
  1493. Wed Jul 10 18:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
  1494. * server.c (print_error): Add comment warning about potential
  1495. deadlock.
  1496. (print_pending_error, serve_valid_responses): Likewise.
  1497. (server_cleanup): Likewise.
  1498. (serve_directory): Don't call buf_send_output.
  1499. (serve_modified, serve_notify, server, cvs_outerr): Likewise.
  1500. (serve_expand_modules): Call buf_send_output.
  1501. (serve_valid_requests): Likewise.
  1502. Wed Jul 10 15:51:29 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1503. * main.c (main): Print a warning for rlog command.
  1504. Wed Jul 10 15:00:55 1996 Ian Lance Taylor <ian@cygnus.com>
  1505. Abstract the buffer data structure away from the underlying
  1506. communication medium.
  1507. * buffer.h (struct buffer): Remove fd and output fields. Add
  1508. input, output, flush, block, and closure fields.
  1509. (buf_initialize, buf_nonio_initialize): Declare.
  1510. (stdio_buffer_initialize, buf_flush): Declare.
  1511. (buf_read_line, buf_read_data): Declare.
  1512. * buffer.c: Include <assert.h>. Don't include <fcntl.h>.
  1513. (O_NONBLOCK, blocking_error): Don't define.
  1514. (buf_initialize, buf_nonio_initialize): New functions.
  1515. (buf_send_output): Use output function, rather than write.
  1516. (buf_flush): New function.
  1517. (set_nonblock, set_block): Use block function, rather than calling
  1518. fcntl.
  1519. (buf_send_counted): Don't check output.
  1520. (buf_input_data): Call input function, rather than read.
  1521. (buf_read_line, buf_read_data): New functions.
  1522. (buf_copy_lines, buf_copy_counted): Don't check output.
  1523. (stdio_buffer_initialize): New function.
  1524. (stdio_buffer_input, stdio_buffer_output): New static functions.
  1525. (stdio_bufer_flush): New static function.
  1526. * server.c: Include "getline.h".
  1527. (buf_to_net): Change to be a pointer. Change all uses.
  1528. (protocol, saved_output, saved_outerr): Likewise.
  1529. (buf_from_net): New static variable.
  1530. (no_mem_error, NO_MEM_ERROR, read_line): Remove.
  1531. (struct fd_buffer): Define.
  1532. (fd_buffer_initialize, fd_buffer_input): New static functions.
  1533. (fd_buffer_output, fd_buffer_flush): New static functions.
  1534. (fd_buffer_block): New static function.
  1535. (serve_directory): Call buf_read_line rather than read_line.
  1536. (serve_notify, server): Likewise.
  1537. (receive_partial_file): Call buf_read_data rather than fread.
  1538. (serve_modified): Call buf_read_line rather than read_line. Call
  1539. buf_read_data rather than fread.
  1540. (do_cvs_command): Initialize buffers with fd_buffer_initialize.
  1541. Change stdoutbuf, stderrbuf, and protocol_inbuf to be pointers.
  1542. (server): Initialize buffers using fd_buffer_initialize,
  1543. stdio_buffer_initialize, and buf_nonio_initialize.
  1544. (check_repository_password): Call getline rather than read_line.
  1545. Wed Jul 10 15:51:29 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1546. * commit.c (find_fileproc): Add comments describing a few cases
  1547. that we aren't handling.
  1548. Tue Jul 9 04:33:03 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1549. * rcs.c (RCS_deltas): New function, created from guts of old
  1550. annotate_fileproc.
  1551. (annotate_fileproc): Call RCS_deltas.
  1552. (RCS_fast_checkout): Call it (commented out for now; see comment
  1553. for reasons).
  1554. * cvs.h, recurse.c (start_recursion): Add callerdat argument.
  1555. * cvs.h: Add callerdat argument to recursion processor callbacks.
  1556. * recurse.c: add it to struct recursion_frame and pass it to all
  1557. the callbacks.
  1558. * admin.c, client.c, commit.c, diff.c, edit.c, lock.c, log.c,
  1559. patch.c, rcs.c, remove.c, rtag.c, status.c, tag.c, update.c,
  1560. watch.c: Update all the functions used as callbacks. Update calls
  1561. to start_recursion.
  1562. * commit.c (find_filesdoneproc, find_fileproc, find_dirent_proc,
  1563. commit), tag.c (val_fileproc, tag_check_valid): Use callerdat
  1564. instead of a static variable.
  1565. * recurse.c (do_recursion): Make static and move declaration to here...
  1566. * cvs.h: ...from here.
  1567. * recurse.c (do_recursion): Replace plethora of arguments with
  1568. single struct recursion_frame *. Change callers.
  1569. * recurse.c: New structure frame_and_file. Use it and existing
  1570. struct recursion_frame structures to pass info to do_file_proc and
  1571. do_dir_proc. Remove globals fileproc, filesdoneproc, direntproc,
  1572. dirleaveproc, which, flags, aflag, readlock, and dosrcs.
  1573. Tue Jul 9 11:13:29 1996 Ian Lance Taylor <ian@cygnus.com>
  1574. * modules.c (do_module): Call cvs_outerr rather than fprintf.
  1575. Mon Jul 8 1996 Jim Kingdon <kingdon@cyclic.com>
  1576. * rcs.c (RCS_fast_checkout): If -kb is not in use, open the
  1577. working file in text, not binary, mode.
  1578. Sun Jul 7 10:36:16 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1579. * rcscmds.c (RCS_settag): Add comment regarding moving check for
  1580. reserved tag names to RCS_check_tag.
  1581. * rcscmds.c: Add comment regarding librarifying RCS and related
  1582. issues. This is a lightly edited version of a message I sent to
  1583. the CVS developers and didn't get flamed for, so it would appear
  1584. to be relatively uncontroversial.
  1585. * rcs.c (annotate): Remove comment suggesting -r option and
  1586. related functionality; it is done.
  1587. Fri Jul 5 17:19:57 1996 Ian Lance Taylor <ian@cygnus.com>
  1588. * client.c (last_entries): Make file static, rather than function
  1589. static within call_in_directory.
  1590. (get_responses_and_close): If last_entries is not NULL, pass it to
  1591. Entries_Close.
  1592. * server.c (server_pause_check): Check for errors when reading
  1593. from flowcontrol_pipe.
  1594. * client.c (call_in_directory): If dir_name is ".", call
  1595. Create_Admin if there is no CVS directory.
  1596. (send_dirent_proc): If there is no CVS subdirectory, pretend that
  1597. the directory does not exist (i.e., don't try to send any files in
  1598. the directory).
  1599. * server.c (dirswitch): If dir is "." in the top level repository,
  1600. add "/." after the Repository entry.
  1601. * sanity.sh (modules): Add test 155b for above patches.
  1602. Thu Jul 4 15:57:34 1996 Ian Lance Taylor <ian@cygnus.com>
  1603. * server.c (buf_to_net): Move definition near top of file.
  1604. (read_line): Call buf_send_output rather than fflush.
  1605. (print_error): Output information to buf_to_net buffer rather than
  1606. stdout.
  1607. (print_pending_error, serve_valid_responses): Likewise.
  1608. (server_notify, do_cvs_command, server_co): Likewise.
  1609. (expand_proc, serve_expand_modules, server_prog): Likewise.
  1610. (serve_valid_requests, server_cleanup, server): Likewise.
  1611. (server_notify): Don't call fflush on stdout.
  1612. (do_cvs_command): Flush saved_output and saved_outerr to
  1613. buf_to_net before fork. Flush buf_to_net before fork. In child,
  1614. just initialize memory_error field of saved_output and
  1615. saved_outerr.
  1616. (server_cleanup): Flush buf_to_net.
  1617. (server): Initialize saved_output and saved_outerr.
  1618. (cvs_output): Add support for error_use_protocol case.
  1619. (cvs_outerr): Likewise.
  1620. * error.c (error): In HAVE_VPRINTF case, just call cvs_outerr.
  1621. * buffer.c: New file; buffer support functions taken from
  1622. server.c.
  1623. * buffer.h: New file; declarations for buffer.c.
  1624. * server.c: Move buffer support functions into buffer.c and
  1625. buffer.h. Include "buffer.h".
  1626. * Makefile.in (SOURCES): Add buffer.c.
  1627. (OBJECTS): Add buffer.o.
  1628. (HEADERS): Add buffer.h.
  1629. Thu Jul 4 00:12:45 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1630. * version.c: Increment version number to 1.8.6.
  1631. Wed Jul 3 22:31:16 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1632. * version.c: Version 1.8.5.
  1633. Wed Jul 3 21:51:23 1996 Ian Lance Taylor <ian@cygnus.com>
  1634. * server.c (blocking_error): Define macro.
  1635. (buf_send_output, buf_input_data): Use blocking_error rather than
  1636. #ifdef EWOULDBLOCK.
  1637. Tue Jul 2 20:38:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1638. * add.c (add): Change message which said "version 1.2 of foo.c
  1639. will be resurrected"; the message was confusing because it made
  1640. people think that the old contents of the file would come back
  1641. instead of the contents in the working directory.
  1642. Mon Jul 1 01:38:57 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1643. * find_names.c (find_dirs): Add comment explaining why we bother
  1644. with the entries stuff.
  1645. Sat Jun 29 20:23:50 1996 Ian Lance Taylor <ian@cygnus.com>
  1646. * find_names.c (Find_Directories): Add entries parameter, and pass
  1647. it to find_dirs.
  1648. (find_dirs): Add entries parameter, and skip all files it names.
  1649. * cvs.h (Find_Directories): Update declaration.
  1650. * recurse.c (start_recursion): Pass NULL to Find_Directories.
  1651. (do_recursion): Pass entries to Find_Directories.
  1652. * client.c (send_modified): Add trace output.
  1653. * diff.c (diff_fileproc): Always call diff_file_nodiff. Handle
  1654. dead versions correctly. Handle diffs between a specified
  1655. revision to a dead file correctly.
  1656. (diff_file_nodiff): Add just_set_rev parameter. Change caller.
  1657. * patch.c (patch_fileproc): Check for dead versions.
  1658. * sanity.sh (death2): Add tests for above patches.
  1659. Fri Jun 28 20:30:48 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1660. For reference, this takes CVS's text segment from 271136 bytes to
  1661. 270352 bytes, a saving of 784. Not as good as I had hoped (oh well,
  1662. the source *seems* simpler at least).
  1663. * checkin.c (Checkin), commit.c (finaladd, remove_file), update.c
  1664. (join_file, checkout_file, patch_file), no_diff.c
  1665. (No_Differences), server.c (server_updated), classify.c
  1666. (Classify_File), vers_ts.c (Version_TS), diff.c (diff_file_nodiff):
  1667. Use a single struct file_info * argument instead of a bunch of
  1668. separate arguments for each of its fields. Remove local fullname
  1669. emulations. Use fullname in error messages where file had
  1670. erroneously been used.
  1671. * cvs.h: Update declarations of above functions and move them to
  1672. after the struct file_info declaration.
  1673. * server.h: Update declarations.
  1674. * add.c, admin.c, checkin.c, checkout.c, classify.c, client.c,
  1675. commit.c, diff.c, history.c, import.c, update.c, status.c,
  1676. remove.c, rtag.c, tag.c: Change callers.
  1677. * diff.c (diff): Remove -q and -Q command options. This somehow
  1678. slipped through the cracks of the general removal of -q and -Q
  1679. command options on Jul 21 1995. Note that there is no need to
  1680. accept and ignore these options in server mode, like there is for
  1681. some of the commands, because the client has never sent -q and -Q
  1682. command options for "cvs diff".
  1683. Fri Jun 28 16:50:18 1996 Ian Lance Taylor <ian@cygnus.com>
  1684. * add.c (add): Pass force_tag_match as 1 when calling Version_TS.
  1685. * sanity.sh (death2): Add test for above patch. Also add
  1686. commented out test for adding a file on a nonbranch tag, which CVS
  1687. currently, mistakenly, permits.
  1688. Thu Jun 27 23:20:49 1996 Ian Lance Taylor <ian@cygnus.com>
  1689. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1690. * diff.c (longopts): New static array.
  1691. (diff): Handle long options and new short options in diff 2.7.
  1692. Fix arbitrary limit associated with the tmp variable.
  1693. * client.c (send_option_string): Parse options as space separated,
  1694. rather than requiring all options to be single characters.
  1695. * diff.c, options.h.in: Remove CVS_DIFFDATE; the need for it is gone
  1696. now that we have --ifdef (the new behavior is the behavior which
  1697. was the default, which is that -D specifies a date).
  1698. Wed Jun 26 22:36:29 1996 Ian Lance Taylor <ian@cygnus.com>
  1699. * commit.c (check_fileproc): If there is a tag, permit adding a
  1700. file even if the RCS file already exists.
  1701. (checkaddfile): If there is a tag, use the file in the regular
  1702. repository, rather than the Attic, if it exists.
  1703. * sanity.sh (death2): New set of tests for above patch.
  1704. Tue Jun 25 23:34:13 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1705. * update.c (checkout_file): Add comments about two cases which
  1706. seem fishy.
  1707. * sanity.sh (basic2, death): Add comments encouraging people to
  1708. stop making these sections bigger and more complex. I'm not (yet
  1709. at least) trying to figure out the ideal size for a section (my
  1710. current best estimate is 10-20 tests), but surely these
  1711. two sections are pushing the limit, whatever it is.
  1712. Tue Jun 25 19:52:02 1996 Ian Lance Taylor <ian@cygnus.com>
  1713. * update.c (checkout_file): Rewrite handling of dead files when
  1714. joining. Avoid space leaks. Avoid unnecessary file
  1715. resurrections.
  1716. (join_file): Add checks to skip merging a dead revision onto a
  1717. dead revision, and to skip merging a common ancestor onto a dead
  1718. revision. Move check for non-existent working file after new
  1719. checks.
  1720. * sanity.sh (death): Use dotest for tests 86 and 95, and add test
  1721. death-file2-1, to test above changes.
  1722. Mon Jun 24 11:27:37 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1723. * update.c (merge_file): Replace file, repository, entries, and
  1724. update_dir arguments with finfo argument. Use fullname field
  1725. instead of locally emulating it.
  1726. (update_fileproc): Update caller.
  1727. (merge_file): If -kb is in effect, call it a conflict, leave
  1728. the two versions in the file and the backup file, and tell the
  1729. user to deal with it. The previous behavior was that the merge
  1730. would fail and then there was no way to do a checkin even once you
  1731. resolved the conflict (short of kludges like moving the file
  1732. aside, updating, and then moving it back).
  1733. * sanity.sh (binfiles): New tests binfiles-con* test for above
  1734. behavior. Adjust remaining tests to reflect changes in revision
  1735. numbers.
  1736. Mon Jun 17 15:11:09 1996 Ian Lance Taylor <ian@cygnus.com>
  1737. * sanity.sh (import): Remove sleep. Requiring it was a bug, and
  1738. it is fixed in the current sources.
  1739. Mon Jun 17 1996 Ian Lance Taylor <ian@cygnus.com>
  1740. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1741. * sanity.sh (TMPPWD): Set to real name of /tmp directory.
  1742. (basic2-64, conflicts-126.5): Use ${TMPPWD}.
  1743. Mon Jun 17 1996 Ian Lance Taylor <ian@cygnus.com>
  1744. * rcscmds.c (RCS_checkout): Remove noerr parameter. Change all
  1745. callers.
  1746. * rcs.c (RCS_fast_checkout): Likewise.
  1747. Mon Jun 17 1996 Ian Lance Taylor <ian@cygnus.com>
  1748. Cleaner implementation of tag locking code added Jun 13 1996:
  1749. * cvs.h (tag_lockdir, tag_unlockdir): Declare.
  1750. * rtag.c (locked_dir, locked_list): Remove.
  1751. (rtag_fileproc): Don't lock here; just call tag_lockdir.
  1752. (rtag_filesdoneproc): Don't unlock here; just call tag_unlockdir.
  1753. * tag.c (locked_dir, locked_list): Move farther down in file.
  1754. (tag_fileproc): Don't lock here; just call tag_lockdir.
  1755. (tag_filesdoneproc): Don't unlock here; just call tag_unlockdir.
  1756. (tag_lockdir, tag_unlockdir): New functions.
  1757. Wed Jun 15 07:52:22 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1758. * client.c (send_modified, update_entries): Fixed bug which didn't
  1759. handle binary file transfers in BROKEN_READWRITE_CONVERSION.
  1760. Thu Jun 13 1996 Ian Lance Taylor <ian@cygnus.com>
  1761. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1762. * update.c (checkout_file): Call server_scratch_entry_only when a
  1763. non-pertinent file is found that does not exist.
  1764. * sanity.sh (newb): Add test case for above patch.
  1765. Thu Jun 13 1996 Ian Lance Taylor <ian@cygnus.com>
  1766. * update.c (update_fileproc): Call server_scratch_entry_only when
  1767. handling T_REMOVE_ENTRY on the server.
  1768. * sanity.sh (conflicts2): Remove special case for remote server
  1769. bug fixed by above patch.
  1770. Thu Jun 13 21:16:26 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1771. * sanity.sh (basica-9): Update to reflect change to "sufficient
  1772. access" message.
  1773. Thu Jun 13 20:13:55 1996 Ian Lance Taylor <ian@cygnus.com>
  1774. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1775. * recurse.c, cvs.h (start_recursion): Remove wd_is_repos argument;
  1776. add comment about meaning of which argument. Use !(which &
  1777. W_LOCAL) instead of wd_is_repos.
  1778. * admin.c, client.c, commit.c, diff.c, edit.c, lock.c, log.c,
  1779. patch.c, rcs.c, remove.c, rtag.c, status.c, tag.c, update.c,
  1780. watch.c: Change callers. This is a semantic change in only two
  1781. cases: (1) tag_check_valid, where repository was not "", and (2)
  1782. the pipeout case in checkout_proc. In both of those cases the
  1783. previous setting of wd_is_repos did not reflect whether we
  1784. actually were cd'd into the repository.
  1785. * recurse.c (start_recursion): Only check for the CVS subdirectory
  1786. if which & W_LOCAL.
  1787. * sanity.sh (devcom): Add test case fixed by above patch.
  1788. Thu Jun 13 1996 Ian Lance Taylor <ian@cygnus.com>
  1789. * ignore.c (ignore_files): Skip based on the file name before
  1790. calling lstat.
  1791. * client.c (last_register_time): New static variable.
  1792. (update_entries): Set last_register_time when calling Register.
  1793. (get_responses_and_close): If the current time is the same as
  1794. last_register_time, sleep for a section to avoid timestamp races.
  1795. Thu Jun 13 17:24:38 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1796. * client.c (supported_request): Reindent.
  1797. Thu Jun 13 1996 Mark H. Wilkinson <mhw@minster.york.ac.uk>
  1798. * options.h.in, mkmodules.c: Corrections to allow compilation of
  1799. non-client-server version.
  1800. Thu Jun 13 1996 Ian Lance Taylor <ian@cygnus.com>
  1801. * tag.c (tag_check_valid_join): New function.
  1802. * cvs.h (tag_check_valid_join): Declare.
  1803. * checkout.c (join_tags_validated): New static variable.
  1804. (checkout_proc): Check validity of join tags.
  1805. * update.c (update): Likewise.
  1806. * tag.c (tag_check_valid): Correct sizeof CVSROOTADM_HISTORY to
  1807. use CVSROOTADM_VALTAGS.
  1808. * lock.c (Writer_Lock): If we called lock_wait to wait for a lock,
  1809. then call lock_obtained when we get it.
  1810. (set_lock): Likewise.
  1811. (lock_obtained): New static function.
  1812. Thu Jun 13 13:55:38 1996 Ian Lance Taylor <ian@cygnus.com>
  1813. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1814. * main.c (main): If we can't read cvs root, don't say "you don't
  1815. have sufficient access"; just print the message from errno. It
  1816. might be "No such file or directory" or something else for which
  1817. "you don't have sufficient access" doesn't make any sense.
  1818. Thu Jun 13 1996 Ian Lance Taylor <ian@cygnus.com>
  1819. * commit.c (remove_file): Pass noerr as 0 to RCS_checkout.
  1820. Thu Jun 13 12:55:56 1996 Ian Lance Taylor <ian@cygnus.com>
  1821. * patch.c: Initialize rev1_validated and rev2_validated to 0, not 1.
  1822. Thu Jun 13 12:55:56 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1823. * rtag.c (locked_dir): Revise comments regarding locking; the rtag
  1824. and tag situations are different (changing from readlocking one
  1825. directory at a time to writelocking one directory at a time does
  1826. not do everything we might want, but it does fix simultaneous tags
  1827. and it doesn't make anything worse).
  1828. Thu Jun 13 1996 Ian Lance Taylor <ian@cygnus.com>
  1829. Prevent simultaneous tag operations from interfering with each
  1830. other.
  1831. * rtag.c (rtag_proc): Pass rtag_filesdoneproc to start_recursion,
  1832. and pass readlock as 0.
  1833. (locked_dir, locked_list): New static variables.
  1834. (rtag_fileproc): Write lock the repository if it is not already
  1835. locked.
  1836. (rtag_filesdoneproc): New static function to unlock the
  1837. repository.
  1838. * tag.c (tag): Pass tag_filesdoneproc to start_recursion, and pass
  1839. readlock as 0.
  1840. (locked_dir, locked_list): New static variables.
  1841. (tag_fileproc): Write lock the repository if it is not already
  1842. locked.
  1843. (tag_filesdoneproc): New static function.
  1844. Thu Jun 13 11:42:25 1996 Mike Sutton <mws115@llcoolj.dayton.saic.com>
  1845. * sanity.sh: Allow digits in usernames.
  1846. Wed Jun 12 16:23:03 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1847. * client.c (send_modified, update_entries): Reindent and add
  1848. comments to BROKEN_READWRITE_CONVERSION code.
  1849. Wed Jun 12 16:23:03 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1850. * client.c (send_modified, update_entries): Add
  1851. BROKEN_READWRITE_CONVERSION code.
  1852. Mon Jun 10 20:03:16 1996 J.T. Conklin <jtc@cygnus.com>
  1853. * rcs.c (RCS_gettag): No longer set p to NULL if rcs is also NULL.
  1854. rcs will never be null, thanks to the assertion at top of function.
  1855. Mon Jun 10 16:28:14 1996 Ian Lance Taylor <ian@cygnus.com>
  1856. and Jim Kingdon <kingdon@harvey.cyclic.com>
  1857. * main.c (main): Ignore CVS/Root file when doing an import.
  1858. Fri Jun 7 18:20:01 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1859. * status.c (status_fileproc, tag_list_proc): Use cvs_output rather
  1860. than writing to stdout directly.
  1861. Wed Jun 5 13:54:57 1996 Ian Lance Taylor <ian@cygnus.com>
  1862. * rcs.c (force_tag_match, tag, date): New static variables.
  1863. (annotate_fileproc): Redo the loop to look for the version
  1864. specified by tag/date/force_tag_match, and handle branches
  1865. correctly.
  1866. (annotate_usage): Mention -f, -r, and -D.
  1867. (annotate): Handle -f, -r, and -D.
  1868. Tue Jun 4 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
  1869. * rcs.c (annotate_fileproc): Skip unrelated branch deltas.
  1870. Fri Jun 7 13:04:01 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1871. * main.c (main): Change INITIALIZE_SOCKET_SUBSYSTEM to
  1872. SYSTEM_INITIALIZE and pass it pointers to argc and argv. Rename
  1873. CLEANUP_SOCKET_SUBSYSTEM to SYSTEM_CLEANUP.
  1874. Wed Jun 05 10:07:29 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1875. * import.c (add_rcs_file): make buf char[] not unsigned char[]
  1876. Wed Jun 05 10:07:29 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1877. and Jim Kingdon <kingdon@cyclic.com>
  1878. * main.c (main): Add CLEANUP_SOCKET_SUBSYSTEM hook at end. Revise
  1879. comments regarding INITIALIZE_SOCKET_SUBSYSTEM.
  1880. Wed Jun 05 10:07:29 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1881. and Jim Kingdon <kingdon@cyclic.com>
  1882. * main.c (main): Don't mess with signals if DONT_USE_SIGNALS is
  1883. defined.
  1884. Thu Jun 6 15:32:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1885. * modules.c (cat_module): Always format for 80 columns rather than
  1886. trying to determine how wide the screen is. The code we had for
  1887. the latter didn't cover all cases, was a portability headache, and
  1888. didn't work client/server.
  1889. Wed Jun 05 10:07:29 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1890. * error.c: Don't declare strerror if it is #defined.
  1891. Wed Jun 05 10:07:29 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1892. and Jim Kingdon <kingdon@cyclic.com>
  1893. * cvs.h: If ENUMS_CAN_BE_TROUBLE, typedef Dtype to int not an enum.
  1894. Wed Jun 05 10:07:29 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1895. and Jim Kingdon <kingdon@cyclic.com>
  1896. * update.c (update): If DONT_USE_PATCH, don't request patches.
  1897. Also call supported_request rather than reimplementing it.
  1898. Wed Jun 05 10:07:29 1996 Mike Ladwig <mike@twinpeaks.prc.com>
  1899. * client.c (read_line): Changed an occurence of '\n' to '\012'.
  1900. Wed Jun 5 17:18:46 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1901. * add.c (add_directory): Don't create the directory if noexec.
  1902. * sanity.sh (basica): New tests basica-1a10, basica-1a11 test for
  1903. above fix.
  1904. * sanity.sh (basicb): New tests basicb-2a10, basicb-2a11,
  1905. basicb-3a1 test for analogous situation with files rather than
  1906. directories.
  1907. Tue Jun 4 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
  1908. * sanity.sh: When doing a remote check, use :server: in CVSROOT.
  1909. Wed Jun 5 13:32:40 1996 Larry Jones <larry.jones@sdrc.com>
  1910. and Jim Kingdon <kingdon@cyclic.com>
  1911. * ignore.c: Set ign_hold to -1 when not holding instead of 0 so
  1912. that holding an empty list works correctly.
  1913. * sanity.sh (ignore): New tests 190 & 191 for above fix.
  1914. Wed Jun 5 1996 Jim Kingdon <kingdon@cyclic.com>
  1915. Visual C++ lint:
  1916. * client.c (update_entries): Copy the size to an unsigned variable
  1917. before comparing it with unsigned variables.
  1918. (handle_created, handle_update_existing): Prototype.
  1919. Tue Jun 4 10:02:44 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1920. * client.c (responses): Add Created and Update-existing responses.
  1921. * server.c (server_updated): If they are supported, use them
  1922. instead of Updated.
  1923. * client.c (struct update_entries_data): Add existp field.
  1924. (handle_checked_in, handle_updated, handle_new_entry,
  1925. handle_merged, handle_patched): Set it.
  1926. (handle_update_existing, handle_created): New functions,
  1927. for new responses.
  1928. (update_entries): Based on existp, check for
  1929. existence/nonexistence of file.
  1930. (try_read_from_server): Expand comment.
  1931. * server.c, server.h (server_updated): New argument vers.
  1932. * checkin.c (Checkin), commit.c (commit_fileproc), update.c
  1933. (update_fileproc, merge_file, join_file): Pass it.
  1934. * cvs.h: Move include of server.h after Vers_TS declaration.
  1935. * sanity.sh (conflicts2): New tests conflicts2-142d* test for
  1936. above fix.
  1937. * sanity.sh (ignore): Fix typo in comment.
  1938. * tag.c (tag_check_valid): Add comment clarifying when val-tags
  1939. entries are created.
  1940. Mon Jun 3 07:26:35 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1941. * version.c: Increment version number to 1.8.4.
  1942. Mon Jun 3 02:20:30 1996 Noel Cragg <noel@gargle.rain.org>
  1943. * version.c: version 1.8.3.
  1944. Thu May 30 10:07:24 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1945. * main.c (cmds): Fix typo ("bdif" -> "dif") which was accidentally
  1946. introduced 24 May 96.
  1947. * main.c (main_cleanup): Add comment stating default case will
  1948. never be reached.
  1949. Wed May 29 21:43:43 1996 noel <noel@BOAT_ANCHOR>
  1950. * main.c (main_cleanup): check to see if SIGHUP, SIGINT, SIGQUIT,
  1951. SIGPIPE, and SIGTERM are defined before using them. Also add a
  1952. default case to print out those errors numerically which are not
  1953. found.
  1954. Wed May 29 18:43:45 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1955. * expand_path.c (expand_path): Document LINE == 0 and allocation
  1956. of return value.
  1957. * modules.c (do_module): Pass 0, not -1, to indicate line number
  1958. not known. Free value returned from expand_path. Deal with NULL
  1959. return from expand_path.
  1960. Wed May 29 15:56:47 1996 Greg A. Woods <woods@most.weird.com>
  1961. * modules.c (do_module): call expand_path() on the program name
  1962. specfied by one of '-o', '-t', or '-e' in the modules file before
  1963. passing it to run_setup(). This makes it possible to use $CVSROOT
  1964. (or indeed ~user or any other user-specified variable) to specify
  1965. pathnames for programs not installed in the normal execution path.
  1966. Sun May 26 21:57:09 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1967. * client.c (start_server): Don't include %s in error message;
  1968. there is no argument to go with it. Do include "internal error"
  1969. in error message since that might not be clear to the user otherwise.
  1970. Sun May 26 11:58:13 1996 Greg A. Woods <woods@most.weird.com>
  1971. * root.c (set_local_cvsroot): enforce a wee bit of portability
  1972. (parse_cvsroot): same....
  1973. (DEBUG main): same, plus style guidelines
  1974. (DEBUG error): deleted -- not necessary here (use fprintf instead)
  1975. * mkmodules.c (modules_contents): updated notes about what must be
  1976. done if you change any of the options for a module.
  1977. (loginfo_contents): fixed grammar, re-pargraphed, and added 'echo
  1978. %s;' to the example.
  1979. (editinfo_contents): minor grammar fix.
  1980. Sun May 26 17:51:18 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1981. * vers_ts.c (Version_TS): Remove case where we get options from
  1982. sdtp->options. Whatever case that was intended to handle is
  1983. probably lost in the mists of time, but sdtp->options isn't set
  1984. anywhere, and I think that has been true for a long time.
  1985. * cvs.h (struct stickydirtag): remove options field.
  1986. * entries.c (freesdt): Don't free ->options.
  1987. * sanity.sh (binfiles): New tests binfiles-13a* test for above fix.
  1988. * tag.c (check_fileproc): Use fullname not file in error message.
  1989. Say "locally modified" not "up-to-date"; the file need not match
  1990. the head revision it only need match some revision.
  1991. Sun May 26 16:57:02 1996 Norbert Kiesel <nk@col.sw-ley.de>
  1992. * tag.c: added support for new option -c to make sure all tagged
  1993. files are up-to-date
  1994. (tag): check for option and set check_uptodate
  1995. (check_fileproc): check status of file if check_uptodate is set
  1996. Sat May 25 15:22:26 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  1997. * main.c (main): Revert change to look for a -H command option;
  1998. command option parsing should be up to each subcommand and the -H
  1999. global option works fine.
  2000. Mon May 23 1996 Ian Lance Taylor <ian@cygnus.com>
  2001. * client.c (process_prune_candidates): Set prune_candidates to
  2002. NULL at the end of the function.
  2003. Mon May 23 1996 Ian Lance Taylor <ian@cygnus.com>
  2004. * checkout.c (checkout): In code to handle multiple arguments,
  2005. pass preload_update_dir, not where, to Create_Admin.
  2006. (checkout_proc): Pass preload_update_dir, not where, to
  2007. Create_Admin.
  2008. Thu May 23 19:14:35 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2009. * server.c (server_set_sticky): Assert that update_dir != NULL.
  2010. * sanity.sh (basicb): New test; tests for Ian's fix to checkout.c
  2011. above.
  2012. Thu May 23 1996 Ian Lance Taylor <ian@cygnus.com>
  2013. * patch.c (patch_fileproc): Don't ignore a file just because it is
  2014. in the Attic directory.
  2015. Thu May 23 10:40:24 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2016. * sanity.sh (death): New tests death-{72a,76a0,76a1} test for bug
  2017. fixed by Ian's patch_fileproc change above.
  2018. * sanity.sh (death): Remove "temporary hack" in test 89.
  2019. * rcs.c (RCS_fast_checkout): If error closing file, and workfile
  2020. is NULL, use sout in error message instead of workfile.
  2021. Thu May 23 1996 Ian Lance Taylor <ian@cygnus.com>
  2022. * rcs.c (RCS_fast_checkout): Do a fast checkout in the case where
  2023. workfile is NULL and sout is a file name.
  2024. Wed May 22 19:06:23 1996 Mark Immel <immel@centerline.com>
  2025. * update.c (checkout_file): New arg resurrecting_out, to provide
  2026. resurrecting flag to caller.
  2027. (join_file): New arg resurrecting. Register with "0" if we are
  2028. the server and are resurrecting.
  2029. (update_fileproc): Pass the flag from checkout_file to join_file.
  2030. Wed May 22 19:06:23 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2031. * sanity.sh (death): Test for above fix, in test 89 and new test 89a.
  2032. Tue May 21 09:49:04 1996 Greg A. Woods <woods@most.weird.com>
  2033. * update.c (update_usage): oops -- fix my spelling typo.
  2034. Mon May 20 10:53:14 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2035. * commit.c (find_fileproc): Call freevers_ts.
  2036. * commit.c (find_*): Keep an ignlist, like update.c and client.c do.
  2037. * commit.c (commit): Process the files from the ignlists, once we
  2038. are connected to the server.
  2039. * sanity.sh (ignore): New tests 189e and 189f test for new
  2040. commit.c behavior (and client.c behavior, which is unchanged).
  2041. * sanity.sh (conflicts): Remove dir1 and sdir in parts of the test
  2042. where we aren't prepared for "? dir1" and similar output.
  2043. Mon May 20 13:23:36 1996 Greg A. Woods <woods@most.weird.com>
  2044. * main.c (cmd_usage): minor corrections to descriptions of status,
  2045. rtag, tag, and rdiff. Sort alphabetically by command name.
  2046. Mon May 20 10:36:07 1996 Ian Lance Taylor <ian@cygnus.com>
  2047. * client.c (call_in_directory): Move the call to Entries_Close
  2048. before the call to chdir, since Entries_Close examines files in
  2049. the current directory.
  2050. Fri May 17 12:13:09 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2051. * client.c (start_tcp_server, start_server, start_rsh_server,
  2052. read_line, filter_through_gzip, filter_through_gunzip,
  2053. call_in_directory): Reindent as needed.
  2054. * main.c (main): Add missing #endif. Use indentation to indicate
  2055. nesting.
  2056. Thu May 16 17:15:01 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2057. * main.c (cmd_usage): Add "init" command.
  2058. Thu May 16 16:45:51 1996 Noel Cragg <noel@gargle.rain.org>
  2059. * client.c (start_tcp_server): Error message modified to tell the
  2060. user to use ":server:" instead of setting CVS_CLIENT_PORT to a
  2061. negative number.
  2062. * main.c (main): Add #ifdefs for turning off buffering of
  2063. stdio/stderr, so we don't get it by default.
  2064. Thu May 16 01:29:47 1996 noel <noel@BOAT_ANCHOR>
  2065. * commit.c (commit_filesdoneproc): Print the repository and root
  2066. directories as part of the error message.
  2067. * main.c (main): Don't buffer stdout or stderr. It's inefficient,
  2068. but it then produces the right output for sanity.sh.
  2069. Thu May 16 09:44:47 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2070. * fileattr.c (fileattr_set): In the case where we are about to
  2071. call delproc, don't free ->data; delproc does that.
  2072. * sanity.sh (devcom): New tests devcom-b* test for this fix.
  2073. * sanity.sh (conflicts): Remove redundant clean up from previous
  2074. tests at the beginning of the test. Use dotest a few more places.
  2075. (conflicts2): New test, tests for Ian's fix to Classify_File.
  2076. * client.c (remove_entry_and_file): Add comment about
  2077. existence_error's.
  2078. Sat May 16 1996 Ian Lance Taylor <ian@cygnus.com>
  2079. * update.c (update_dirleave_proc): Don't try to chdir .. and check
  2080. for an empty directory if there is a slash in the directory name.
  2081. Thu May 16 09:02:59 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2082. * sanity.sh (deep): New tests deep-4a* test for Ian's fix to
  2083. update_dirleave_proc.
  2084. Sat May 16 1996 Ian Lance Taylor <ian@cygnus.com>
  2085. * main.c (main_cleanup): Report signal name before dying.
  2086. Wed May 15 23:47:59 1996 Noel Cragg <noel@gargle.rain.org>
  2087. * main.c (usg): revert usage strings for `-H' flag change.
  2088. Sat May 15 1996 Ian Lance Taylor <ian@cygnus.com>
  2089. * server.c (serve_static_directory): Return immediately if there
  2090. is a pending error.
  2091. (serve_sticky): Likewise.
  2092. (serve_modified): Read the file data even if there is a pending
  2093. error.
  2094. Wed May 15 14:26:32 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2095. * main.c (main): If -d and CVS/Root both specified, after writing
  2096. the value from -d into CVS/Root, use the value from -d, not the
  2097. old value from CVS/Root. Don't write CVS/Root with value from -d
  2098. until we have verified that it works.
  2099. * sanity.sh: Reenable test basica-9 and adjust for new behavior.
  2100. Tue May 14 1996 Jim Kingdon <kingdon@cyclic.com>
  2101. * logmsg.c (do_editor): If user aborts the commit, still remove the
  2102. temporary file.
  2103. Tue May 14 11:45:41 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2104. * filesubr.c, cvs.h (cvs_temp_name): New function. Move L_tmpnam
  2105. define from cvs.h to filesubr.c.
  2106. * client.c, diff.c, import.c, login.c, logmsg.c, no_diff.c,
  2107. patch.c, wrapper.c: Call cvs_temp_name not tmpnam.
  2108. * login.c (login): Reindent function.
  2109. Tue May 14 10:56:56 1996 Ian Lance Taylor <ian@cygnus.com>
  2110. * rcs.c (RCS_fast_checkout): If workfile is NULL, don't call chmod.
  2111. Mon May 13 10:52:10 1996 Greg A. Woods <woods@most.weird.com>
  2112. * checkout.c (export_usage): note which options cause a sticky
  2113. version to be set, and which option avoids this.
  2114. * update.c (update_usage): likewise
  2115. Sat May 11 18:57:07 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2116. * sanity.sh: Comment out test basica-9 until I get around to
  2117. actually fixing it (the -d vs. CVS/Root change broke it).
  2118. Fri May 10 09:39:49 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2119. * main.c (main): -d now overrides CVS/Root.
  2120. Thu May 9 19:45:24 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2121. * main.c: Remove comment listing commands at beginning. It was
  2122. out of date and redundant with the help.
  2123. Thu May 9 09:33:55 1996 Greg A. Woods <woods@most.weird.com>
  2124. * main.c: add 'init' to opening comment listing commands
  2125. * mkmodules.c (init): fix to recognize argc==-1 as hint to call
  2126. usage() [should make "cvs init -H" work as expected]
  2127. Wed May 8 15:02:49 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2128. * sanity.sh: Set EXPR in the case that the expr in the path is the
  2129. one that we want.
  2130. Wed May 8 14:06:24 1996 Greg A. Woods <woods@most.weird.com>
  2131. * sanity.sh (test): - convert all '[' to test ala GCD
  2132. Wed May 8 13:46:56 1996 Greg A. Woods <woods@most.weird.com>
  2133. * sanity.sh (expr): - make a valiant attempt to find GNU expr
  2134. - Patch from Larry Jones:
  2135. sanity test deep-4 failed with "expr: arg list too long"
  2136. sanity test 56 failed because the stderr and stdout output was not
  2137. interleaved as expected.
  2138. sanity test modules-155a4 failed with "ls: illegal option -- 1"
  2139. * main.c (main): - Patch from Larry Jones for SysV setvbuf
  2140. Tue May 7 16:41:16 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2141. * version.c: Increment version number to 1.8.2 to work around fact
  2142. that CVS 1.8 (confusingly) calls itself 1.8.1 not 1.8.
  2143. Tue May 7 10:44:20 MET DST 1996 Norbert Kiesel <nk@col.sw-ley.de>
  2144. * rcs.c (rcsvers_delproc): fix memory leak by freeing author
  2145. field.
  2146. Mon May 6 10:40:05 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2147. * sanity.sh (conflicts): New test conflicts-126.5 tests for bug
  2148. which Ian fixed May 5 in update.c
  2149. Mon May 6 06:00:10 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2150. * Version 1.8.1
  2151. Sun May 5 21:39:02 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2152. * vers_ts.c (Version_TS): If sdtp is NULL, go ahead and check
  2153. RCS_getexpand for options. Fixes binaries and non-unix clients.
  2154. * sanity.sh: Fix binfiles-5.5 to test for the correct behavior
  2155. rather than the buggy behavior which existed when the binfiles-5.5
  2156. test was written.
  2157. (binfiles-14c,binfiles-14f): Likewise.
  2158. Sun May 5 17:38:21 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2159. Integrated changes submitted by Ian Taylor <ian@cygnus.com>
  2160. * update.c (update_dirent_proc): cvs co -p doesn't print
  2161. anything when run from an empty directory.
  2162. * import.c (import_descend_dir): Check for a file in the
  2163. repository which will be checked out to the same name as the
  2164. directory.
  2165. Sat May 4 12:33:02 1996 Ian Lance Taylor <ian@cygnus.com>
  2166. Extract the head revision directly from the RCS file when
  2167. possible, rather than execing co.
  2168. * rcs.c (RCS_reparsercsfile): Set delta_pos field.
  2169. (getrcskey): Add lenp parameter. Change all callers.
  2170. (RCS_fast_checkout): New function.
  2171. (annotate_fileproc): If PARTIAL is not set, just fseek to
  2172. delta_pos.
  2173. * rcs.h (struct rcsnode): Add delta_pos field.
  2174. (RCS_fast_checkout): Declare.
  2175. * diff.c (diff_file_nodiff): Call RCS_fast_checkout rather than
  2176. RCS_checkout.
  2177. * import.c (update_rcs_file): Likewise.
  2178. * no_diff.c (No_Difference): Likewise.
  2179. * patch.c (patch_fileproc): Likewise.
  2180. * update.c (checkout_file): Likewise.
  2181. (patch_file): Likewise.
  2182. (join_file): Likewise.
  2183. Sat May 4 12:33:02 1996 Ian Lance Taylor <ian@cygnus.com>
  2184. * classify.c (Classify_File): Don't report a conflict for a
  2185. pending remove if somebody else has already removed the file.
  2186. Thu May 2 13:34:37 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2187. * Version 1.7.88
  2188. Thu May 2 01:40:55 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2189. * server.c (HAVE_INITGROUPS): Use initgroups() only if
  2190. located by configure, in the event a system has crypt(), but
  2191. no initgroups()
  2192. Wed May 01 21:08:21 1996 noel <noel@BOAT_ANCHOR>
  2193. * client.c (filter_through_gunzip): use "gzip -d" instead of
  2194. "gunzip," since there's no good reason (on NT at least) to have an
  2195. extra copy of gzip.exe copied to gunzip.exe (Arrrrgh! No symbolic
  2196. links!).
  2197. * mkmodules.c (init): check to see that we have the correct number
  2198. of arguments or print out the usage message (used to be argc > 1,
  2199. should be argc != 1, because help forces argc == -1 as a special
  2200. case).
  2201. Wed May 1 18:05:02 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2202. * sanity.sh (basica): When testing rejection of reserved tag name,
  2203. use BASE instead of RESERVED.
  2204. Wed May 1 15:15:11 1996 Tom Jarmolowski <tjj@booklink.com>
  2205. * rcs.c (linevector_delete): Only copy up to vec->nlines - nlines,
  2206. not to vec->nlines.
  2207. Wed May 1 15:43:21 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2208. * rcscmds.c (RCS_settag): Instead of reserving all tag names
  2209. containing only uppercase letters, reserve only BASE and HEAD.
  2210. * sanity.sh (mflag): Revert 26 Mar change; use all-uppercase tag
  2211. name again.
  2212. Wed May 1 15:15:11 1996 Tom Jarmolowski <tjj@booklink.com>
  2213. * rcs.c (linevector_add): Move increment of i out of larger
  2214. statement, to avoid assumptions about evaluation order.
  2215. Tue Apr 30 15:46:03 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2216. * Version 1.7.87.
  2217. * server.c (check_password): Don't use ANSI string concatenation.
  2218. Reindent function.
  2219. Mon Apr 29 10:48:38 1996 Noel Cragg <noel@gargle>
  2220. * root.c (parse_cvsroot): removed "rsh" as an alias to "server" in
  2221. the method section.
  2222. * main.c (main): new variable help so we can support the `cvs -H
  2223. cmd' convention. Reverts change of 26 Apr 96 which removed this
  2224. feature.
  2225. Sun Apr 28 14:57:38 1996 Noel Cragg <noel@gargle>
  2226. * main.c (main): update error message if parse_cvsroot fails.
  2227. * server.c (serve_root): same.
  2228. (serve_init): same.
  2229. * client.c (start_tcp_server): get rid of the "fall through"
  2230. stuff, now that we have access methods.
  2231. (start_server): switch off the access method to choose routine
  2232. that starts the server.
  2233. (start_tcp_server): tofd wasn't getting set to -1 early enough,
  2234. because a call to error for bind or gethostbyname might fail and
  2235. the subsequent error check to see if the connection had been made
  2236. would fail.
  2237. * root.c: new variable method_names for error reporting purposes.
  2238. Sun Apr 28 17:22:15 1996 Noel Cragg <noel@occs.cs.oberlin.edu>
  2239. * server.c: moved kerberos #includes from main.c for the
  2240. kserver_authenticate_connection routine.
  2241. Fri Apr 26 07:59:44 1996 Noel Cragg <noel@gargle>
  2242. * server.c (serve_init): use the new return value from
  2243. parse_cvsroot.
  2244. (serve_root): same.
  2245. * main.c (main): same.
  2246. * root.c (parse_cvsroot): fix indentation, add a return value
  2247. which tells whether the command succeeded or failed.
  2248. * main.c (main): move the setting of the UMASK environment
  2249. variable inside the stuff that gets done if the user is NOT asking
  2250. for help, so we don't signal any errors prematurely (don't want to
  2251. give an error because we can't parse an environment variable
  2252. correctly if the user asks for help). Similar mods for the code
  2253. that tries to get the working directory.
  2254. Also make CVSADM_Root a local variable instead of a global, since
  2255. its scope is only about 20 lines here!
  2256. * server.c (kserver_authenticate_connection): moved code from
  2257. main.c to clean up MAIN. Makes sense, since we already have a
  2258. pserver_authenticate_connection.
  2259. (pserver_authenticate_connection): rename from
  2260. authenticate_connection.
  2261. * main.c (main): reorganized the routine to eliminate variables
  2262. help, help_commands, and version_flag. Now the routine is much
  2263. clearer, since we don't have to be checking to see if these
  2264. variables are set. One behavior that was a bug/feature which is
  2265. now gone is an invocation like "cvs -H rtag" -- previously this
  2266. would give usage for rtag, but now gives usage for cvs itself.
  2267. The first behavior didn't make sense, especially since we say in
  2268. the docs that command-line flags are position-specific. *Reverted
  2269. Above*
  2270. Thu Apr 25 20:05:10 1996 Noel Cragg <noel@gargle>
  2271. * main.c (main): make sure we have a valid command name before we
  2272. do anything else (moved the thing that looks for a command in CMDS
  2273. to right after the GETOPT loop). Added `kserver' and `pserver' to
  2274. the table so they will be recognized; set their functions to
  2275. SERVER so that help will be given when asked for.
  2276. * expand_path.c (expand_variable): return CVSroot_original rather
  2277. than CVSroot_directory.
  2278. * main.c (main): save CVSroot in the env rather than
  2279. CVSroot_original, since we might not have called PARSE_CVSROOT
  2280. (this can happen if we use the -H option to a command).
  2281. * root.c (parse_cvsroot): the parsing method was bogus for
  2282. guessing when we had hostnames vs. directories specified. Any
  2283. ambiguity should be removed by having the user specify the access
  2284. method. If the access method isn't specified, choose
  2285. server_method if the string contains a colon or local_method
  2286. otherwise.
  2287. * Changed CVSroot_remote back to client_active since the code
  2288. reads better.
  2289. Wed Apr 24 17:27:53 1996 Norbert Kiesel <nk@col.sw-ley.de>
  2290. * vers_ts.c (Version_TS): xmalloc enough space (1 more
  2291. byte). Thanks to purify!
  2292. Mon Apr 22 00:38:08 1996 Noel Cragg <noel@gargle>
  2293. * create_adm.c (Create_Admin): pass CVSroot_original instead of
  2294. CVSroot_directory (oops!).
  2295. * update.c (update_filesdone_proc): same.
  2296. * server.c (serve_root): modify to use parse_cvsroot rather than
  2297. goofing around with other variables. Will need to fix
  2298. parse_cvsroot to have a return value so we can return an error and
  2299. quit gracefully if in server mode.
  2300. (serve_init): same.
  2301. * main.c: modify command table to remove client_* routines, since
  2302. they no longer exist.
  2303. (main): don't try to switch off non-existent field in command
  2304. table! ;-)
  2305. * client.h (client_*): removed prototypes for now non-existent
  2306. functions.
  2307. * client.c: remove proto for get_cvs_password, since it is now in
  2308. cvs.h. Modify routines to use new globals that describe CVSROOT
  2309. rather than client_active, server_host, server_user, and
  2310. server_cvsroot.
  2311. (parse_cvsroot): removed function, since a more generic version
  2312. now lives in root.c.
  2313. (connect_to_pserver): remove call to parse_cvsroot, since main.c
  2314. has already done it for us.
  2315. (client_*): removed all of these routines, since they only call
  2316. parse_cvsroot and then their respective operation functions.
  2317. Since main.c has already called parse_cvsroot, we shouldn't bother
  2318. with the extra function call, since client-server diffs are
  2319. already handled in the core routines themselves.
  2320. * main.c: remove CVSroot as a global variable. Remove
  2321. use_authenticating_server variable since we have a new
  2322. `CVSroot_method' variable instead.
  2323. (main): add `CVSroot' as a local variable. Call parse_cvsroot
  2324. after we're sure we have the right setting for `CVSroot.'
  2325. * login.c (login): update to use new global variables. Instead of
  2326. old behavior which let the user type in user@host when prompted,
  2327. it makes them do it in CVSROOT proper. The routine still lets the
  2328. user type the password, however.
  2329. (get_cvs_password): make sure that CVSROOT is fully qualified
  2330. before trying to find the entry in the .cvspass file.
  2331. * cvs.h: add prototype for get_cvs_password.
  2332. * add.c: use new globals that describe CVSROOT.
  2333. * admin.c: same.
  2334. * checkout.c: same.
  2335. * commit.c: same.
  2336. * create_adm.c: same.
  2337. * diff.c: same.
  2338. * edit.c: same.
  2339. * expand_path.c: same.
  2340. * history.c: same.
  2341. * ignore.c: same.
  2342. * import.c: same.
  2343. * log.c: same.
  2344. * mkmodules.c: same.
  2345. * modules.c: same.
  2346. * parseinfo.c: same.
  2347. * patch.c: same.
  2348. * rcs.c: same.
  2349. * recurse.c: same.
  2350. * release.c: same.
  2351. * remove.c: same.
  2352. * repos.c: same.
  2353. * rtag.c: same.
  2354. * status.c: same.
  2355. * tag.c: same.
  2356. * update.c: same.
  2357. * watch.c: same.
  2358. * wrapper.c: same.
  2359. * root.c (Name_Root): remove error message that reports missing
  2360. CVSROOT, since new code in main.c will catch it and also print out
  2361. an error.
  2362. (parse_cvsroot): new function -- takes a CVSROOT string and breaks
  2363. it up into its component parts -- method, hostname, username, and
  2364. repository directory. Sets new global variables that describe the
  2365. repository location more precisely: CVSroot_original,
  2366. CVSroot_remote, CVSroot_method, CVSroot_username,
  2367. CVSroot_hostname, CVSroot_directory for use by all other
  2368. functions. Checks for obvious errors in format of string.
  2369. (main): a short routine to test parse_cvsroot from the command
  2370. line.
  2371. * cvs.h: add prototype for parse_cvsroot and extern definitions
  2372. for new globals.
  2373. * cvs.h: removed CVSroot variable, since we don't want other
  2374. routines using the raw CVSROOT (also helped to find all of the
  2375. refs to the variable!).
  2376. Fri Apr 19 11:22:35 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2377. * Version 1.7.86
  2378. Thu Apr 18 1996 Jim Kingdon <kingdon@cyclic.com>
  2379. * client.c (try_read_from_server): Compare return value from fwrite
  2380. with a size_t not an int (Visual C++ lint).
  2381. Wed Apr 17 11:56:32 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2382. * client.c (try_read_from_server): New function.
  2383. (read_from_server): Use it.
  2384. (read_counted_file): New function.
  2385. * client.c, server.c: Add Template response.
  2386. * cvs.h (CVSADM_TEMPLATE): Added.
  2387. * logmsg.c (do_editor): If repository is NULL, use CVSADM_TEMPLATE
  2388. file in place of rcsinfo.
  2389. * server.c, server.h (server_template): New function.
  2390. * create_adm.c (Create_Admin): Call it.
  2391. Tue Apr 16 13:56:06 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2392. * repos.c (Name_Repository): Fix comments.
  2393. * create_adm.c (Create_Admin): Fix indentation.
  2394. Wed Apr 10 16:46:54 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2395. * options.h.in: Include relevant information here rather than
  2396. citing (former) FAQ.
  2397. * ChangeLog-9395: Fix typo in introductory paragraph.
  2398. Wed Apr 10 14:55:10 1996 code by Mike Spengler mks@msc.edu
  2399. comments by Jim Kingdon <kingdon@harvey.cyclic.com>
  2400. * filesubr.c (unlink_file_dir,deep_remove_dir): Don't call unlink
  2401. on something which might be a directory; check using isdir instead.
  2402. Wed Apr 10 14:55:10 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2403. * checkout.c (build_dirs_and_chdir): Pass path, not cp, to
  2404. Create_Admin. The former is the correct update dir.
  2405. * sanity.sh (modules): New tests modules-155* test, for above fix.
  2406. Mon Apr 8 13:53:27 1996 Samuel Tardieu <sam@inf.enst.fr>
  2407. * rcs.c (annotate_fileproc): If the file is not under CVS control,
  2408. return instead of dumping a core. Don't bug on files with an empty
  2409. first revision.
  2410. Fri Mar 29 16:08:28 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2411. * rcs.c (annotate_fileproc): If last line of add-chunk is not
  2412. newline terminated, end the loop when we find that out.
  2413. Fri Mar 29 16:59:34 1996 Norbert Kiesel <nk@col.sw-ley.de>
  2414. * rcs.c (annotate_fileproc): allow last line of add-chunk not to
  2415. be newline terminated
  2416. Thu Mar 28 10:56:36 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2417. Add more diff tests:
  2418. * sanity.sh (basic2): Use dotest for test 61.
  2419. (basica): Add test basica-6.2.
  2420. (branches): Add tests branches-14.4 and branches-14.5.
  2421. (basic1): Remove tests 19, 20, 25, and 26. The only thing this
  2422. might miss out on is diff's interaction with added and removed
  2423. files, but those tests didn't test that very well anyway.
  2424. * rcs.c (RCS_getrevtime): Add comment regarding years after 1999.
  2425. * rcs.c: Add "cvs annotate" command and related code.
  2426. (getrcskey): Move special handling of RCSDESC from here to
  2427. callers. Handle those keys (desc, log, text) which do not
  2428. end in a semicolon.
  2429. * rcs.h (RCSVers): Add author field.
  2430. * rcs.c (RCS_reparsercsfile): Set it.
  2431. * cvs.h (annotate), main.c (cmd_usage, cmds), client.h client.c
  2432. (client_annotate), server.c (serve_annotate, requests): Usual
  2433. machinery to add a new command.
  2434. * sanity.sh (basica): Test cvs annotate.
  2435. * sanity.sh (branches): More tests, of things like adding files on
  2436. the trunk after a branch has been made.
  2437. Tue Mar 26 09:48:49 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2438. * expand_path.c: Don't declare free and xmalloc; cvs.h already
  2439. takes care of that.
  2440. * sanity.sh (mflag): Don't use tag name reserved to CVS.
  2441. NT local changes plus miscellaneous things noticed in the process:
  2442. * import.c (add_rcs_file): Use binary mode to write RCS file. Use
  2443. \012 where linefeed is intended. Copy data a small block at a
  2444. time, until we hit EOF, rather than trying to read the whole file
  2445. into memory at once.
  2446. * client.c (send_modified): Add comments regarding st_size.
  2447. * commit.c (commit): Add comments regarding binary mode and read().
  2448. * logmsg.c (do_editor): Add comments regarding st_size.
  2449. * server.c (server_updated): Use binary mode to read file we are
  2450. sending.
  2451. * rcscmds.c (RCS_settag): Complain if user tries to add a tag name
  2452. reserved to CVS.
  2453. * sanity.sh (basica): Test for this behavior.
  2454. * sanity.sh (binfiles): New tests test ability to change keyword
  2455. expansion.
  2456. Mon Mar 25 1996 Jim Kingdon <kingdon@cyclic.com>
  2457. * cvs.h, filesubr.c (expand_wild): New function.
  2458. * recurse.c (start_recursion): Call expand_wild at beginning and
  2459. free its results at the end.
  2460. * cvs.h, subr.c (xrealloc): Make argument and return value void *.
  2461. * client.h, client.c (send_file_names): Add flags argument. If
  2462. SEND_EXPAND_WILD flag is passed, call expand_wild at beginning and
  2463. free its results at the end.
  2464. * admin.c, add.c, log.c, tag.c, status.c, edit.c, watch.c,
  2465. update.c, commit.c, remove.c, client.c, diff.c: Update callers.
  2466. Fri Mar 22 10:09:55 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2467. * error.c (error, fperror): Exit with status EXIT_FAILURE rather
  2468. than STATUS. We had been neglecting to check for 256, and the
  2469. value of providing a count of errors is probably minimal anyway.
  2470. * add.c, modules.c, mkmodules.c, tag.c, server.c, main.c,
  2471. import.c, client.c, scramble.c, recurse.c: Exit with status
  2472. EXIT_FAILURE rather than 1. On VMS, 1 is success, not failure.
  2473. * main.c (main): Return EXIT_FAILURE or 0. The value of providing
  2474. a count of errors is minimal.
  2475. * client.c (init_sockaddr): Exit with status 1 rather than
  2476. EXIT_FAILURE. The latter apparently doesn't exist on SunOS4.
  2477. Reindent function.
  2478. Mon Mar 18 14:28:00 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2479. * cvs.h, ignore.c: New variable ign_case.
  2480. * ignore.c (ign_name): If it is set, match in a case-insensitive
  2481. fashion.
  2482. * server.c (serve_case): New function.
  2483. (requests): Add Case request.
  2484. * client.c (start_server): If FILENAMES_CASE_INSENSITIVE is
  2485. defined, send Case request.
  2486. Sat Mar 16 08:20:01 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2487. For reference, this change takes cvs's text segment from 315392
  2488. bytes to 311296 bytes (one 4096 byte page).
  2489. * cvs.h (struct file_info): Add fullname field.
  2490. * recurse.c (do_file_proc): Set it.
  2491. * commit.c (find_fileproc), client.c (send_fileproc), commit.c
  2492. (check_fileproc), diff.c (diff_fileproc), edit.c
  2493. (unedit_fileproc), patch.c (patch_fileproc), remove.c
  2494. (remove_fileproc), rtag.c (rtag_fileproc), tag.c (tag_fileproc),
  2495. update.c (update_fileproc), watch.c (watchers_fileproc): Use it
  2496. instead of computing it each time.
  2497. * diff.c (diff_fileproc), remove.c (remove_fileproc): Use fullname
  2498. where we had been (bogusly) omitting the directory from user
  2499. messages.
  2500. * edit.c (unedit_fileproc, edit_fileproc): If we cannot close
  2501. CVSADM_NOTIFY, mention CVSADM_NOTIFY rather than finfo->file in
  2502. error message.
  2503. * rtag.c (rtag_fileproc), tag.c (tag_fileproc): Reindent.
  2504. Fri Mar 15 15:12:11 1996 Norbert Kiesel <nk@col.sw-ley.de>
  2505. * server.h: fix prototype of server_pause_check (was
  2506. server_check_pause)
  2507. Thu Mar 14 1996 Jim Kingdon <kingdon@cyclic.com>
  2508. * vers_ts.c (Version_TS), entries.c (Scratch_Entry, AddEntryNode):
  2509. Change findnode to findnode_fn.
  2510. * main.c: Depending on HAVE_WINSOCK_H, include winsock.h or
  2511. declare gethostname.
  2512. * cvs.h: Don't declare it here.
  2513. Thu Mar 14 07:06:59 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2514. * commit.c (find_fileproc): If vn_user is NULL and ts_user is not,
  2515. print an error rather than silently succeeding.
  2516. * sanity.sh (basica-notadded): New test, for above fix.
  2517. (dotest_internal): New function.
  2518. (dotest,dotest_fail): Call it instead of duplicating code between
  2519. these two functions.
  2520. * sanity.sh: Skip tests binfiles-9 through binfiles-13 for remote.
  2521. * options.h.in: Adjust comment to reflect kfogel change.
  2522. Thu Mar 14 01:38:30 1996 Karl Fogel <kfogel@floss.red-bean.com>
  2523. * options.h.in (AUTH_CLIENT_SUPPORT): turn on by default.
  2524. Wed Mar 13 09:25:56 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2525. * vers_ts.c (Version_TS): Don't try to override options from rcs
  2526. file if there isn't an rcs file (e.g. called from send_fileproc).
  2527. This fixes a bug detected by test 59 in "make remotecheck".
  2528. * rcs.c (RCS_reparsercsfile, RCS_getexpand): Assert that argument
  2529. is not NULL.
  2530. Fix a gcc -Wall warning:
  2531. * rcs.c, rcs.h (RCS_getexpand): New function.
  2532. * vers_ts.c (Version_TS): Call it.
  2533. * rcs.c (RCS_reparsercsfile): Make static.
  2534. Add a "cvs init" command. This is needed because cvsinit.sh
  2535. invoked mkmodules which doesn't exist any more.
  2536. * mkmodules.c: Break filelist out of mkmodules function, rename
  2537. struct _checkout_file to struct admin_file (for namespace
  2538. correctness), and add contents field.
  2539. (init,mkdir_if_needed): New functions.
  2540. * cvs.h (init): Declare.
  2541. * main.c (cmds): Add init.
  2542. (main): If command is init, don't require cvsroot to exist.
  2543. * client.c, client.h (client_init, send_init_command): New functions.
  2544. * client.c (start_server): Don't send Root request if command is init.
  2545. * server.c (serve_init): New function.
  2546. (requests): Add "init".
  2547. Wed Mar 13 09:51:03 MET 1996 Norbert Kiesel <nk@col.sw-ley.de>
  2548. * vers_ts.c (Version_TS): set options to default option if the
  2549. file if no -k option but -A was given. This avoids the (wrong)
  2550. update message for binary files which are up-to-date when
  2551. running 'cvs -A'.
  2552. * update.c (checkout_file): remove test of -k option stored in the
  2553. file itself because it was moved to vers_ts.c
  2554. * sanity.sh: added tests for the above fix.
  2555. Tue Mar 12 13:47:09 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2556. * hash.c (findnode): Adjust comment regarding errors.
  2557. * hash.c (findnode, findnode_fn): Assert that key != NULL. This
  2558. way the check still happens even if the function is later
  2559. rewritten to not start out by calling hashp.
  2560. Mon Mar 11 10:21:05 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2561. * sanity.sh: If expr accepts multi-line patterns but is too
  2562. liberal in matching them, print a warning but keep going.
  2563. * sanity.sh: Add QUESTION variable, analogous to PLUS. Use it
  2564. instead of \? to match a question mark.
  2565. * cvs.h (CVSMODULE_OPTS, CVSMODULE_SPEC): Move from here...
  2566. * modules.c: ...to here. They are only used here and the code to
  2567. handle the syntax of modules files should not be scattered all over.
  2568. * modules.c (CVSMODULE_OPTS): Add "+" as first character.
  2569. * sanity.sh (modules): New tests 148a0 and 148a1 test for
  2570. above-fixed bug.
  2571. Mon Mar 11 13:11:04 1996 Samuel Tardieu <sam@inf.enst.fr>
  2572. * modules.c (cat_module): set optind to 0 to force getopt() to
  2573. reinitialize its internal nextchar
  2574. Mon Mar 11 00:09:14 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2575. * hash.c (findnode, findnode_fn): Revert changes of 7-8 Mar 1996.
  2576. The correct style is to assert() that key != NULL (see HACKING),
  2577. which is already done in the hashp function.
  2578. * fileattr.c (fileattr_delproc): Likewise, assert() that
  2579. node->data != NULL rather than trying to deal with it being NULL.
  2580. Fri Mar 8 01:31:04 1996 Greg A. Woods <woods@most.weird.com>
  2581. * hash.c (findnode_fn): one more place to avoid calling hashp()
  2582. with a NULL key
  2583. Thu Mar 7 17:30:01 1996 Greg A. Woods <woods@most.weird.com>
  2584. * hash.c (findnode): also return NULL if key is not set
  2585. [[ reported by Chris_Eich@optilink.optilink.dsccc.com, and
  2586. supposedly in a PR that should be marked "fixed"..... ]]
  2587. * fileattr.c (fileattr_set): set node->data to NULL after freeing
  2588. it to prevent subsequent accesses
  2589. (fileattr_delproc): don't free node->data if it's NULL, and set it
  2590. to NULL after freeing
  2591. [[ reported by Chris_Eich@optilink.optilink.dsccc.com, and
  2592. supposedly in a PR that should be marked "fixed"..... ]]
  2593. Fri Mar 1 14:56:08 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2594. * sanity.sh (basica): New test basica-4a tests for bug fixed by
  2595. sam@inf.enst.fr on 1 Mar 96.
  2596. Fri Mar 1 18:10:49 1996 Samuel Tardieu <sam@inf.enst.fr>
  2597. * tag.c (check_fileproc): Check for file existence before trying
  2598. to tag it.
  2599. Fri Mar 1 07:51:29 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2600. * client.c (update_entries): If command is export, set options to
  2601. NULL.
  2602. Thu Feb 29 16:54:14 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2603. * lock.c (write_lock, Reader_Lock): Remove
  2604. BOGUS_UNLESS_PROVEN_OTHERWISE code. It was pretty bogus, and has
  2605. been ifdeffed out for a long time.
  2606. * cvs.h (CVSTFL): Removed; no longer used.
  2607. * cvsrc.c, cvs.h (read_cvsrc): Pass in command name rather than
  2608. using global variable command_name.
  2609. * main.c (command_name): Initialize to "", not "cvs" so that error
  2610. messages don't say "cvs cvs". Update calls to read_cvsrc to pass
  2611. in command_name or "cvs" as appropriate.
  2612. * sanity.sh (basica): New test basica-9 tests for above-fixed bug.
  2613. * lock.c: Rename unlock to lock_simple_remove to avoid conflict
  2614. with builtin function on QNX.
  2615. Thu Feb 29 17:02:22 1996 Samuel Tardieu <sam@inf.enst.fr>
  2616. * fileattr.c (fileattr_get): Removed NULL pointer dereference
  2617. which occurred in the absence of default attribute.
  2618. Thu Feb 29 07:36:57 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  2619. * rcs.c (RCS_isbranch, RCS_whatbranch): Remove no longer used file
  2620. argument, swap order of remaining two arguments to be like other
  2621. RCS_* functions.
  2622. (RCS_nodeisbranch): swap order of arguments to be like other RCS_*
  2623. functions.
  2624. * rcs.h (RCS_isbranch, RCS_whatbranch, RCS_nodeisbranch): Update
  2625. prototypes for above changes.
  2626. * commit.c, rtag.c, status.c, tag.c: Update for above calling
  2627. convention changes.
  2628. Thu Feb 29 08:39:03 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2629. * client.c (start_server): Revert changes which claimed to fall
  2630. back to a different way of connecting. Add comments explaining
  2631. why. (I don't think the changes did what they claimed, anyway).
  2632. Use indentation rather than comments to line up #if, #else, and
  2633. #endif.
  2634. * patch.c (patch, patch_fileproc): Revert change to add optional
  2635. arguments to -c and -u. Optional arguments are evil and in
  2636. violation of the POSIX argument syntax guidelines. The correct
  2637. way to do this is -C and -U. Also change DIFF back to "diff" in
  2638. output (see comments).
  2639. gcc -Wall lint:
  2640. * client.c (copy_a_file): Declare p inside the #ifdef in which is
  2641. it used.
  2642. * commit.c (remove_file): Remove unused variable p.
  2643. * commit.c (checkaddfile): Remove unused variables p.
  2644. * rcs.c (RCS_isbranch): Remove unused variable p.
  2645. * rcs.c: Remove unused declarations and definitions of
  2646. parse_rcs_proc, rcsnode_delproc, rcslist, and repository.
  2647. * rtag.c (rtag_fileproc): Remove unused variable p.
  2648. * patch.c (patch_fileproc): Remove unused variable p.
  2649. * tag.c (val_fileproc): Remove unused variable node.
  2650. * client.c, import.c, lock.c, server.c: Cast pid_t to long before
  2651. passing it to %ld.
  2652. * cvs.h: Don't prototype gethostname; merely declare it (on linux,
  2653. second argument is size_t not int).
  2654. Thu Feb 29 10:29:25 MET 1996 Norbert Kiesel (nk) <nk@col.sw-ley.de>
  2655. * sanity.sh: added "cat > /dev/null" to loginfo entry to avoid the
  2656. SIGPIPE signal
  2657. Thu Feb 29 10:28:25 MET 1996 Norbert Kiesel (nk) <nk@col.sw-ley.de>
  2658. * patch.c: added new variable diff_opt
  2659. (patch): allow optional parameter to -c and -u option, send it to
  2660. server
  2661. (patch_fileproc): cleaned up the code which prints the current
  2662. filename. For "-s" option, print the pathname relative to CVSROOT
  2663. instead of just the filename.
  2664. * filesubr.c (xchmod): added cast to shut up gcc
  2665. * cvs.h: added prototype for gethostname
  2666. Thu Feb 29 10:27:25 MET 1996 Norbert Kiesel (nk) <nk@col.sw-ley.de>
  2667. * lock.c (write_lock), (Reader_Lock), import.c (update_rcs_file),
  2668. client.c (update_entries), (send_modified), server.c (server),
  2669. (receive_file), (server_updated): use %ld for printing pid_t
  2670. variables
  2671. Thu Feb 29 02:22:12 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2672. * run.c (run_exec): Added VMS return status support.
  2673. Thu Feb 29 01:07:43 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2674. * client.c (send_to_server): wrtn wasn't being declared under
  2675. VMS for some reason.
  2676. Wed Feb 28 23:27:04 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2677. * client.c: Changed #ifdef VMS && NO_SOCKET_TO_FD to
  2678. #if defined(VMS) && defined(NO_SOCKET_TO_FD)
  2679. Wed Feb 28 22:28:43 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2680. * build_src.com: Added DCL command procedure to build
  2681. and link CVS client for VMS.
  2682. Wed Feb 28 22:07:20 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2683. * client.c: VMS CVS client specific changes.
  2684. Added USE_DIRECT_TCP to allow CVS_PORT to be used to specify
  2685. a TCP connection port (no Kerberos). Changed
  2686. start_kerberos_server() to start_tcp_server().
  2687. In copy_a_file(): transform a backup file to have a
  2688. VMS-friendly name.
  2689. Added HAVE_CONFIG_H to include "config.h".
  2690. start_server() will starts the first successful of any
  2691. mutually exclusive methods of starting the CVS server
  2692. which might be enabled.
  2693. Initialized use_socket_style and server_sock for VMS in
  2694. start_server().
  2695. Wed Feb 28 21:49:48 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2696. * find_names.c, recurse.c, cvs.h: Changed Find_Dirs() to
  2697. Find_Directories().
  2698. * cvs.h: Added VMS filenames enabled through USE_VMS_FILENAMES
  2699. VMS POSIX will require to use the regular CVS filenames
  2700. while VMS is #define'd.
  2701. Wed Feb 28 21:26:22 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2702. * ignore.c: Added the patterns *.olb *.exe _$* *$ to default
  2703. ignore list for VMS.
  2704. Wed Feb 28 13:32:28 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2705. * logmsg.c (do_editor): Fix indentation.
  2706. Wed Feb 28 12:56:49 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2707. * logmsg.c (do_editor): If no editor is defined, exit and print
  2708. a message.
  2709. Wed Feb 28 10:40:25 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2710. * vers_ts.c (time_stamp, time_stamp_server): Reindent and revise
  2711. comments.
  2712. Tue Feb 27 23:57:55 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2713. * vers_ts.c: gmtime() returns NULL on some systems (VMS)
  2714. revert to local time via ctime() if GMT is not avaiable.
  2715. Tue Feb 27 13:07:45 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  2716. The changes listed below cause cvs to parse each rcs file (and
  2717. free the associated rcsnode after the file has been processed)
  2718. sequentially. cvs used to parse all files in a directory, an
  2719. approach that does not scale to huge repositories with lots
  2720. of revisions/branches/tags/etc.
  2721. * cvs.h (struct file_info): Removed srcfiles field. Added rcs
  2722. (node) field.
  2723. * recurse.c (do_recursion): Removed code that pre-parsed all
  2724. rcs files in the directory.
  2725. (do_file_proc): Parse current rcs file.
  2726. * rcs.c (RCS_parsefiles, parse_rcs_proc, RCS_addnode): Removed.
  2727. (RCS_isbranch, RCS_whatbranch): Changed srcfiles argument to
  2728. rcs (node).
  2729. * rcs.h (RCS_parsefiles, RCS_addnode): Removed prototypes.
  2730. (RCS_isbranch, RCS_whatbranch): Updated prototypes.
  2731. * add.c, admin.c, checkin.c, checkout.c, classify.c, client.c,
  2732. commit.c, diff.c, history.c, import.c, log.c, patch.c, remove.c,
  2733. rtag.c, status.c, tag.c, update.c, vers_ts: Updated for above
  2734. calling convention / data structure changes.
  2735. Mon Feb 26 16:07:56 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2736. * Version 1.7.3.
  2737. * Version 1.7.2.
  2738. Mon Feb 26 1996 Jim Kingdon <kingdon@cyclic.com>
  2739. * recurse.c (start_recursion): Use last_component rather than
  2740. checking for '/' directly.
  2741. (do_dir_proc): Likewise.
  2742. Visual C++ lint:
  2743. * client.c (send_to_server): Change wrtn to size_t.
  2744. (connect_to_pserver): Put tofd and fromfd declarations inside
  2745. #ifndef NO_SOCKET_TO_FD.
  2746. * scramble.c (shifts): Change from array of char to array of
  2747. unsigned char.
  2748. Mon Feb 26 13:31:25 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2749. * server.c (check_repository_password): Remove unused variables
  2750. linelen, ch.
  2751. * client.c (send_file_names): Translate ISDIRSEP characters to '/'.
  2752. Sat Feb 24 21:25:46 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2753. * checkout.c (safe_location): Re-indent one line.
  2754. Sat Feb 24 10:50:42 1996 Karl Fogel <kfogel@floss.red-bean.com>
  2755. * checkout.c (safe_location): put assignment to hardpath[x] in an
  2756. `else'-clause, so we don't do it when x == -1.
  2757. Sat Feb 24 01:40:28 1996 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
  2758. via Karl Fogel <kfogel@floss.red-bean.com>
  2759. * server.c (check_repository_password): Return by reference an
  2760. optional username, the `host_user', from the passwd file. The
  2761. host_user will be the user-id under which the cvs repository is
  2762. run.
  2763. (check_repository_password): Use `read_line' instead of fgets to
  2764. allow for passwords larger than 32 characters, as well as the
  2765. optional host user argument.
  2766. (check_password): Modify to use host_user.
  2767. (authenticate_connection): Modify to use host_user.
  2768. Sat Feb 24 01:05:21 1996 Karl Fogel <kfogel@floss.red-bean.com>
  2769. * scramble.c (descramble): just shift descrambled string to get
  2770. rid of tag char, instead of allocating a whole new copy.
  2771. (scramble): cast return value of xmalloc to avoid unsightly
  2772. compiler warnings.
  2773. * options.h.in (RCSBIN_DFLT): don't refer to AUTH_SERVER_SUPPORT
  2774. in comment anymore, now that it's not defined in this file.
  2775. Fri Feb 23 1996 Jim Kingdon <kingdon@cyclic.com>
  2776. * client.c: Ifdef HAVE_WINSOCK_H, include winsock.h
  2777. instead of sys/socket.h and friends.
  2778. * login.c: Don't include sys/socket.h and friends.
  2779. * login.c (login): Only fclose fp in the case where it was
  2780. successfully fopen'd.
  2781. * login.c: Declare getpass.
  2782. * filesubr.c, cvs.h (get_homedir): New function.
  2783. * cvsrc.c, expand_path.c, history.c, login.c: Call it instead
  2784. of getenv ("HOME").
  2785. Fri Feb 23 09:23:20 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2786. * client.c (connect_to_pserver): Remove unused variable host.
  2787. * login.c: Include getline.h.
  2788. (login): Remove unused variables i and username.
  2789. (get_cvs_password): Move free of linebuf to where it actually will
  2790. be called. Add a "return NULL" at the end of the function to shut
  2791. up gcc -Wall.
  2792. * options.h.in: Remove AUTH_SERVER_SUPPORT.
  2793. * client.h (authenticate_connection): Declare.
  2794. * scramble.c (scramble): Cast char to unsigned char before using
  2795. it to look up in table (char might be signed).
  2796. * server.c [AUTH_SERVER_SUPPORT]: Include grp.h
  2797. (authenticate_connection): Remove unused variables len and
  2798. server_user.
  2799. * sanity.sh (basica): Add comments regarding creating a top-level
  2800. directory.
  2801. (basic1): Don't try to remove first-dir and
  2802. ${CVSROOT_DIRNAME}/first-dir at start of test; tests are now
  2803. responsible for cleaning up at the end.
  2804. (PLUS,DOTSTAR,ENDANCHOR): Add comments regarding fixed GNU expr.
  2805. Thu Feb 22 22:34:11 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2806. * cvs.h: Remove alloca cruft.
  2807. Wed Feb 21 07:30:16 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  2808. * modules.c (do_module): call free_cwd before exiting.
  2809. * recurse.c: Removed entries global variable.
  2810. (do_recursion): Declare entries. Moved call to Entries_Close so
  2811. entries list is closed on all code paths.
  2812. (start_recursion): Removed call to Entries_Close, entries list has
  2813. been moved to do_recursion only.
  2814. Tue Feb 20 22:10:05 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2815. * update.c (update_dirent_proc): If dir lacks a CVS subdirectory,
  2816. don't recurse into it.
  2817. * sanity.sh (conflicts): Test for above-fixed bug.
  2818. * update.c (merge_file): Use write_letter not printf.
  2819. Tue Feb 20 12:34:07 EST 1996: Gary Oberbrunner <garyo@avs.com>
  2820. and Jim Kingdon <kingdon@cyclic.com>
  2821. * history.c (history_write): Change username to char * and call
  2822. getcaller() to set it. Setting username accidentally got deleted
  2823. 8 Feb 96.
  2824. * sanity.sh: Revise test 64 to test for above-fixed bug.
  2825. * sanity.sh (PLUS): New variable, work around yet another GNU expr
  2826. bug.
  2827. Tue Feb 20 14:07:50 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2828. * sanity.sh: Merge test rtags into test basic2. They never were
  2829. capable of running separately of each other.
  2830. * sanity.sh (deep): New test, to test ability to operate in deeply
  2831. nested directories (more quickly than basic2 test did).
  2832. (basic2,rtags): Remove directories dir3 and dir4. Remove file8,
  2833. file10, file12, file9, file11, file13, file15, file16, file17.
  2834. These additional files slowed down the tests considerably without
  2835. significantly increasing coverage.
  2836. * sanity.sh (PROG): New variable. Use it instead of "cvs"
  2837. to match the name cvs prints out for itself.
  2838. Mon Feb 19 09:00:29 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2839. This fixes a bug whereby old default attributes would get
  2840. clobbered instead of added to on "cvs watch add".
  2841. * hash.c (findnode): Don't check for key == NULL; let the
  2842. assertion in hashp take care of it.
  2843. * fileattr.h, fileattr.c (fileattr_get): If filename is NULL,
  2844. return default attributes.
  2845. * client.c (send_repository): Fix indentation.
  2846. Mon Feb 19 01:10:01 1996 Karl Fogel <kfogel@floss.red-bean.com>
  2847. * login.c (login): print out full repos so user knows which server
  2848. she's logging into.
  2849. * client.c (send_repository): die if `repos' is NULL. This is a
  2850. lame solution; see comments in code.
  2851. Thu Feb 15 15:04:01 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2852. * error.c (error): Free entire and mess when done with them.
  2853. * sanity.sh (info): Correct syntax of .cvsrc file.
  2854. * cvs.h, expand_path.c, edit.c, parseinfo.c, wrapper.c:
  2855. expand_path now takes arguments containing file and line for error
  2856. message, and it prints the error message itself.
  2857. * sanity.sh (info-6a): Test printing of error message.
  2858. * expand_path.c (expand_variable): Add USER internal variable.
  2859. * sanity.sh (info): Test USER and CVSROOT internal variables too.
  2860. Wed Feb 14 19:11:08 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2861. * main.c (usg): Add -s option.
  2862. Tue Feb 13 20:26:06 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2863. gcc -Wall lint:
  2864. * mkmodules.c (mkmodules_usage): Remove declaration of
  2865. non-existent function.
  2866. * cvs.h (mkmodules): Declare.
  2867. Mon Feb 12 12:20:04 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2868. * mkmodules.c: Rename main to mkmodules and remove various pieces
  2869. of scaffolding which it used to emulate non-existent parts of CVS.
  2870. Change calling convention to just take a char * not argc,argv.
  2871. Save and restore working directory.
  2872. * commit.c (commit_filesdoneproc): Call it if checking files into
  2873. CVSROOT.
  2874. * Makefile.in (SOURCES): Add mkmodules.c.
  2875. (OBJECTS): Add mkmodules.o.
  2876. (MSOURCES,MOBJECTS): Removed.
  2877. (COMMON_OBJECTS): Removed; move former contents into OBJECTS.
  2878. Update other rules accordingly.
  2879. * sanity.sh: Adjust to reflect nonexistence of mkmodules.
  2880. These changes introduce functions cvs_output and cvs_outerr;
  2881. eventually all server output will go through them rather than
  2882. stdio directly.
  2883. * server.c (saved_output, saved_outerr): New variables.
  2884. (do_cvs_command): Initialize them.
  2885. (buf_output): Don't require that buf->output be set; saved_* use
  2886. this to shove some data in a buffer which buf_copy_lines will
  2887. later want to get data from.
  2888. * server.c, cvs.h (cvs_output, cvs_outerr): New functions.
  2889. * mkmodules.c (cvs_outerr): New function, so error() works.
  2890. * error.c: Reindent. Don't declare program_name and command_name;
  2891. cvs.h declares them.
  2892. (error): Use vasprintf and cvs_outerr (or fputs in the
  2893. error_use_protocol case) rather than stdio directly.
  2894. * import.c (import_descend_dir): Remove kludge which had prevented
  2895. messages from error() from being out of order with respect to
  2896. messages from printf; cvs_output and cvs_outerr are a cleaner
  2897. solution to the problem.
  2898. (add_log, import): Use cvs_output not printf.
  2899. * update.c (write_letter): Use cvs_output not printf.
  2900. (checkout_file): Use write_letter not printf.
  2901. * sanity.sh: Use dotest for test 56 (test that output is actually
  2902. correct). In theory should test that the import.c bug is fixed,
  2903. but I was unable to reproduce the bug (it is timing dependent).
  2904. Mon Feb 12 16:07:45 1996 Norbert Kiesel <nk@col.sw-ley.de>
  2905. * commit.c: define last_register_time
  2906. (commit): make sure cvs doesn't exit in the same second it wrote
  2907. the last timestamp
  2908. (commit_fileproc): set last_register_time
  2909. (finaladd): set last_register_time
  2910. * run.c, cvs.h: Changed more Popen() to run_popen()
  2911. Mon Feb 12 03:06:50 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2912. * release.c, rtag.c, tag.c: changed 'delete' to 'delete_flag'
  2913. to avoid symbol collision with DEC C RTL function delete()
  2914. Mon Feb 12 03:01:48 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2915. * mkmodules.c: changed 'void Lock_Cleanup()' to 'void static
  2916. Lock_Cleanup() to avoid conflict with more substantial
  2917. Lock_Cleanup() in lock.c
  2918. Mon Feb 12 02:50:19 1996 Benjamin J. Lee <benjamin@cyclic.com>
  2919. * edit.c, logmsg.c, release.c, run.c: Changed Popen() to
  2920. run_popen(). VMS' linker is not case sensitive and considered
  2921. popen() and Popen() to be identical symbols.
  2922. Sun Feb 11 10:51:14 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2923. * main.c (main) [!CLIENT_SUPPORT]: Silently ignore gzip level
  2924. rather than printing usage message.
  2925. * cvs.h, expand_path.c (variable_list): New variable.
  2926. (variable_set): New function.
  2927. * hash.h (enum ntype), hash.c (nodetypestring): Add VARIABLE.
  2928. * expand_path.c (expand_path, expand_variable): Reindent.
  2929. (expand_variable): Use user variables not environment variables
  2930. for ${=VAR} syntax. The environment variables didn't work
  2931. client/server.
  2932. * main.c (main): Process new -s global option.
  2933. * client.c (send_variable_proc): New function.
  2934. (start_server): Call it, to send user variables.
  2935. * server.c (serve_set): New function.
  2936. (requests): Add Set request.
  2937. * sanity.sh: Revise info test to use user variables rather than
  2938. environment variables.
  2939. Sat Feb 10 16:55:37 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2940. By itself this is only a small cleanup, but in the long run it
  2941. will be way cool (for reference, it takes CVS's text segment from
  2942. 290816 bytes to 294912, which I expect will be made up by future
  2943. changes which this enables):
  2944. * cvs.h (struct file_info): Added.
  2945. (FILEPROC): Replace 5 args with single struct file_info *.
  2946. * recurse.c (do_file_proc): Adjust args to fileproc; passed in
  2947. instead of from globals.
  2948. (do_recursion): Call do_file_proc accordingly. Remove srcfiles
  2949. global variable.
  2950. * update.c (update_fileproc): Renamed from update_file_proc.
  2951. * admin.c, client.c, commit.c, diff.c, edit.c, log.c, patch.c,
  2952. remove.c, rtag.c, status.c, tag.c, update.c, watch.c: Update
  2953. fileprocs to new calling convention.
  2954. Fri Feb 9 15:30:32 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2955. * expand_path.c (expand_variable): Accept a variable name starting
  2956. with '=' as a way to specify an environment variable.
  2957. * sanity.sh (info): New tests, for above behavior.
  2958. * Makefile.in (clean): Also remove check.log check.plog.
  2959. * import.c (comtable): Remove SYSTEM_COMMENT_TABLE; the table
  2960. should *not* depend on what kind of machine the server happens to
  2961. be. Add "mak", "rc", "dlg", "frm", and "bas" types which were
  2962. formerly included via SYSTEM_COMMENT_TABLE.
  2963. * cvs.h, rcs.h, add.c, checkin.c, classify.c, commit.c, diff.c,
  2964. import.c, patch.c, rcs.c, update.c, vers_ts.c: Remove
  2965. DEATH_SUPPORT ifdefs. They were introduced to facilitate merging
  2966. between Cygnus and Berliner variants of CVS, not because it was
  2967. intended to subset CVS this way. And they clutter up the code
  2968. quite a bit.
  2969. * cvs.h, create_adm.c, main.c, update.c: Likewise, remove
  2970. CVSADM_ROOT ifdefs (it is still a #define, of course). I believe
  2971. they had a more-or-less similar motivation.
  2972. * sanity.sh: Move setting of HOME from ignore test to the start of
  2973. the tests so it applies to all tests.
  2974. (CVS): Remove -f; the above change takes care of it.
  2975. * rcs.h (RCS_MERGE): Removed; unused.
  2976. * commit.c (checkaddfile): Fix memory leak.
  2977. * admin.c, commit.c, diff.c, log.c, mkmodules.c: Pass -x,v/ to RCS
  2978. commands.
  2979. * rcscmds.c, cvs.h (RCS_checkin): New function.
  2980. * checkin.c, commit.c, import.c: Call it, rather than run_*.
  2981. * cvs.h, commit.c: Remove DEATH_STATE define; the behavior
  2982. which used to be the default (DEATH_STATE) is now the only one.
  2983. Failing to define DEATH_STATE has been commented as obsolete at
  2984. least since CVS 1.5. We still can read repositories created with
  2985. such a CVS, however.
  2986. * rcs.h, rcs.c: Adjust comments regarding DEATH_STATE.
  2987. * subr.c (make_message_rcslegal): Add comment, describing
  2988. allocation of returned value.
  2989. Fri Feb 9 09:53:44 MET 1996 Norbert Kiesel <nk@col.sw-ley.de>
  2990. * sanity.sh: use "${testcvs}" instead of "cvs" in devcom tests
  2991. * hash.c: fix "dereferencing a NULL pointer" bug triggered with
  2992. "cvs watch add"
  2993. (findnode): return NULL if key == NULL
  2994. (hashp): assert (key != NULL)
  2995. Fri Feb 9 00:46:47 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  2996. * rcs.c (RCS_reparsercsfile): Remove unused variable date.
  2997. * myndbm.c (mydbm_load_file): Fix typo ('015' -> '\015').
  2998. Thu Feb 8 13:00:00 1996 Jim Kingdon <kingdon@peary.cyclic.com>
  2999. * rcs.c (RCS_parse, RCS_parsercsfile, RCS_reparsercsfile),
  3000. fileattr.c (fileattr_read), myndbm.c (myndbm_open):
  3001. Use FOPEN_BINARY_READ.
  3002. * fileattr.c (fileattr_write), myndbm.c (myndbm_close):
  3003. Use FOPEN_BINARY_WRITE.
  3004. * history.c (history_write, read_hrecs): Specify OPEN_BINARY.
  3005. * rcs.c: Remove calls to abort.
  3006. * myndbm.c (myndbm_load_file): Ignore CRs from ends of lines
  3007. if present.
  3008. * myndbm.c, fileattr.c: While I am at it, change \n to \012
  3009. a few places where LF is intended.
  3010. * history.c (history_write): Use getenv ("HOME"), not getpwnam,
  3011. to find home directory. If it isn't set, just keep going; don't
  3012. print a message.
  3013. * rcscmds.c, cvs.h (RCS_checkout): New function.
  3014. * update.c, checkin.c, commit.c, diff.c, import.c, no_diff.c,
  3015. patch.c: Call it instead of run_*.
  3016. * patch.c (patch_fileproc): Clean up inconsistent handling of
  3017. noexec flag.
  3018. * rcscmds.c (RCS_*): Pass -x,v/ to RCS commands; elsewhere in
  3019. CVS it is assumed that ,v is a suffix.
  3020. Fri Feb 2 14:07:32 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  3021. * rcs.h (struct rcsnode): Remove dates field (list of rcsversnodes
  3022. indexed by date). CVS maintained this list for each RCS file even
  3023. though it was never used. This resulted in higher then necessary
  3024. memory requirements (and run time too). Even if revision info was
  3025. needed, CVS' List data structure is inappropriate because can't
  3026. handle duplicate keys. The above was discovered by tracking down
  3027. a memory leak.
  3028. * rcs.c (RCS_reparsercsfile): Don't build dates list.
  3029. (freercsnode): Don't delete dates list.
  3030. (rcsvers_delproc): Free date field.
  3031. (null_delproc): Removed.
  3032. Thu Feb 1 12:28:33 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3033. * remove.c (cvsremove): Don't tell user the name of the program
  3034. which they use to remove files; we don't have any way of knowing
  3035. that, and besides which they might use a GUI or emacs 'dired' anyway.
  3036. * update.c (update_filesdone_proc, update_dirleave_proc): Call
  3037. unlink_file_dir instead of rm -rf.
  3038. * options.h.in: Remove RM; no longer used.
  3039. * sanity.sh: New tests devcom-a* test "cvs watch add",
  3040. "cvs watch remove", and "cvs watchers".
  3041. * sanity.sh: New test 171a0 tests for watch.c bug just fixed by kfogel.
  3042. * Most .c files: Remove rcsids.
  3043. * cvs.h: Remove USE macro.
  3044. Thu Feb 1 13:07:15 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  3045. * tag.c, rtag.c: Update various comments to reflect function name
  3046. changes.
  3047. Thu Feb 1 14:14:31 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3048. * recurse.c (do_recursion): comment #endif.
  3049. * edit.c (notify_check): surround with #ifdef CLIENT_SUPPORT; else
  3050. CVS won't compile if CLIENT_SUPPORT is undefined.
  3051. * edit.h (notify_check): surround declaration with #ifdef
  3052. CLIENT_SUPPORT.
  3053. * watch.c (watch): if argc <= 1, then just give usage (previously
  3054. was "argc == -1").
  3055. Thu Feb 1 12:28:33 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3056. * README-rm-add: Remove information which is now in cvs.texinfo.
  3057. * sanity.sh: Remove basic0 tests. Move a few to new tests
  3058. basica-1a* (but there is no need to test that *every* command
  3059. gracefully does nothing on an empty directory; exhaustive testing
  3060. is impractical and the generic recursion processor handles this
  3061. anyway).
  3062. * sanity.sh: New tests 69a* test use of update -p to restore old
  3063. version of dead file.
  3064. Wed Jan 31 18:32:34 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3065. * ChangeLog-9395: Remove duplicate entries from 1996 which
  3066. accidentally got into this file.
  3067. * client.c (read_line, read_from_server): Change "premature end of
  3068. file from server" message to "end of file from server (consult
  3069. above messages if any)" because 99% of the time it means rsh has
  3070. printed an error message and exited.
  3071. Wed Jan 31 15:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  3072. * edit.c (ncheck_fileproc): Fix memory leak; free line before
  3073. returning.
  3074. Tue Jan 30 18:06:12 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3075. * recurse.c (do_recursion): Add comment about the fact that we
  3076. don't have locks in place at certain points.
  3077. Tue Jan 30 09:43:34 1996 Vince Demarco <vdemarco@bou.shl.com>
  3078. * edit.c (notify_proc): have notify_proc call expand_path with
  3079. the name of the filter program. The user may have used a
  3080. cvs environmental variable. (Popen will expand it, but it may not
  3081. use the correct value)
  3082. Tue Jan 30 09:43:34 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3083. * ChangeLog: take the pre-1996 changes and put them in a new file
  3084. ChangeLog-9395.
  3085. * ChangeLog-9194: Renamed from ChangeLog.fsf.
  3086. * ChangeLog-9194, ChangeLog-9395, ChangeLog: Add additional text
  3087. explaining the difference between all these logs and pointing to
  3088. older logs.
  3089. * Makefile.in (DISTFILES): Add ChangeLog-9194 and ChangeLog-9395;
  3090. remove ChangeLog.fsf.
  3091. * modules.c (do_module): Don't fall through from 'l' to 'o' case
  3092. of option processing switch statement.
  3093. Tue Jan 30 06:50:19 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  3094. * client.c (send_repository): Fix memory leak; free adm_name
  3095. before returning.
  3096. * diff.c (diff_file_nodiff): Fix memory leak; free xvers before
  3097. returning.
  3098. * rtag.c (rtag_fileproc): Fix memory leak; if branch_mode is set,
  3099. free rev before returning.
  3100. * status.c (status_fileproc, tag_list_proc): Fix memory leak; free
  3101. return value of RCS_whatbranch.
  3102. * tag.c (tag_fileproc): Fix memory leak; free vers before
  3103. returning.
  3104. (val_fileproc): Fix memory leak; free return value of RCS_gettag.
  3105. * watch.c (watch_modify_watchers): Fix memory leak; free mynewattr
  3106. before returning.
  3107. Tue Jan 30 09:43:34 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3108. * lock.c (readers_exist): If stat gave an error, print an error
  3109. message saying it was from stat, rather than from "reading
  3110. directory". Skip the message completely if it was an
  3111. existence_error.
  3112. * sanity.sh (branches): New tests (branches off of branches, etc.).
  3113. Tue Jan 30 11:55:34 MET 1996 Norbert Kiesel <nk@col.sw-ley.de>
  3114. * main.c (main): Add change to run getopt_long twice again.
  3115. Mon Jan 29 15:59:31 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3116. gcc -Wall lint:
  3117. * client.c: Include edit.h
  3118. Sun Jan 28 09:45:53 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3119. * edit.c, edit.h (mark_up_to_date): New function, to remove file
  3120. in CVS/Base.
  3121. * client.c (update_entries): Call it if file is up to date.
  3122. * checkin.c (Checkin): Call it in non-server (local) case.
  3123. * sanity.sh: New test 182.5, tests for above-fixed bug.
  3124. Sun Jan 28 01:07:22 1996 Jim Kingdon (kingdon@beezley)
  3125. * client.c (change_mode): Separate out CHMOD_BROKEN code to parse
  3126. mode_string, rather than going through a mode_t. Cleaner than
  3127. the previous CHMOD_BROKEN code (which also had a typo of && not &).
  3128. Sat Jan 27 23:29:46 1996 Jim Kingdon (kingdon@beezley)
  3129. * edit.c (edit_fileproc): Check for EACCESS as well as EEXIST.
  3130. Sat Jan 27 16:26:30 1996 Karl Fogel (kfogel@floss.cyclic.com)
  3131. * client.c (notified_a_file): use rename_file() instead of
  3132. rename() (but temporarily set `noexec' to 0 so it runs
  3133. unconditionally).
  3134. (change_mode): deal with CHMOD_BROKEN.
  3135. Fri Jan 26 00:14:00 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3136. * server.c: renamed `dirname' to `dir_name', to avoid conflicts
  3137. with system headers.
  3138. * client.c: renamed `dirname' and `last_dirname' to `dir_name' and
  3139. last_dir_name' (see above). Not strictly necessary, but
  3140. consistency is nice -- as long as you do it all the time.
  3141. Thu Jan 25 00:41:59 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3142. * options.h.in (AUTH_SERVER_SUPPORT, AUTH_CLIENT_SUPPORT): change
  3143. comment now that no longer under construction.
  3144. Wed Jan 24 15:25:22 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3145. * Version 1.7.1.
  3146. * Version 1.7.
  3147. Sat Jan 20 00:05:08 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3148. * Version 1.6.87.
  3149. Mon Jan 15 18:14:55 1996 Gary Oberbrunner <garyo@avs.com>
  3150. and Jim Kingdon <kingdon@harvey.cyclic.com>
  3151. * tag.c (val_direntproc): New function to ignore
  3152. nonexistent dirs when recursing to check tag validity.
  3153. (tag_check_valid): Pass it to start_recursion.
  3154. * sanity.sh (death): New tests 65a0-65a6 cause test 74 to test for
  3155. above-fixed bug.
  3156. Mon Jan 15 12:55:37 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3157. * main.c: Revert change to run getopt_long twice. This can go in
  3158. after 1.7.
  3159. Mon Jan 15 13:03:28 1996 Norbert Kiesel <nk@col.sw-ley.de>
  3160. * filesubr.c (deep_remove_dir): added test of EEXIST for nonempty
  3161. directory (Posix states that both ENOTEMPTY (BSD) and EEXIST
  3162. (SYSV) are valid)
  3163. * main.c (main): run getopt_long twice to allow command-line
  3164. suppression of reading the cvsrc file
  3165. Fri Jan 12 10:02:43 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3166. * Version 1.6.86.
  3167. Thu Jan 11 23:28:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  3168. and Jim Kingdon <kingdon@harvey.cyclic.com>
  3169. * fileattr.h (fileattr_startdir): Add comment about REPOS == NULL.
  3170. * fileattr.c (fileattr_read, fileattr_write): Assert that
  3171. fileattr_stored_repos != NULL.
  3172. (fileattr_free): If fileattr_stored_repos is NULL, don't free it.
  3173. Thu Jan 11 18:03:21 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3174. * scramble.c (descramble): deal with DIAGNOSTIC better.
  3175. Thu Jan 11 12:04:42 1996 Norbert Kiesel <nk@col.sw-ley.de>
  3176. * main.c: remove CVS_NOADMIN.
  3177. * options.h.in: remove CVS_NOADMIN
  3178. Thu Jan 11 10:28:44 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3179. * scramble.c (descramble): make sure the string returned is safe
  3180. to free().
  3181. Wed Jan 10 01:11:23 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3182. * server.c (serve_notify): Cast return value from malloc.
  3183. * edit.c (notify_do): Use struct assignment, not struct
  3184. initialization (which SunOS4 /bin/cc doesn't have).
  3185. Tue Jan 9 09:41:29 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3186. * Version 1.6.85.
  3187. We use version numbers instead of patchlevels. But there was some
  3188. confusing patchlevel stuff lying around. Nuke it:
  3189. * Makefile.in (HEADERS): Remove patchlevel.h
  3190. * patchlevel.h: Removed.
  3191. * main.c: Don't include patchlevel.h.
  3192. (main): Don't print patch level.
  3193. * server.c (check_repository_password): Check for errors from
  3194. system calls; reindent function.
  3195. Tue Jan 9 23:15:30 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3196. * expand_path.c: fix comments (explain expand_path()'s behavior
  3197. correctly).
  3198. Tue Jan 9 09:41:29 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3199. * edit.c (notify_proc): After copying in string following %s,
  3200. don't clobber it. Instead set up q to end of string.
  3201. * watch.c (watch_modify_watchers), edit.c (editor_set): Fix sense
  3202. of test in trying to decide whether attributes are changed.
  3203. * cvs.h (CVSROOTADM_USERS): New macro.
  3204. * edit.c (notify_do): Look up notifyee in CVSROOTADM_USERS if it
  3205. exists.
  3206. Tue Jan 9 21:39:45 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3207. * expand_path.c: don't redundantly #include things that cvs.h
  3208. already #includes (i.e., stdio.h, ctype.h, string[s].h).
  3209. Tue Jan 9 09:41:29 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3210. * ignore.c (ign_default): Add *.obj.
  3211. * server.c: Put /* */ around #endif comment.
  3212. Mon Jan 8 20:37:17 1996 Karl Fogel <kfogel@floss.red-bean.com>
  3213. * client.c (connect_to_pserver): check return value of recv().
  3214. Mon Jan 8 11:37:57 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3215. * client.c (connect_to_pserver): Check for error from connect;
  3216. reindent function.
  3217. * sanity.sh (4.75): Use dotest, so we get a PASS if test passes.
  3218. * sanity.sh (dotest): New argument OUTPUT2.
  3219. (188a): Use it instead of \|.
  3220. * sanity.sh (import): Avoid using string $ followed by Id followed
  3221. by $ in sanity.sh source, in case sanity.sh itself is under CVS.
  3222. I hate keyword expansion.
  3223. * sanity.sh: If expr cannot handle multiline expressions, fail and
  3224. tell the user to get one which can.
  3225. * release.c (release_delete): Remove unused variable retcode.
  3226. Fri Jan 5 13:30:00 1996 Jim Kingdon <kingdon@peary.cyclic.com>
  3227. * release.c (release_delete): Call unlink_file_dir rather
  3228. than "rm -rf".
  3229. Thu Jan 4 09:58:30 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3230. * commit.c (find_fileproc): Print "nothing known about foo" and
  3231. return 1 if the file doesn't exist and isn't in CVS/Entries.
  3232. (commit): If the recursion over find_fileproc returns an error,
  3233. print "correct above errors first!" just like local CVS.
  3234. * sanity.sh (basica): Test for above-fixed bug.
  3235. * release.c (release): If we are the client, only unedit if the
  3236. server supports it.
  3237. * sanity.sh: Remove STARTANCHOR stuff; expr patterns are
  3238. automatically anchored to the start. ENDANCHOR remains.
  3239. * commit.c (commit): Don't start the server until we have
  3240. determined that there is something to commit.
  3241. Thu Jan 4 09:48:33 1996 Ben Laurie <ben@gonzo.ben.algroup.co.uk>
  3242. and Jim Kingdon <kingdon@harvey.cyclic.com>
  3243. * client.c (start_server): dup the file descriptor before
  3244. fdopening it.
  3245. Wed Jan 3 18:25:25 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3246. * sanity.sh: Remove tests 5, 5.5, and 5.75. All that stuff is
  3247. tested elsewhere.
  3248. * ignore.c (ign_default): Change CVS* to CVS CVS.adm. CVS* is too
  3249. broad, especially in a case-insensitive filesystem.
  3250. * Makefile.in (cvsbug): version.c is in srcdir.
  3251. Wed Jan 3 17:30:45 1996 Phi-Long Tran <ptran@autodesk.com>
  3252. * modules.c (do_module): Honor error_use_protocol in printing trace.
  3253. * server.c (server_register): Move check for options NULL to above
  3254. printing of the trace.
  3255. Wed Jan 3 01:19:53 1996 Mark Immel <immel@centerline.com>
  3256. and Jim Kingdon <kingdon@harvey.cyclic.com>
  3257. * update.c (checkout_file): Do not resurrect file on join if it
  3258. doesn't contain the revisions we are joining. Probably not a
  3259. perfect test, but should be an improvement.
  3260. * sanity.sh (death): New death-file4-* tests, for bug fixed above.
  3261. Wed Jan 3 01:19:53 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3262. * add.c, admin.c, checkout.c, client.c, commit.c, diff.c, edit.c,
  3263. history.c, import.c, log.c, patch.c, release.c, remove.c, rtag.c,
  3264. status.c, tag.c, update.c, watch.c: In calling send_to_server,
  3265. pass \012 not \n. On the Mac \n is CR, not LF, and we want to
  3266. send LF. I didn't try to deal with whether files in CVSADM should
  3267. contain CR or LF--in fact there is some code in client.c which
  3268. reads \n from CVSADM files and passes it to send_to_server; it
  3269. needs to be cleaned up one way or the other.
  3270. * entries.c (Entries_Open): Don't try to close fpin twice.
  3271. * client.c (update_entries): Fix typo ("strlen (filename + 10)"
  3272. -> "strlen (filename) + 10").
  3273. * commit.c (checkaddfile): Remove arbitrary limit.
  3274. Tue Jan 2 11:25:22 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3275. * commit.c (commit): Only pass files which were modified, added,
  3276. or removed to send_file_names. This has as a side effect a
  3277. semantic change--the up-to-date check is now skipped for other
  3278. files--but probably a good one, or at least not a bad one.
  3279. * sanity.sh (basica): New test; tests for bug fixed above.
  3280. * sanity.sh (187a3): Adjust for new 'cvs commit' output. Set up
  3281. DOTSTAR to match arbitrary text (another GNU expr bug/misfeature,
  3282. sigh).
  3283. * sanity.sh: Test that the commit in test 43 actually worked.
  3284. Merge tests basic2 and basic3 and make them independent of basic1.
  3285. (pass,fail): Don't insert spurious space.
  3286. (45.5): Fix typo in directory name.
  3287. Tue Jan 2 13:00:00 1996 Jim Kingdon <kingdon@peary.cyclic.com>
  3288. Visual C++ lint:
  3289. * myndbm.c: Prototype write_item.
  3290. Tue Jan 2 11:25:22 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3291. gcc -Wall lint:
  3292. * client.c (client_expand_modules): Pass error message not "" to error.
  3293. * client.c (supported_request), server.c (supported_response):
  3294. Return a value (gcc -Wall can't know that error doesn't return).
  3295. * commit.c (copy_ulist): Return a value.
  3296. * history.c (fill_hrec): Don't make assumptions about whether
  3297. time_t is "int" or "long" or what.
  3298. * cvs.h: Declare link_file.
  3299. * server.c: Include fileattr.h.
  3300. * server.c (server_notify): Remove unused variable val.
  3301. * tag.c (val_fileproc): Remove unused variable foundtag.
  3302. Mon Jan 1 09:49:16 1996 Jim Kingdon <kingdon@harvey.cyclic.com>
  3303. * Version 1.6.5.
  3304. * Version 1.6.4.
  3305. * filesubr.c (link_file): Add comment about link vs. copy semantics.
  3306. * cvs.h (struct vers_ts): Fix comments.
  3307. * commit.c (commit): Before we ask for a log message, figure out
  3308. what is modified and what is not and pass the information to
  3309. do_editor.
  3310. (copy_ulist,find_fileproc): New helper functions for above code.
  3311. * client.c (read_line): When writing to from_server_logfile, write
  3312. the \n too.
  3313. * client.c (send_files): No longer call send_file_names.
  3314. * client.h: Update comment.
  3315. * add.c, admin.c, commit.c, diff.c, edit.c, log.c, remove.c,
  3316. status.c, tag.c, update.c, watch.c: Call send_file_names before
  3317. send_files.
  3318. * client.c: New variables module_argc, module_argv.
  3319. (client_expand_modules): Set them, to arguments.
  3320. (client_send_expansions): Use them instead of modules_vector to
  3321. send arguments.
  3322. * sanity.sh (modules): Add test of modules -d flag.
  3323. For older changes see ChangeLog-9395.