summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.h
AgeCommit message (Collapse)Author
2005-10-07knf and spacing, ok joris@Reyk Floeter
2005-09-15strip trailing slashes from any arguments passed to opencvs.Joris Vink
ok xsa@
2005-09-15check in cvs_mkadmin() wether we need to create or not theXavier Santolaria
CVS/Tag file. Sync the rest of the code accordingly; OK joris@.
2005-09-11only remove and free a cvsroot struct if it has been added inJoris Vink
cvsroot_parse(). fixes segfaults opencvs has been receiving when cvsroot_parse() fails. "go ahead" xsa@
2005-09-06Make sure entries do not go away when we run through them in the file code.Joris Vink
Fixes corrupt Entry files. Problem found by Mike Pechkin, thanks.
2005-09-05add new functions: cvs_write_tagfile() and cvs_parse_tagfile(),Xavier Santolaria
write and parse a CVS/Tag file. Ok joris@.
2005-08-16#define CVS_ENT_MAXLINELEN 1024Xavier Santolaria
.. as the maximum length of a line in an Entries file, and use it. problem spotted a while ago by mpech@. ok jfb joris
2005-08-12add cvs_rename() function; ok jfbXavier Santolaria
2005-08-09fix our root caching method, it was utterly broken and wouldJoris Vink
cause opencvs to segfault in several cases. ok jfb@, xsa@
2005-08-04handle TMPDIR environment variable as well as -T <tmpdir> global option;Xavier Santolaria
Ok jfb@ joris@.
2005-08-03check only once for the HOME environment variable and reuseXavier Santolaria
its value (if any) to check for the .cvsrc and .cvsignore files; ok jfb@ joris@.
2005-07-27rename cvs_remove_dir() to cvs_rmdir() because it might be confusingXavier Santolaria
with the `remove' command local functions. ok joris@.
2005-07-25KNF; mostly spaces vs. tabs; ok joris@ jfb@.Xavier Santolaria
2005-07-24add cvs_unlink(); a wrapper to unlunk() w/ an error msg as it is used inXavier Santolaria
many places. Also handle -n and -t global options. ok joris@ jfb@.
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-23add cvs_chdir(); a wrapper to chdir() w/ an error msg as it is used inXavier Santolaria
many places. Let's make our life simpler for once. ok jfb@ joris@.
2005-07-21#define CVS_DESCR_FILE_EXT ",t"Xavier Santolaria
ok joris@ jfb@.
2005-07-13add cvs_rcs_getpath() function. Returns the path of the RCS file if itXavier Santolaria
does exist. Will save us code duplication. ok joris@ jfb@.
2005-07-07remove trailing whitespacesJoris Vink
from deraadt@
2005-06-17correctly build a temporary copy of the client its repositoryJoris Vink
localy, so the server can execute the local commands on it and pipe the output to the client. with this diff in, our server is now working, please note that we currently don't have support for all commands yet, but you can expect this soon. ok xsa@
2005-06-17#define CVS_EX_ERR -1Xavier Santolaria
ok joris jfb
2005-06-07remove ancient and unused CVS define. it was a leftover fromJoris Vink
the daemon. ok xsa@
2005-06-01missed these in previous commits.Joris Vink
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
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