summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/file.c
AgeCommit message (Collapse)Author
2005-10-16less 'pirates of the carribean' like error message;Joris Vink
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-14knfJoris Vink
2005-09-13fix conditions when the base directory should be passed to the commandJoris Vink
callback. fixes local commands with directories as arguments (like 'add'). problem found and OK xsa@
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-06more bits for the local remove command support; OK joris@.Xavier Santolaria
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-08-19do not close the entries file until all files depending on it haveJoris Vink
been passed to the callback. ok xsa@
2005-08-17keep a pointer to the CVSENTRIES in the CVSFILE structure.Joris Vink
ok xsa@
2005-08-17trailing whitespaces ...Xavier Santolaria
2005-08-14missing casts; ok jorisXavier Santolaria
2005-08-11fgets() expects the 2nd arg to be an int.Xavier Santolaria
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-30o remove a call to cvs_ent_open() from cvs_file_create(),Moritz Jodeit
since cvs_mkadmin() already does this for us. o don't deref NULL ptr when cvs_ent_open() fails. o fix format string in cvs_log(). ok joris@
2005-07-29minor KNF;Xavier Santolaria
2005-07-29make more use of error codes in the file code.Joris Vink
ok xsa@
2005-07-29correctly build the repository path in cvs_load_dirinfo() so we do notJoris Vink
end up with a totally messed up repopath when there are no admin files present. problems reported by mpech@ and Nuno Margadinho. tested by Nuno Margadinho, thanks a lot!
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-25make it compile without warningsJoris Vink
2005-07-25KNF;Xavier Santolaria
2005-07-24do not bail out in client mode if the file is not on disk at all.Joris Vink
noticed and ok xsa@
2005-07-24"cvslog.*" should really be "cvslog*"Joris Vink
2005-07-24add "cvslog.*" to the ignore listJoris Vink
noticed by xsa@
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-22use the cf_name field of the CVSFILE struct instead of using the oldJoris Vink
CVS_FILE_NAME macro. This macro used to be nifty because of all the referencing for the names, but since we don't do that anymore and use cf_name directly... byebye CVS_FILE_NAME() okay xsa@
2005-07-18oops, last commit broke a few thingsJoris Vink
2005-07-18let it compile without any warningsJoris Vink
2005-07-15if the file has been added but is not on disk make sure we can pick it upJoris Vink
as being "added". fixes the log command on our server-side for added files. tested & ok xsa@
2005-07-07do not run the callback for "." twice.Joris Vink
ok xsa@
2005-07-07add a field to CVSFILE which holds the timestamp from the Entries file.Joris Vink
usefull for some commands. ok xsa@
2005-07-07remove trailing whitespacesJoris Vink
from deraadt@
2005-07-05if we can't stat the file and there is no entry for it, don't failJoris Vink
but assume it is a regular file and it is in unknown state. ok xsa@
2005-07-01- plug memleak in cvs_file_getdir().Joris Vink
- fix behaviour regarding unknown directories. ok xsa@
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-17when pruning don't try to remove any directories outsideJoris Vink
the actual repository. reported by david@, ok xsa@
2005-06-14finish pruning support, this has been sittingJoris Vink
in my tree since c2k5 ok xsa@
2005-06-09don't forget to close entfile in cvs_file_getspec().Joris Vink
2005-06-01remove debug codeJoris Vink
2005-06-01don't trust cvs_file_getpath() to get the correct path when creatingJoris Vink
the Repository file for subdirs, if we are not in the root directory of the repository. instead, save the parent's Repository path and reuse it when needed, this way CVS/Repository files aren't messed up with completely wrong pathnames when running "cvs update -d" in src/sys/ for example. ok xsa@
2005-06-01when creating a new directory, steal the parent its cvsroot structure ifJoris Vink
we cannot find one with cvsroot_get(). fixes several segfaults. tested & ok xsa@
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
2005-05-31remove LP_ERROR log priority level and rather use LP_ERR as they are bothXavier Santolaria
the same... ok jfb joris
2005-05-28make sure we check the Entry file when we need to.Joris Vink
ok jfb@
2005-05-25assume that a file is modified if its timestamp is lowerJean-Francois Brousseau
than the value found in Entries. This can't really hurt, as the server will simply ignore it if it's not really modified
2005-05-24don't fail on mkdir(2) when errno is EEXIST in cvs_file_create().Joris Vink
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-22unused variableJoris Vink