summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
AgeCommit message (Collapse)Author
2005-09-29set RCS_SYNCED to off in some more functions whichMoritz Jodeit
change rcs file content. ok joris@
2005-09-29return -1 instead of NULL in rcs_sym_{add,remove}. ok joris@Moritz Jodeit
2005-09-29don't forget to put the revision into the rcs_lockMoritz Jodeit
struct in rcs_lock_add(). ok niallo@ joris@
2005-09-29implement RCS_HEAD_REV in rcs_rev_add()Niall O'Higgins
ok joris@
2005-09-29allow RCS_HEAD_REV to be passed to rcs_getrev() to obtain the head revision;Joris Vink
2005-09-19Zap some compiler warnings about uninitialized variables.Niall O'Higgins
ok joris@
2005-09-18- ensure rcs_rev_add() and rcs_kwexp_set() set the RCS_SYNCED flag to offNiall O'Higgins
properly. ok joris@
2005-09-18RCS keyword expansion support, only $Log$ is not supported right now.Joris Vink
2005-09-18fix memleakJoris Vink
2005-09-17fix stupidity in rcs_patch_lines() and return -1 on error so we actuallyJoris Vink
catch the error instead of completely crashing.
2005-09-05style;Xavier Santolaria
2005-08-14missing casts; ok jorisXavier Santolaria
2005-08-11a few casts; ok jfbXavier Santolaria
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