summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
AgeCommit message (Collapse)Author
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
2004-07-14* when writing to an RCS file, escape the funny charactersJean-Francois Brousseau
* pretty
2004-07-14fix rcs_findrev()'s searching algorithmVincent Labrecque
2004-07-14split rcs_patch in rcs_patch/rcs_patchlinesVincent Labrecque
2004-07-14buffers should be freed using cvs_buf_free(), not free()Vincent Labrecque
2004-07-14allocate datenum dynamically (XXX - dont do it for each date)Vincent Labrecque
2004-07-14microoptimization!Vincent Labrecque
2004-07-13* initial import from the cvs-tools moduleJean-Francois Brousseau