summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cmd.c
AgeCommit message (Collapse)Author
2006-11-14Bring back version command. Still needs tweaks to make theXavier Santolaria
gnu cvs client<->opencvs server setup work. Rest works fine.
2006-11-13Add server-side bits for admin command.Xavier Santolaria
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-06-12bring back a working version of the `cvs init' command. OK joris@.Xavier Santolaria
2006-06-07bring back tag command; basic tag addition/deletion available. OK joris@.Xavier Santolaria
2006-05-31add support for the export command.Joris Vink
export does exactly the same as checkout except it does not create any administrative (CVS/) directories.
2006-05-30hello import, only works for non-existing repositories right now,Joris Vink
but work is in progress for importing stuff into existing repositories.
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-28add basic 'cvs log' support.Joris Vink
2006-05-28enable basic add command, only works on files right now.Joris 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-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-30knfReyk Floeter
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-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-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-22- don't check for admin files when running init;Joris Vink
- don't pass the Entry for newly added files to cvs_date_parse() - in rcs_rev_add don't bother looking for the previous rev if we are creating the RCS file. from PR 4575
2005-10-07knf and spacing, ok joris@Reyk Floeter
2005-09-13unbreak opencvs serverJoris Vink
ok xsa@
2005-09-07make sure the administrative files that the commands depend on areJoris Vink
present before we try to continue. ok xsa@
2005-07-26move trace message before calling cvs_connect();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-21<sys/param.h> is already included in "cvs.h", no need to duplicate;Xavier Santolaria
2005-07-08don't try to run the pruning function on server side.Joris Vink
2005-07-07remove trailing whitespacesJoris Vink
from deraadt@
2005-07-04enable all commands; ok joris@.Xavier Santolaria
2005-06-14finish pruning support, this has been sittingJoris Vink
in my tree since c2k5 ok xsa@
2005-06-13move the CVSROOT check earlier in the process, this way we get theXavier Santolaria
CVSROOT checked before the commands are run ... ok joris@.
2005-06-07don't forget to call cvs_disconnect() at the endJoris Vink
of a remote connection. ok xsa@
2005-06-02handle commands which do not have any init callback a bitJoris Vink
better, eliminates the use of dummy functions. OK jfb@
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
2005-05-25no need to check cvs_trace before outputting a trace, the log codeJean-Francois Brousseau
does it for us
2005-05-24remove debugging messagesJean-Francois Brousseau
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-23add some logging for `cvs -t' option use; ok joris@Xavier Santolaria
2005-05-20execute the command callback at the same time we are buildingJoris Vink
the in-memory filelist. cuts down on execution time for larger trees. "put it in!" jfb@
2005-04-25first part of file API changes:Joris Vink
- fix our behaviour regarding directories or files in a different directory than we currently are as arguments to commands, this allows stuff like "cvs status sys/arch/i386/Makefile" to work. - when parsing a pathname only load the needed nodes of the path instead of loading *everything* in memory. the next step in this is to merge the collection and callback execution together. ok jfb@, xsa@
2005-04-25* add missing 'R' flag in diff synopsisJean-Francois Brousseau
* add the CVS_EX_BADROOT return code to indicate that there was no CVSROOT given or it was invalid ok joris, xsa
2005-04-18remove debugging leftoversJean-Francois Brousseau
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-13cmd_helper() returns error codes > 0 or 0 on success.Joris Vink
2005-04-12use the new CVS_EX_* error codes here as well.Joris Vink
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@
2005-04-11don't include sysexits.h now we don't use those error codesJoris Vink
anymore.
2005-04-11remove EX_USAGE error codesJoris Vink
ok jfb@
2005-04-03first round of EX_* exit codes removal; ok joris@.Xavier Santolaria
2005-04-01make sure we don't do unneeded things for the version command.Joris Vink
2005-03-31make sure the server command can still be reached with theJoris Vink
new framework. ok xsa@