summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/commit.c
AgeCommit message (Collapse)Author
2007-06-18first stab at history stuff for opencvs, currently only writesJoris Vink
to CVSROOT/history but cannot parse it yet with the 'history' command. "Commit it." ray@
2007-06-01add support for local and remote branch checkout. for example,Niall O'Higgins
cvs co -rOPENBSD_3_0 works now. along the way, simplify and rationalise code and fix a few nits. ok joris@ xsa@ ray@
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-02-09remove the cvs_file_classify() `loud' argument, it was usedJoris Vink
in the old school days and serves no purpose what so ever now. otto@ mentioned this to me a while ago
2007-02-01change mode of a newly created rcs file in the repository to 0444Otto Moerbeek
ok jorix@ xsa@
2007-01-31snprintf() -> xsnprintf()Xavier Santolaria
2007-01-26- support [-k mode] for the add commandXavier Santolaria
- do not let the file keyword expension options (-k) disappear from the Entries file when doing a commit/update/checkout - be sure the expension mode gets written to the RCS file when a file is added/committed in the first place problems raised by otto@; tests/ok otto@ and joris@.
2007-01-25use more stack allocations for fixed size buffers. ok xsa@ joris@Otto Moerbeek
2007-01-18send -l Argument to server when appropriate.Xavier Santolaria
2007-01-14move things around in rcs_rev_getbuf() and rcs_rev_write_fd()Joris Vink
so that we do keyword expansion on-the-fly if required instead of obtaining the revision in memory first, running over the revision lines while expanding keywords and only then writing them to the fd or memory buffer. this drasticly decreases cpu usage by opencvs on very large trees (like src). OK niallo@
2007-01-13switch commit code to the new RCS api.Joris Vink
kay niallo@
2007-01-13plug 3 memleaksJoris Vink
2007-01-13remove BUF * argument from cvs_checkout_file() it willJoris Vink
no longer be used, ever.
2007-01-12major re-work of the RCS api. this results in 100x performance improvements ↵Niall O'Higgins
in some places and much reduced memory usage. note that only checkout has been fully converted to use the new high-performance functions. other codepaths (e.g. update) still use the old method which is provided for backwards compatibility. we can convert the remaining slow bits over to the new api piece-by-piece. "commit this, now" joris@ brad@ tested, too.
2007-01-12do not leak memory from rcs_head_get()Joris Vink
ok niallo@
2007-01-12if we have no files to be commited, stop commiting.Joris Vink
2007-01-12complete binary support for opencvs,Joris Vink
adding/importing binary files now works too partially taken from openrcs
2007-01-11silence some warnings.Jasper Lievisse Adriaanse
ok joris@
2007-01-11in a remote setup:Joris Vink
do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
2007-01-07use cvs_logmsg_read() for -F for simplicity.Joris Vink
2007-01-07free the filelists we pass to cvs_logmsg_create()Joris Vink
after we obtain our logmessage.
2007-01-07rewrite of the logmessage code, which allows you toJoris Vink
enter a logmessage into your favorite editor when commiting.
2007-01-03add support for 'remove' in a remote setup.Joris Vink
testing appriciated, as always.
2007-01-03if we are commiting a file, do not let the server resend itJoris Vink
with an 'Updated' response, seeing as the client will already have the latest version. Instead, send the correct 'Checked-in' response.
2007-01-02- fix cvs_client_remove_entry to correctly handle the passed dataJoris Vink
- when commiting in a remote setup, allow the opencvs server to send the correct response to the client when a file has been removed
2006-12-31minor nits;Xavier Santolaria
2006-07-08Remove file mode argument from {cvs|rcs}_buf_write_stmp(). WeRay Lai
always set the temporary file to mode 600, which is already done by mkstemp(). OK joris@ and xsa@ over a month ago.
2006-07-07first part of opencvs remote, fairly useable on existing treesJoris Vink
although i advise against using it on real development trees for now. only a few commands work right so far: - commit - diff - status - log - update (partially working) if you feel like testing remote and run into bugs feel free to contact me, and please include a full trace (-t).
2006-07-02- abort the commit when files are not correctly up to date.Joris Vink
- do not try to attempt to check for conflict markers when the file is not on disk. found by and okay reyk@
2006-06-29it is a really good idea to store the result cvs_buf_load_fd returnsJoris Vink
in bp, considering we depend on that. found by reyk who is now my favorite german person, 10x.
2006-06-28print less verbose messages for cvs commit and add if the -q/-Q flagReyk Floeter
has been specified. ok joris@
2006-06-28do not fail when we are trying to commit a newly added file when the CVS/*,tJoris Vink
file is not present for the file. spotted and tested by reyk@ okay xsa@
2006-06-19kill local and remote callback and just have one called fileproc.Joris Vink
we let the commands pass the correct function. all in preparation for remote.
2006-06-16in preparation for the new remote code, proto.h becomes obsolete.Joris Vink
2006-06-14add cvs_buf_load_fd() which does the same as cvs_buf_load()Joris Vink
except it takes a decriptor as argument instead of a path. modified cvs_buf_load() to open the descriptor then pass it to cvs_buf_load_fd(). change all the calls to cvs_buf_load() that have a descriptor open for the path to cvs_buf_load_fd() to prevent races.
2006-06-13files that are not checked out are not up-to-date, considerJoris Vink
this a conflict and block the commit when we encounter any of these. and make an error message a bit more fluffy and accurate.
2006-06-07add support for <name>,t file:Xavier Santolaria
- add: creates <name>,t file with initial description if -m option was used. - commit: uses <name>,t content (if it exists) to set the file description OK joris@.
2006-06-06hello commit -F supportJoris Vink
2006-06-04sprinkle -n voodoo over the add, commit and import commands.Joris Vink
2006-06-01major rewrite of some rcs parsing stuff:Joris Vink
- rework rcs_getrev() to correctly support branches - rework rcs_translate_tag() to correctly translate given symbols or branches into their matching revisions - rework rcs_rev_add() to correctly update its 'next' pointers and insert the new revision in the correct place on the list. - rework rcs_head_get() to return the latest revision on the default branch if it has been set or the normal HEAD revision otherwise. - no longer access the rf_head member of the RCSFILE struct manually, use the rcs_head_get() function which correctly returns the HEAD revision, there might be a default branch that has to be used. - for now, when commiting a new revision reset the default branch.
2006-05-31when adding a new file that already exists set the previousJoris Vink
deltatext (the dead revision) to the correct rcs diff if the file was modified in any way.
2006-05-31allow commit to ressurect added files that exist in Attic/Joris Vink
2006-05-30fill in the correct revision number we will want in file_rcsrevJoris Vink
for each cvs_file struct, this will help us with sticky tags, commiting to branches and importing into existing repositories.
2006-05-30the moment we are done commiting a removed file, move the RCS fileJoris Vink
into the Attic and out of our way.
2006-05-28enable basic add command, only works on files right now.Joris Vink
2006-05-28allow commands to shut up the output from cvs_file_classifyJoris Vink
if the commands want to output certain stuff themselfs
2006-05-28teach opencvs ci how to commit files that have been added,Joris Vink
opencvs can now commit modified files, removed files and added files. hip hip hurray!
2006-05-28enable merging on update. if your file in your working copyJoris Vink
has been modified by yourself and there is a newer revision we try and merge them together. if the merge fails and has conflicts it will mark them inside the file, you will need to resolve these by hand first before you will be able to commit your modified file. works transparent with gnu cvs, as it is suppose to.
2006-05-27show which directory we are examining in our pre-commit checks.Joris Vink
2006-05-27allow commands to respect the -l flag, if the -l flag isJoris Vink
specified certain commands will not recurse into directories. at the same time introduce a method of specifying wether or not a command should look in the repository for files.