summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.h
AgeCommit message (Collapse)Author
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-20check the validity of tag names passed to the tag command, and printJean-Francois Brousseau
an abort message if the tag is invalid. also, match gnu cvs behaviour with regards to command usage output on usage errors. ok joris
2005-04-20add the CVS_EX_OK return code to indicate everything went fineJean-Francois Brousseau
ok joris
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-06make cvs_findcmd() available to the rest of the programJean-Francois Brousseau
ok joris@
2005-03-31make sure the server command can still be reached with theJoris Vink
new framework. ok xsa@
2005-03-30move all the client commands to the new command framework.Joris Vink
eliminates a lot of duplicate code. ok jfb@
2005-03-24add the first pieces of our new command framework.Joris Vink
ok jfb@
2005-03-06initial support for the admin command. Not all options are working yet.Joris Vink
ok xsa@ jfb@
2005-02-01- accept a minus sign in front of the file's revision number toJean-Francois Brousseau
indicate that the file has been removed - set the timestamp as invalid if we get the "dummy timestamp" string in the 4th field
2005-01-24add missing command IDsJean-Francois Brousseau
reviewed by xsa@ and Joris Vink
2005-01-13more extern declarations for the common variablesJean-Francois Brousseau
2004-12-21gnu CVS has an undocumented -s command-line option to set a variable,Jean-Francois Brousseau
so let's support it too. This will also be required to implement the `Set' request handler.
2004-12-21on the way to `cvs remove'; ok jfbXavier Santolaria
2004-12-14support the tag commandJean-Francois Brousseau
from Joris Vink
2004-12-09support the 'annotate' command, will need some polishingJean-Francois Brousseau
2004-12-08embrace and extend (!) cvs_logmsg_get() so we can now displayJean-Francois Brousseau
information based on its availability and have separate sections for the Added, Modified and Removed file lists. this will allow us to use the same call for add, commit, import and possibly others Original patch by Joris Vink, some rework from me for the other sections
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-07less whitespace, more pretty. ok jfbTed Unangst
2004-12-07add missing parts for support of .cvsrcJean-Francois Brousseau
tested, tweaked by and ok djm@
2004-12-02cvs_logmsg_get() now accepts a list of files that it is getting theJean-Francois Brousseau
message for and displays those files in the commented part of the log message
2004-11-26struct cvs_file -> CVSFILEJean-Francois Brousseau
2004-11-18Prototypes for the log message functionsJean-Francois Brousseau
2004-11-09We don't need to keep a copy of each Entries line, it isn't usedkrapht
anywhere and it consumes memory uselessly.
2004-08-27cleanup and reset the valid requests array when allocating a new rootJean-Francois Brousseau
structure. Also enable the use of at least Valid-responses and valid-requests
2004-08-13Ditch the 'ce_timestamp' field in favor of 'ce_mtime', which keepsJean-Francois Brousseau
the timestamp in time_t instead of a string
2004-08-13Add a macro for dummy timestamp stringsJean-Francois Brousseau
2004-08-13Add cvs_datesec() to calculate the time_t value corresponding to aJean-Francois Brousseau
ctime(3)-style date string
2004-08-06Simplify cvs_splitpath() by requiring only one buffer to copy the resultJean-Francois Brousseau
into
2004-08-06Handle the '-b' and '-x' global options even if we don't support them,Jean-Francois Brousseau
and add support for case insensitivity
2004-08-06Have one global hierarchy of files that are being affected. This willJean-Francois Brousseau
allow us to build the tree in memory as well as on disk for operations such as checkout and update. It will also allow us to write all Entries in a single disk write and to avoid creating empty directories on updates when pruning is requested
2004-08-05Adapt the logging so any messages generated by the server will beJean-Francois Brousseau
prepended with a 'M' or 'E' command, depending on the log level, and follow the GNU behaviour of printing the command name after the program name in messages
2004-08-05When spawning the subprocess for the connection, attach a pipe to itsJean-Francois Brousseau
standard error as well
2004-08-03Add a per-root mask of supported requests and a set of macros to set, getJean-Francois Brousseau
and clear the appropriate bits for each request
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-07-30No more global cvs_rootJean-Francois Brousseau
2004-07-30* remove header cruft that belongs in file.hJean-Francois Brousseau
* be more intelligent with the file open mode. It seems rewind() doesn't work too well with a file opened in append mode
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-29Use the `CVS' define to simplify exporting symbolsJean-Francois Brousseau
2004-07-29typoJean-Francois Brousseau
2004-07-29Use tail queues instead of lists to manage file entriesJean-Francois Brousseau
2004-07-29* when comparing timestamps, use the last modification time insteadJean-Francois Brousseau
of the last access time. No wonder all the files appeared as modified * always show directories as up to date * skeleton for cvs_file_getspec()
2004-07-28* prepare for an overhaul of the connection code by adding a cvsrootJean-Francois Brousseau
parameter to the cvs_client_connect() and cvs_client_disconnect() functions, so we rely less and less on a global variable
2004-07-27* create cvs_file_alloc() to keep one copy of the file allocation codeJean-Francois Brousseau
and reuse it * add cvs_file_create() to explicitly create a file or directory * add cvs_mkadmin() to fill the administrative files for a CVS directory
2004-07-26Add the handler for the checkout commandJean-Francois Brousseau
2004-07-25* cleanup the file API with regards to flag handling andJean-Francois Brousseau
general structure * implement cvs_ent_close() correctly, fix some memory leaks, and add cvs_ent_getent() to get a single entry easily
2004-07-23Revamp the file interface to make life easierJean-Francois Brousseau
2004-07-16* add prototypes for cvs_getargv() and cvs_freeargv()Jean-Francois Brousseau
* remove cvs_file_free(), cvs_freeargv() does exactly the same
2004-07-14prototype for cvs_ent_addln()Jean-Francois Brousseau
2004-07-14Unbreak the Entries loading code and move to a tail queue so we can removeJean-Francois Brousseau
entries as well when it will be needed