summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.h
AgeCommit message (Collapse)Author
2005-05-26don't keep a pointer to the file handle in CVSENTRIES, it is onlyJean-Francois Brousseau
used in cvs_ent_write(), and simplify path building a bit
2005-05-26- remove cvs_ent_getent(), it's not used anymoreJean-Francois Brousseau
- don't use strcmp() to compare one-character strings
2005-05-26first part of real pruning supportJoris Vink
okay jfb@
2005-05-24- simplify cvs_mkadmin().Joris Vink
- create the correct base paths in checkout. - remove the CVS_CMD_SENDARGS2 flag for checkout, it doesn't need it. okay jfb@
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-20first bits of the `cvs -n' option; ok jfb jorisXavier Santolaria
2005-05-19use the date parsing code from date.y and fix timestamps on newlyJean-Francois Brousseau
created files so they match the values found in the corresponding entries, otherwise all files appear as modified ok joris
2005-05-18build a local copy of the client's source tree when acting as a server.Joris Vink
more server stuff coming soon! ok jfb@, xsa@
2005-05-02add missing structs for upcoming commands; joris okXavier Santolaria
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