summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/admin.c
AgeCommit message (Collapse)Author
2008-09-12Be also very conservative about the supplied revision for state changes,Tobias Stoeckmann
i.e. don't successfully parse "admin -s dead:1.1:1.1". Changed global var logrev into function-specific all-purpose rev, too. No objections xsa@
2008-06-20admin is only allowed on files which have an entry in CVS/Entries.Tobias Stoeckmann
ok joris
2008-06-14Conforming to RCS specification, it is possible but unlikely to encounterTobias Stoeckmann
an RCS file which has no head revision set. Some commands actually can work with them (log, status) so support these files. Fixes A LOT of possible segmentation faults. ok joris
2008-06-13pass the complete path to cvs_file_get_cf() instead of reconstructingJoris Vink
it again in that function.
2008-06-11ofd is being closed in cvs_file_free(), no need to close it ourselfsJoris Vink
2008-05-22expension -> expansionTobias Stoeckmann
ok joris, xsa (quite some time ago)
2008-05-11If "cvs admin" encountered an entry in CVS/Entries for a file which has noTobias Stoeckmann
(longer an) RCS file in CVSROOT, both -- GNU cvs and OpenCVS -- segfaulted. ok joris
2008-03-09proper repository locking:Joris Vink
- all read operations now look for a lock, and wait if present but never try to lock the tree themselfs anymore. - all write operations lock the tree where needed. - commit locks all relevant directories before even attempting to start.
2008-03-09pass user_supplied to struct cvs_file so it can be usedJoris Vink
in the callbacks to verify if this file was specified on the command line.
2008-02-04Added -k flag support for all commands which support it.Tobias Stoeckmann
OK joris@
2008-01-31We have cvs_client_send_logmsg for transmission of log messages.Tobias Stoeckmann
OK joris@ xsa@
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@
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-17cvs_path_cat() removal since we can now easily handle thatXavier Santolaria
functionality w/ xsnprintf(); Initial diff started by thib@. OK thib@ joris@.
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-02-01add support for [-k mode]; tests/input/ok otto@.Xavier Santolaria
2007-01-25use more stack allocations for fixed size buffers. ok xsa@ joris@Otto Moerbeek
2007-01-21add support for the -A flag;Xavier Santolaria
wrap some lines while there. OK joris@.
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-02missing xfree()'s; spotted by joris.Xavier Santolaria
2007-01-01add support for [-s state[:rev]]Xavier Santolaria
2006-12-31client-side bits might be useful too for -m...Xavier Santolaria
2006-12-31add support for -m option.Xavier Santolaria
2006-11-13Run cvs_file_classify() so local mode works...Xavier Santolaria
2006-11-13fix check on required arguments.Xavier Santolaria
2006-11-13Write rcs file when finished.Xavier Santolaria
2006-11-13Add support for [-a users] and [-o rev].Xavier Santolaria
2006-11-13bring back basic admin command, mostly based on OpenRCS rcs(1).Xavier Santolaria
not linked to build yet.
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-10change rcs_kwexp_set() return type to void and simplify its use. OK niallo@.Xavier Santolaria
2006-04-01fix some bugs that lint discovered for us.Joris Vink
ok niallo@
2006-03-24Remove unused variables, better integer types, prevent fallthroughs.Ray Lai
Found by lint. Compare char * variables against NULL for consistency and add parentheses around complicated comparisons, suggested by xsa@. OK xsa@
2006-03-16zap more unused variables.Xavier Santolaria
2006-02-01cannot admin newly added file.Xavier Santolaria
2006-01-30strerror() -> rcs_errstr() when passing rcs_errno as argument;Xavier Santolaria
2006-01-27more errors handling cleanup;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-07-27use LP_NOTICE instead of LP_INFO where appropriate;Xavier Santolaria
2005-07-25KNF;Xavier Santolaria
2005-07-18be consistent w/ warning messages (and handle -Q);Xavier Santolaria
2005-07-14use cvs_rcs_getpath();Xavier Santolaria
2005-07-11add info message;Xavier Santolaria
2005-07-07remove trailing whitespacesJoris Vink
from deraadt@
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
2005-05-25split cvs_admin_file() into the local and remote versions and doJean-Francois Brousseau
some cleanup
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