summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/remove.c
AgeCommit message (Collapse)Author
2006-11-06- handle global -n flag in conjunction with remove -f.Xavier Santolaria
- better error message.
2006-10-31a step ahead in opencvs add|remove remote support.Xavier Santolaria
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-05-31dont check for FILE_UNKNOWN twice,Joris Vink
noticed by xsa@
2006-05-30correctly handle unknown file in removeJoris 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-30prettier output when removing files;Joris Vink
2006-05-29fix pastoXavier Santolaria
2006-05-29remove likes some CR_RECURSE_DIRS luvin' too.Joris Vink
2006-05-29add remove support, hacked by xsa@ but lots of modificationsJoris Vink
from me to actually make it work properly. commiting since xsa@ is not around and i want to move forward. ray@ agrees.
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-03-16zap more unused variables.Xavier Santolaria
2006-01-27errors handling cleaning here too;Xavier Santolaria
2006-01-25snprintf() cleanup; OK niallo@.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-03add very basic support for the following stuff:Joris Vink
- checkout in local mode (example: /cvs) - update in local and server mode (example: /cvs and user@host:/cvs) - import in local and server mode (example: /cvs and user@host:/cvs) what remains to be done: - not all options are supported yet, and update cannot pick up newly added files yet. these things are pending and will be commited real soon. - checkout only works locally right now. - fix rcs parsing code so that we don't fucking hog 100% cpu on really BIG BIG BIG ass trees. mainly tested by pedro@ and myself, thanks a lot pedro! "go for it" niallo@
2005-10-07knf and spacing, ok joris@Reyk Floeter
2005-09-06more bits for the local remove command support; OK joris@.Xavier Santolaria
2005-08-22- handle removal of a freshly added fileXavier Santolaria
- fix crash if we specify -f and the file is not on disk anymore ok joris@.
2005-08-12a few things left to do here.Xavier Santolaria
2005-08-10style..Xavier Santolaria
2005-07-29do not send a MODIFIED request to the server for a newly added file weJoris Vink
already removed again. spotted by & ok xsa@
2005-07-29make sure we do not try to send the file to the server if it is noJoris Vink
longer on disk. problem reported by Nuno Morgadinho. ok xsa@
2005-07-27more use of LP_NOTICE instead of LP_INFO;Xavier Santolaria
2005-07-27use LP_NOTICE instead of LP_INFO where appropriate;Xavier Santolaria
2005-07-26remove the (errno != ENOENT) check now that it is included in cvs_unlink();Xavier Santolaria
2005-07-25"file file" -> "this file" in an info msg;Xavier Santolaria
2005-07-25KNF;Xavier Santolaria
2005-07-24some more `if (!var)' cleanup;Xavier Santolaria
2005-07-24use cvs_unlink();Xavier Santolaria
2005-07-24do not use `if (!var)' unless it's boolean, better use an == check;Xavier Santolaria
ok jfb@ joris@.
2005-07-23fix remote remove command, gcc didn't even catch this misplaced bracket.Joris Vink
2005-07-21if the remove command is issued on a file that has been added but notXavier Santolaria
committed yet, remove CVS/<file>,t (in local mode); ok joris@.
2005-07-20fix local mode; ok joris@.Xavier Santolaria
2005-07-11print info message;Xavier Santolaria
2005-07-08split local and remote function handlers from each other.Joris Vink
2005-07-07remove trailing whitespacesJoris Vink
from deraadt@
2005-05-24Merge the cvs_cmd and cvs_cmd_info structures and add the necessaryJean-Francois Brousseau
fields to hook local versions of the commands. This needs to go in before it gets any bigger ok joris
2005-05-20correct wrong error code usage.Joris Vink
ok jfb@, xsa@
2005-05-20cvs_noexec checks; jfb okXavier Santolaria
2005-05-12make functions static; joris okXavier Santolaria
2005-04-21let the `cvs remove' command work with no file(s) specified as args;Xavier Santolaria
joris ok
2005-04-21better include the cvs_sendfile() req in the conditional statement soXavier Santolaria
it behaves like expected.. pointed out by joris@.
2005-04-21add checks for files still physically present that should be removed;Xavier Santolaria
input/ok joris
2005-04-19- remove unused headerXavier Santolaria
- add -l and -R flags - add check on cvs_sendentry() return value joris@ ok
2005-04-18Modify the CVSFILE structure using a union to keep information aboutJean-Francois Brousseau
both files and directories. We can now keep the revision number for regular files, and don't need to fetch the appropriate entry in the command callbacks. This saves a huge amount of parsing on Entries files. ok joris@
2005-04-12introduce our own set of error codes used by the commands to reportJoris Vink
what exactly went wrong in case of an error. ok jfb@