summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* better branching/sticky tag support, no branch commits yet though.joris2007-09-221-7/+7
|
* properly send our log message to the server using Argumentx, so wejoris2007-08-301-2/+3
| | | | | | no longer break when the log message has multiple lines. from Tobias Stoeckmann, thanks for doing my work!
* When commiting to a server in a remote setup classifyjoris2007-06-281-2/+5
| | | | | | | | the files based upon their entry in CVS/Entries instead of using the local classifying code and trying to locate the RCSfile on our local disks, which ofc does not work correctly. OK niallo@
* first stab at history stuff for opencvs, currently only writesjoris2007-06-181-2/+23
| | | | | | to CVSROOT/history but cannot parse it yet with the 'history' command. "Commit it." ray@
* add support for local and remote branch checkout. for example,niallo2007-06-011-2/+2
| | | | | | | cvs co -rOPENBSD_3_0 works now. along the way, simplify and rationalise code and fix a few nits. ok joris@ xsa@ ray@
* general includes cleanup sweep. ok joris@ niallo@otto2007-02-221-3/+7
|
* remove the cvs_file_classify() `loud' argument, it was usedjoris2007-02-091-7/+3
| | | | | | in the old school days and serves no purpose what so ever now. otto@ mentioned this to me a while ago
* change mode of a newly created rcs file in the repository to 0444otto2007-02-011-2/+2
| | | | ok jorix@ xsa@
* snprintf() -> xsnprintf()xsa2007-01-311-15/+8
|
* - support [-k mode] for the add commandxsa2007-01-261-1/+8
| | | | | | | | - 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@.
* use more stack allocations for fixed size buffers. ok xsa@ joris@otto2007-01-251-17/+4
|
* send -l Argument to server when appropriate.xsa2007-01-181-1/+4
|
* move things around in rcs_rev_getbuf() and rcs_rev_write_fd()joris2007-01-141-2/+2
| | | | | | | | | | | 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@
* switch commit code to the new RCS api.joris2007-01-131-20/+12
| | | | kay niallo@
* plug 3 memleaksjoris2007-01-131-1/+4
|
* remove BUF * argument from cvs_checkout_file() it willjoris2007-01-131-6/+2
| | | | no longer be used, ever.
* major re-work of the RCS api. this results in 100x performance improvements in some places and muchniallo2007-01-121-4/+4
| | | | | | | | | 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.
* do not leak memory from rcs_head_get()joris2007-01-121-4/+8
| | | | ok niallo@
* if we have no files to be commited, stop commiting.joris2007-01-121-1/+4
|
* complete binary support for opencvs,joris2007-01-121-19/+8
| | | | | | adding/importing binary files now works too partially taken from openrcs
* silence some warnings.jasper2007-01-111-4/+4
| | | | ok joris@
* in a remote setup:joris2007-01-111-1/+2
| | | | | | | do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
* use cvs_logmsg_read() for -F for simplicity.joris2007-01-071-6/+2
|
* free the filelists we pass to cvs_logmsg_create()joris2007-01-071-1/+5
| | | | after we obtain our logmessage.
* rewrite of the logmessage code, which allows you tojoris2007-01-071-32/+51
| | | | enter a logmessage into your favorite editor when commiting.
* add support for 'remove' in a remote setup.joris2007-01-031-15/+4
| | | | testing appriciated, as always.
* if we are commiting a file, do not let the server resend itjoris2007-01-031-2/+2
| | | | | with an 'Updated' response, seeing as the client will already have the latest version. Instead, send the correct 'Checked-in' response.
* - fix cvs_client_remove_entry to correctly handle the passed datajoris2007-01-021-2/+16
| | | | | - when commiting in a remote setup, allow the opencvs server to send the correct response to the client when a file has been removed
* minor nits;xsa2006-12-311-7/+7
|
* Remove file mode argument from {cvs|rcs}_buf_write_stmp(). Weray2006-07-081-3/+3
| | | | | | | always set the temporary file to mode 600, which is already done by mkstemp(). OK joris@ and xsa@ over a month ago.
* first part of opencvs remote, fairly useable on existing treesjoris2006-07-071-2/+22
| | | | | | | | | | | | | | 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).
* - abort the commit when files are not correctly up to date.joris2006-07-021-4/+8
| | | | | | - do not try to attempt to check for conflict markers when the file is not on disk. found by and okay reyk@
* it is a really good idea to store the result cvs_buf_load_fd returnsjoris2006-06-291-2/+2
| | | | | | in bp, considering we depend on that. found by reyk who is now my favorite german person, 10x.
* print less verbose messages for cvs commit and add if the -q/-Q flagreyk2006-06-281-12/+19
| | | | | | has been specified. ok joris@
* do not fail when we are trying to commit a newly added file when the CVS/*,tjoris2006-06-281-3/+5
| | | | | | | file is not present for the file. spotted and tested by reyk@ okay xsa@
* kill local and remote callback and just have one called fileproc.joris2006-06-191-4/+3
| | | | | | we let the commands pass the correct function. all in preparation for remote.
* in preparation for the new remote code, proto.h becomes obsolete.joris2006-06-161-3/+2
|
* add cvs_buf_load_fd() which does the same as cvs_buf_load()joris2006-06-141-3/+3
| | | | | | | | | | 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.
* files that are not checked out are not up-to-date, considerjoris2006-06-131-3/+4
| | | | | | this a conflict and block the commit when we encounter any of these. and make an error message a bit more fluffy and accurate.
* add support for <name>,t file:xsa2006-06-071-1/+34
| | | | | | - 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@.
* hello commit -F supportjoris2006-06-061-1/+8
|
* sprinkle -n voodoo over the add, commit and import commands.joris2006-06-041-1/+4
|
* major rewrite of some rcs parsing stuff:joris2006-06-011-2/+7
| | | | | | | | | | | | | | - 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.
* when adding a new file that already exists set the previousjoris2006-05-311-4/+8
| | | | | deltatext (the dead revision) to the correct rcs diff if the file was modified in any way.
* allow commit to ressurect added files that exist in Attic/joris2006-05-311-12/+46
|
* fill in the correct revision number we will want in file_rcsrevjoris2006-05-301-3/+3
| | | | | for each cvs_file struct, this will help us with sticky tags, commiting to branches and importing into existing repositories.
* the moment we are done commiting a removed file, move the RCS filejoris2006-05-301-2/+29
| | | | into the Attic and out of our way.
* enable basic add command, only works on files right now.joris2006-05-281-9/+17
|
* allow commands to shut up the output from cvs_file_classifyjoris2006-05-281-3/+3
| | | | if the commands want to output certain stuff themselfs
* teach opencvs ci how to commit files that have been added,joris2006-05-281-7/+29
| | | | | | opencvs can now commit modified files, removed files and added files. hip hip hurray!