summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.h
AgeCommit message (Collapse)Author
2006-05-28enable merging on update. if your file in your working copyJoris Vink
has been modified by yourself and there is a newer revision we try and merge them together. if the merge fails and has conflicts it will mark them inside the file, you will need to resolve these by hand first before you will be able to commit your modified file. works transparent with gnu cvs, as it is suppose to.
2006-05-27allow diff to pick up newly added files with the -N flag.Joris Vink
2006-05-27basic support for CVSROOT/config - only supporting the 'tag' andJoris Vink
'umask' keyword right now.
2006-05-27allow commands to respect the -l flag, if the -l flag isJoris Vink
specified certain commands will not recurse into directories. at the same time introduce a method of specifying wether or not a command should look in the repository for files.
2006-05-27pruning (-P) support for both the update and checkout commands;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-01fix some bugs that lint discovered for us.Joris Vink
ok niallo@
2006-03-15- add util.h, reorganising a bunch of things and exposing cvs_yesno()Niall O'Higgins
function to be used by rcs.
2006-02-10fix CVS_PATH_NOTIFY duplicate.Xavier Santolaria
2006-02-09add missing client-side paths definitions;Xavier Santolaria
2006-01-27CVS_EX_BADROOT return code is not worth keeping;Xavier Santolaria
2006-01-10zap unused variables;Xavier Santolaria
2006-01-02more includes cleanup;Xavier Santolaria
2006-01-01more code cleanup;Joris Vink
ok xsa@ i'm commiting only hours after newyear, ah the joys of being a true geek.
2005-12-30more code cleanup, ok niallo@ and xsa@Joris Vink
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-24add an argument to cvs_chdir() which enables or not the removalXavier Santolaria
of the directory we just chdir'd to. Useful when the function fails especially for the server mode and its temporary directory. This way it's not left behind on exit. ok joris@.
2005-12-19move fatal() proto declaration to log.h; better for its use in usr.bin/rcsXavier Santolaria
OK joris@.
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-03fix date handling in opencvs, this was broken since the very start.Joris Vink
now, when you checkout a tree with gnu cvs, opencvs no longer sees all the files as modified, and visa versa. this actually makes gnu cvs and opencvs dance together in working copies.
2005-12-03- teach opencvs about Entries.Log and what to do with itJoris Vink
it it exists in the CVS admin dir. - when writing the Entries file write it to Entries.Backup first and then rename it to Entries when the writing was successfull.
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-22diff3 support, needed for merging files together;Joris Vink
"go for it" niallo@
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@