summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/remote.c
AgeCommit message (Collapse)Author
2008-06-14don't always re-open the same CVS/Entries file, instead keep theJoris Vink
last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously. while doing this, switch the way we write revisions to disk by using fwrite(3) so stuff can get written to disk in chunks instead of writing everything line by line, another win. with help from otto@ ok tobias@
2008-06-12completely kill the need for TMP_DIR when running checkout,Joris Vink
which gives us better performance among other things. this is however disabled in a few cases: 1) whenever you run checkout over an existing tree (which acts as update) 2) whenever you specify -d or a module alias we're planning on enabling this behaviour for case 2 in the future. anoncvs sysadmins now love us even more. ok tobias@
2008-03-08correct usage of lseek(2);Joris Vink
2008-02-27prevent file racesJoris Vink
ok tobias@
2008-02-10cvs_validate_directory() was too paranoiaJoris Vink
2008-02-10use cvs_validate_directory() in cvs_get_repository_path() as well,Joris Vink
since we want to make sure we have valid CVS/Repository content ok tobias@
2008-02-10introduce cvs_validate_directory(), which is used to checkJoris Vink
directory path to make sure they do not fall outside the CVSROOT or the working copy directory in a remote setup
2007-09-17Imported atomicio interface.Tobias Stoeckmann
Requested by ray@, OK joris@
2007-09-02Log all commands sent with cvs_remote_output(), not justTobias Stoeckmann
cvs_client_send_request(). Simplified logging code while at it. OK joris@
2007-05-16In remote setup, write sent files to inlog (if specified) instead of outlog.Xavier Santolaria
Matches GNU CVS' behaviour. From Tobias Stoeckmann.
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-01-31snprintf() -> xsnprintf()Xavier Santolaria
2007-01-26Handle CVS/Entries and file timestamp correctly so we doJoris Vink
not mistakenly see a file as Modified while it is not. As a result, we can remove the very hackish cvs_hack_time() and GNU cvs and opencvs should almost get along now. lotsa help and okay The otto@
2007-01-26modestring can be 18 longOtto Moerbeek
2007-01-25use more stack allocations for fixed size buffers. ok xsa@ joris@Otto Moerbeek
2007-01-25plug a mem leak and wrong usage of strlcpy after fgetln. since fgetlnOtto Moerbeek
does not NUL-terminate, it is not ok to use strlcpy on the buffer. ok opencvsgang@
2007-01-24user proper format string for size_t; file size is off_t; ok joris@Otto Moerbeek
2007-01-18import improvements:Joris Vink
- add support for remote import in opencvs client and server. - do not free already free'd buffers in import_update() - do not append a '\0' to the loaded file buffer, this was bad behaviour makes import work fine both locally and remotely.
2007-01-13- remote update now works again, with new rcs apiJoris Vink
- we no longer hold the entire file in memory when sending or receiving it
2007-01-03fix CVS_CLIENT_LOG logging, we were missing partsJoris Vink
which was making it very hard to correctly debug remote connections.
2006-07-10handle 0 sized files correctly, tested by brad@ thanksJoris Vink
2006-07-09more straightforward trace (-t) output, too much is just too noisy.Joris Vink
2006-07-08allow update in remote mode to work a bit better andJoris Vink
create any missing directories or new directories with -d
2006-07-07first part of opencvs remote, fairly useable on existing treesJoris Vink
although i advise against using it on real development trees for now. only a few commands work right so far: - commit - diff - status - log - update (partially working) if you feel like testing remote and run into bugs feel free to contact me, and please include a full trace (-t).