summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/proto.c
AgeCommit message (Collapse)Author
2005-05-24as a client, the the Root response first, before trying to ask the versionJoris Vink
from our server. This will prevent our server from screwing up in cvs_startcmd(). ok jfb@
2005-05-24send the -n flag to the server as part of connection initializationJean-Francois Brousseau
if it was given on the command-line
2005-05-23allow the CVS_CLIENT_LOG stuff to take variables which expandJoris Vink
into usefull information to create unique logfile names. okay jfb@
2005-05-12snprintf checks; joris okXavier Santolaria
2005-05-09cvs_getln() can fail and return -1.Joris Vink
2005-04-22finish support for the '-' token in the Entry file, this allowsJoris Vink
us to mark files as removed, and lets the remove command work completely. tested and ok xsa@, jfb@
2005-04-18don't send an Entry reply to the server for unknown files,Joris Vink
fixes "foo is not (any longer) pertinent" errors
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-03first round of EX_* exit codes removal; ok joris@.Xavier Santolaria
2005-03-30move all the client commands to the new command framework.Joris Vink
eliminates a lot of duplicate code. ok jfb@
2005-03-26fix a variety of things i found at coverity. ok joris@Ted Unangst
2005-03-13unbreak, and do this correct.Joris Vink
2005-03-13simplify if {} else {} case.Joris Vink
ok xsa@
2005-03-04add missing 'add' request in cvs_request table.Joris Vink
ok jfb@
2005-02-04cleanup and additional error checking on connection setupJean-Francois Brousseau
2005-01-14minor knf and cleanup, and remove unneeded extern declarations, theyJean-Francois Brousseau
are now in cvs.h
2005-01-14sprinkle more error reporting and add a trace when sending a fileJean-Francois Brousseau
to the server
2004-12-22spelling corrections; ok jmc@David Krause
2004-12-16make cvs_connect() print an error message and return with an errorJean-Francois Brousseau
code if an unsupported connection method is specified in the root specification, and warn that pserver will never be supported due to its poor security
2004-12-14missing `tag' request in the request tableJean-Francois Brousseau
from Joris Vink
2004-12-08support for the `Copy-file' responseJean-Francois Brousseau
2004-12-08add a small protection to avoid reconnecting to a server to which weJean-Francois Brousseau
are already connected. instead, cvs will print a notice.
2004-12-08avoid resending a directory if it was the last directory sent to theJean-Francois Brousseau
server
2004-12-07less whitespace, more pretty. ok jfbTed Unangst
2004-12-06tighten vertical spacing for else; jfb okTheo de Raadt
2004-12-02This commit is brought to you by the brand new improved and better tastingJean-Francois Brousseau
OpenCVS commit code.
2004-11-26Rewrite the internals of the file management code so that we do not keepJean-Francois Brousseau
a full path to each file we load, and cache file names so we can have multiple references to a single name. This saves a lot of memory on large trees such as /usr/src, especially on 'Makefile', 'README' and such.
2004-11-16more correct error checking, from Joris Vink <amni at pandora dot be>Jean-Francois Brousseau
2004-11-15Fix some issues in the protocol dispatch table:Jean-Francois Brousseau
- set the 'log', 'history', 'rdiff' and 'rtag' commands to require a response - replace the entry for 'rannotate' (which doesn't exist) with 'annotate' and also remove 'rlog' (which doesn't exist either)
2004-09-23Lower the level of an error messageJean-Francois Brousseau
2004-08-27Fix two descriptor leaksJean-Francois Brousseau
2004-08-13Leave stderr alone for the momentJean-Francois Brousseau
2004-08-12Don't attempt to send the `Root' request if the operation is an `init'Jean-Francois Brousseau
2004-08-12Don't bother about the server's standard error just yetJean-Francois Brousseau
2004-08-05When spawning the subprocess for the connection, attach a pipe to itsJean-Francois Brousseau
standard error as well
2004-08-04* set the maximum number of arguments to 256 for the momentJean-Francois Brousseau
* cvs_sendresp() is now required, so uncomment it
2004-08-03Move all of the request- and response-specific handlers into separateJean-Francois Brousseau
files and have only the generic function of each type available to the outside
2004-08-02When we connect to a remote server, always send the Version request andJean-Francois Brousseau
add a hack so we don't print it (we receive it through a 'M') but store it in the cvs root structure instead. This will allow us to make better decisions in what we use to communicate with the remote server.
2004-08-02* copy most of the code from cvs_resp_handle() into cvs_req_handle()Jean-Francois Brousseau
and add some protection for unimplemented handlers * add a bogus handler for the `Template' response, which we'll handle soon
2004-07-30Minor bug fixesJean-Francois Brousseau
2004-07-30Handle the `Rcs-diff' response so we can patch on updatesJean-Francois Brousseau
2004-07-30Move to the new API for the client-server protocol. All functions nowJean-Francois Brousseau
take a cvs root structure as parameter. This will allow for much easier management of CVS trees that make use of multiple roots.
2004-07-29New protocol API commented out, not ready yetJean-Francois Brousseau
2004-07-29Define a flag to tell if a request expects a response. This will laterJean-Francois Brousseau
allow us to do implicit response handling and remove the third argument to cvs_client_sendreq()
2004-07-29No more cvs_rootJean-Francois Brousseau
2004-07-28Fix the timestamp parsing for Mod-time. Months are now being detectedJean-Francois Brousseau
correctly and there is no assumption about Daylight Savings Time
2004-07-27* use a mix of mktime() and ctime_r() instead of asctime_r() to calculateJean-Francois Brousseau
the Mod-time timestamp. This way, mktime() fills in information about the week day and day of year which was not calculated with the previous method * calculate the GMT offset This fixes a bug where each CVS entry in the Entries files would have `Sun' (for Sunday) as the day of the week.
2004-07-27* parse the timestamp given to Mod-time correctly and store it so theJean-Francois Brousseau
next operation on a file can use it (actually, we need to fix the problem with weekdays) * when getting a sticky command and the directory doesn't exist, create it and populate it with CVS admin files
2004-07-26* fix two offset bugs in MT stack handlingJean-Francois Brousseau
* create the directory if it does not exist when getting a `Clear-sticky' or `Set-sticky' * fix the cvs_client_getln() that was missing in cvs_resp_statdir() * when receiving a `Created', read the proper lines, then generate a valid pathname to pass to cvs_recvfile() * don't try to compare checksums if the checksum pointer is NULL * in cvs_recvfile(), open the file with the proper flags
2004-07-26* start working on the MT supportJean-Francois Brousseau
* add dummy handlers for `Set-sticky', `Clear-sticky' and `Module-expansion'