summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/commit.c
AgeCommit message (Collapse)Author
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.
2006-05-27dont allow commit to continue if the file that is beingJoris Vink
commited needs to be updated or merged first.
2006-05-27commiting removed files now worksJoris Vink
2006-05-27commit the new opencvs code, i have been hacking onJoris Vink
this for the past 2 weeks now and it should go in at the start of the hackathon so others can help out. this code is a lot safer, smarter, faster and best of all it is actually doing what it is suppose to do! basic checkout, update, status, diff and commit are working in local mode only. there is no support for any remote setups now.
2006-04-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
2006-04-01fix some bugs that lint discovered for us.Joris Vink
ok niallo@
2006-03-16zap more unused variables.Xavier Santolaria
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-30major cleanup of the functions handling the remote cvs protocol.Joris Vink
makes the code a lot more readable and understandable. ok xsa@ and niallo@
2005-12-22cvs_rcs_getpath() cannot fail anymore;Xavier Santolaria
2005-12-21cvs_logmsg_open() and cvs_logmsg_get() cannot fail anymore;Xavier Santolaria
2005-12-10switch to xmalloc stuff, me and xsa@ agreed on this a longJoris Vink
time ago, but we were being held back by jfb. too bad for him. next step is to use fatal() through out the code for unrecoverable errors instead of trying to be all nice and fluffy and reach main() again. ok niallo@ and xsa@
2005-07-27use LP_NOTICE instead of LP_INFO where appropriate;Xavier Santolaria
2005-07-25KNF;Xavier Santolaria
2005-07-23rewrite of the file code. the previous one was justJoris Vink
a mess and not clean. this code is much cleaner, faster, and uses less memory overall. tested by xsa@, brad@, Michael Knudsen, and myself. okay xsa@
2005-07-23correctly seperate added, modified and removed files for use in theJoris Vink
construction of the log message in the editor. ok jfb@
2005-07-22use the cf_name field of the CVSFILE struct instead of using the oldJoris Vink
CVS_FILE_NAME macro. This macro used to be nifty because of all the referencing for the names, but since we don't do that anymore and use cf_name directly... byebye CVS_FILE_NAME() okay xsa@
2005-07-19unbreak the commit command.Joris Vink
2005-07-14use cvs_rcs_getpath();Xavier Santolaria
2005-07-12split this into cvs_commit_{remote,local}() functions;Xavier Santolaria
ok jfb@ (Yes, Yes he IS back!!)