summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/remove.c
AgeCommit message (Collapse)Author
2009-02-21use FILE_ON_DISK flags when we need to verify if a fileJoris Vink
exists in the working copy or not instead of checking fd being -1 since this can differ in server or local mode.
2008-06-23Some conformance fixes:Anders Magnusson
- Empty brackets forbidden in C99. - ? : and skipping middle argument is both disallowed and considered bad programming habit. OK ray@, xsa@.
2008-06-14don't always re-open the same CVS/Entries file, instead keep theJoris Vink
last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously. while doing this, switch the way we write revisions to disk by using fwrite(3) so stuff can get written to disk in chunks instead of writing everything line by line, another win. with help from otto@ ok tobias@
2008-06-14Run cvs_remove_force only if -f has been specified.Tobias Stoeckmann
ok joris
2008-06-08kill debug printfJoris Vink
2008-06-08properly handle FILE_UPTODATE and FILE_LOSTJoris Vink
2008-06-08Properly build up path to description files (descr entry in RCS files ifTobias Stoeckmann
you add a file with -m message). ok joris
2008-03-08add checkout/update -j support.Joris Vink
still has some rough edges.
2008-02-09Introduce cvs_ent_line_str() - formats CVS/Entries lines.Xavier Santolaria
OK tobias@.
2008-02-06Sticky tags must have a 'T' in front of them in CVS/Entries.Tobias Stoeckmann
OK joris@
2008-02-04Added -k flag support for all commands which support it.Tobias Stoeckmann
OK joris@
2008-01-31Replaced the unused cvs_command variable cmd_req with cmd_flags, which statesTobias Stoeckmann
if the current command is supposed to use a working directory or if it is a repository-only command (as of now checkout -p, rtag, rlog). Makes the code simpler, easier to read and automagically fixes some issues we encountered with these commands (for example if a working directory exists, or "." operations are performed). OK joris@, niallo@
2008-01-28Properly handle -R -- although it is default, it may be overwritten mit -lTobias Stoeckmann
in front of it. OK joris@, xsa@ > Diff from Igor Zinovik
2008-01-10another strcspn() roundTobias Stoeckmann
2007-09-22better branching/sticky tag support, no branch commits yet though.Joris Vink
2007-06-28Sync revisions and time buffers size to be consistent with each others.Xavier Santolaria
Simplifies further size tweaks if needed. OK niallo@ 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-01-31snprintf() -> xsnprintf()Xavier Santolaria
2007-01-27when we specify the 'f' flag do not bother removing files thatJoris Vink
dont exist on disk anyway, and when removing a file that has been added but not commited the correct file_status is FILE_REMOVE_ENTRY and not FILE_ADDED. ok otto@
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-03make sure remove -f also works in remote setupJoris Vink
2007-01-03add support for 'remove' in a remote setup.Joris Vink
testing appriciated, as always.
2006-12-14no need to send -f to the server; this flag has effectXavier Santolaria
on the client-side only.
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@