summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/remove.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Move some global variables/statics to locals, from Michael Wnicm2011-12-271-2/+2
| | | | Bombardieri.
* use FILE_ON_DISK flags when we need to verify if a filejoris2009-02-211-3/+3
| | | | | exists in the working copy or not instead of checking fd being -1 since this can differ in server or local mode.
* Some conformance fixes:ragge2008-06-231-2/+3
| | | | | | | - Empty brackets forbidden in C99. - ? : and skipping middle argument is both disallowed and considered bad programming habit. OK ray@, xsa@.
* don't always re-open the same CVS/Entries file, instead keep thejoris2008-06-141-3/+1
| | | | | | | | | | | | 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@
* Run cvs_remove_force only if -f has been specified.tobias2008-06-141-7/+9
| | | | ok joris
* kill debug printfjoris2008-06-081-2/+1
|
* properly handle FILE_UPTODATE and FILE_LOSTjoris2008-06-081-2/+3
|
* Properly build up path to description files (descr entry in RCS files iftobias2008-06-081-2/+2
| | | | | | you add a file with -m message). ok joris
* add checkout/update -j support.joris2008-03-081-3/+3
| | | | still has some rough edges.
* Introduce cvs_ent_line_str() - formats CVS/Entries lines.xsa2008-02-091-4/+4
| | | | OK tobias@.
* Sticky tags must have a 'T' in front of them in CVS/Entries.tobias2008-02-061-3/+8
| | | | OK joris@
* Added -k flag support for all commands which support it.tobias2008-02-041-4/+5
| | | | OK joris@
* Replaced the unused cvs_command variable cmd_req with cmd_flags, which statestobias2008-01-311-2/+2
| | | | | | | | | | | 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@
* Properly handle -R -- although it is default, it may be overwritten mit -ltobias2008-01-281-1/+2
| | | | | | | | in front of it. OK joris@, xsa@ > Diff from Igor Zinovik
* another strcspn() roundtobias2008-01-101-3/+2
|
* better branching/sticky tag support, no branch commits yet though.joris2007-09-221-2/+2
|
* Sync revisions and time buffers size to be consistent with each others.xsa2007-06-281-2/+2
| | | | | Simplifies further size tweaks if needed. OK niallo@ ray@.
* general includes cleanup sweep. ok joris@ niallo@otto2007-02-221-3/+4
|
* remove the cvs_file_classify() `loud' argument, it was usedjoris2007-02-091-2/+2
| | | | | | in the old school days and serves no purpose what so ever now. otto@ mentioned this to me a while ago
* snprintf() -> xsnprintf()xsa2007-01-311-8/+3
|
* when we specify the 'f' flag do not bother removing files thatjoris2007-01-271-3/+3
| | | | | | | | 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@
* 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@
* make sure remove -f also works in remote setupjoris2007-01-031-10/+22
|
* add support for 'remove' in a remote setup.joris2007-01-031-8/+13
| | | | testing appriciated, as always.
* no need to send -f to the server; this flag has effectxsa2006-12-141-4/+1
| | | | on the client-side only.
* - handle global -n flag in conjunction with remove -f.xsa2006-11-061-4/+5
| | | | - better error message.
* a step ahead in opencvs add|remove remote support.xsa2006-10-311-12/+33
|
* kill local and remote callback and just have one called fileproc.joris2006-06-191-3/+2
| | | | | | 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
|
* dont check for FILE_UNKNOWN twice,joris2006-05-311-7/+1
| | | | noticed by xsa@
* correctly handle unknown file in removejoris2006-05-301-1/+8
|
* fill in the correct revision number we will want in file_rcsrevjoris2006-05-301-2/+2
| | | | | for each cvs_file struct, this will help us with sticky tags, commiting to branches and importing into existing repositories.
* prettier output when removing files;joris2006-05-301-14/+13
|
* fix pastoxsa2006-05-291-3/+3
|
* remove likes some CR_RECURSE_DIRS luvin' too.joris2006-05-291-1/+5
|
* add remove support, hacked by xsa@ but lots of modificationsjoris2006-05-291-0/+186
| | | | | | | from me to actually make it work properly. commiting since xsa@ is not around and i want to move forward. ray@ agrees.
* commit the new opencvs code, i have been hacking onjoris2006-05-271-239/+0
| | | | | | | | | | | | 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.
* remove a metric buttload of excessive ()deraadt2006-04-141-4/+4
| | | | no binary change; ok ray
* zap more unused variables.xsa2006-03-161-3/+1
|
* errors handling cleaning here too;xsa2006-01-271-6/+7
|
* snprintf() cleanup; OK niallo@.xsa2006-01-251-9/+8
|
* #include's cleanup; ok joris@ niallo@.xsa2006-01-021-10/+2
|
* major cleanup of the functions handling the remote cvs protocol.joris2005-12-301-20/+9
| | | | | | makes the code a lot more readable and understandable. ok xsa@ and niallo@
* add very basic support for the following stuff:joris2005-12-031-2/+2
| | | | | | | | | | | | | | | | | | | | | - 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@
* knf and spacing, ok joris@reyk2005-10-071-2/+2
|
* more bits for the local remove command support; OK joris@.xsa2005-09-061-2/+7
|
* - handle removal of a freshly added filexsa2005-08-221-3/+12
| | | | | - fix crash if we specify -f and the file is not on disk anymore ok joris@.
* a few things left to do here.xsa2005-08-121-1/+7
|
* style..xsa2005-08-101-3/+3
|