summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
AgeCommit message (Collapse)Author
2005-07-25KNF;Xavier Santolaria
2005-07-07remove trailing whitespacesJoris Vink
from deraadt@
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
2005-05-25unused codeJean-Francois Brousseau
2005-05-25modify rcs_rev_add() to accept a time_t argument to explicitly setJean-Francois Brousseau
the revision's timestamp (-1 is equivalent to using the current time)
2005-05-25- basic code for rcs_rev_add() and rcs_rev_remove(), does notJean-Francois Brousseau
handle deltatexts yet - fix rcs_head_set() by allocating the head pointer if there was no previous head revision - initialize subnodes list correctly for RCS deltas - fix a crash in rcs_strprint() on NULL strings -
2005-05-25add cvs_comment_lookup() and a suffix -> comment leader lookup tableJean-Francois Brousseau
to determine the appropriate comment leader for a file
2005-05-25add the RCS_ERR_ERRNO code to indicate that the actual error code isJean-Francois Brousseau
in errno, fix cvs_errstr() to return the appropriate string, and sprinkle some error setting where appropriate
2005-04-20check the validity of tag names passed to the tag command, and printJean-Francois Brousseau
an abort message if the tag is invalid. also, match gnu cvs behaviour with regards to command usage output on usage errors. ok joris
2005-04-19add error messages for the new RCS error codesJean-Francois Brousseau
2005-04-19add rcs_sym_check() to check the validity of an RCS symbol andJean-Francois Brousseau
sprinkle some in the other symbol functions
2005-04-12* handle errors when loading delta branchesJean-Francois Brousseau
* when writing RCS output, generate the proper list of branches for deltas
2005-04-11modify handling of RCS delta texts so we can handle arbitrary binaryJean-Francois Brousseau
data
2005-04-11fix year value in RCS outputJean-Francois Brousseau
2005-04-07* reverse symbol list orderJean-Francois Brousseau
* allow retrieval and setting of the head revision number
2005-04-07Perform proper escaping of the @ character in all RCS strings whenJean-Francois Brousseau
writing the output to the file. ok joris@
2005-04-07Fix RCS parsing for keywords that expect and ID and use cvs_strfree()Jean-Francois Brousseau
instead of free() on the duplicated token string to fix a double-free ok xsa@
2005-04-06* allow for creation and removal of RCS locksJean-Francois Brousseau
* add rcs_tag_resolve() to resolve a branch, tag or revision easily
2005-04-06start using strtab stuff in RCS code.Joris Vink
ok jfb@, xsa@
2005-04-06plug memleak in rcs_splitlines()Joris Vink
ok jfb@
2005-03-26fix a variety of things i found at coverity. ok joris@Ted Unangst
2005-03-13set rcs_errno to RCS_ERR_NOENT if no matching symbol is found inJean-Francois Brousseau
rcs_sym_getrev()
2005-03-13support for the optional `branch' keyword, which is used to set theJean-Francois Brousseau
default branch for an RCS file
2005-03-13spacingJean-Francois Brousseau
2005-03-05add functions to retrieve and set the comment leader for an RCSJean-Francois Brousseau
file
2005-03-05add RCS error codes and a global variable to hold the last errorJean-Francois Brousseau
and make the code less verbose at the same time
2005-03-05identify ID tokens correctly and fix parsing of RCS files containingJean-Francois Brousseau
no revisions
2005-03-05functions to manage the locking mode of RCS fileJean-Francois Brousseau
2005-03-04add real support for the `access' keyword, both in parsing andJean-Francois Brousseau
output; rcs_access_add() can be used to add a new login name to the access list, and rcs_access_remove() to remove an entry
2005-03-03allow for the creation of RCS files that have no revisions,Jean-Francois Brousseau
therefore no specification for the head revision
2005-03-02- rcs_write() is now staticJean-Francois Brousseau
- when setting a new expansion mode, do not attempt to free the previous expansion mode if the pointer is NULL - add a bunch of new functions: * rcs_sym_remove() to remove a symbol * rcs_sym_getrev() to retrieve the revision number of a symbol * rcs_desc_{s,g}et() to manipulate an RCS file's description
2005-02-27Many improvements to the RCS support:Jean-Francois Brousseau
- make it possible to specify creation and the file mode in rcs_open() - implicitly write the contents to disk on rcs_close() if the RCS handle has been changed - fix a bug in the output of the `expand' keyword - add functions to retrieve and modify the expansion mode - rcs_parse() shouldn't be available to the outside - empty string instead of `(null)' if there is no description ok Joris
2005-02-25- switch to rcsnum_parse() where appropriateJean-Francois Brousseau
- make rcsnum_parse() fail if it encounters an invalid character
2005-02-16get rid of unneeded whitespaceJean-Francois Brousseau
2005-01-24more error checkingJean-Francois Brousseau
looks ok from Joris Vink
2005-01-14tweak the output of rcs_kflag_usage() to avoid line wrappingJean-Francois Brousseau
2005-01-13add rcs_kflag_usage() to display the various keyword expansion modesJean-Francois Brousseau
supported by the -k argument
2005-01-12add rcs_kflag_get() to validate kflagsJean-Francois Brousseau
2004-12-18when parsing an RCS date, adjust the year by 1900 in the tm structureJean-Francois Brousseau
so we can use this data with asctime(), mktime() and friends spotted and patch by Joris Vink
2004-12-17* increase the initial parse buffer size to 16384 bytesJean-Francois Brousseau
* grow the parse buffer as required in rcs_gettok() * fix line counting offset tested by Joris Vink and myself
2004-12-16plug some memory leaks on error casesJean-Francois Brousseau
2004-12-16Add rcs_gethead() to easily retrieve the head revision of an RCSJean-Francois Brousseau
file.
2004-12-07less whitespace, more pretty. ok jfbTed Unangst
2004-12-06tighten vertical spacing for else; jfb okTheo de Raadt
2004-09-27Plug all of the remaining memory leaks using my new Plug-O-Matic 2000(C)Jean-Francois Brousseau
2004-09-27Plug two of the huge leaks that Joris Vink has reported. rcs_freedelta()Jean-Francois Brousseau
didn't free the RCSNUMs associated with the delta version and next one
2004-09-25- check return values for rcsnum_alloc()Joris Vink
- fix crash when parsing an RCS file and the "branch" keyword was found - allow '-' and '_' characters in rcs_gettok() (used in symbollists for ex.)
2004-09-16check value of strdup(3) calls;Joris Vink
ok jfb
2004-08-12Unused variableJean-Francois Brousseau
2004-08-02Unused variableJean-Francois Brousseau