summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
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-24remove useless cvs_buf_alloc() failure checks;Joris Vink
2005-12-24we should be calling cvs_vlog(); to at least get some decent output;Joris Vink
2005-12-23cvs_buf_write() did not properly set new permissionsJoris Vink
on already existing files. niallo agrees.
2005-12-22cvs_rcs_getpath() cannot fail anymore;Xavier Santolaria
2005-12-22cvs_chdir() cannot fail anymore;Xavier Santolaria
2005-12-22another fatal() round;Xavier Santolaria
2005-12-22unitialized variable. ok xsa@Moritz Jodeit
2005-12-22- fix handling of zero byte files.Niall O'Higgins
with this diff, open cvs can do a full local checkout of the XF4 tree on 64-bit architectures, which gnu cvs cannot due to some bug. ok joris@
2005-12-21cvs_logmsg_open() and cvs_logmsg_get() cannot fail anymore;Xavier Santolaria
2005-12-21fatal()ization! OK joris@.Xavier Santolaria
2005-12-21initialize `rlen' in cvs_buf_set();Xavier Santolaria
2005-12-21use fatal() here too;Xavier Santolaria
2005-12-21cvs_buf_write_stmp() cannot fail anymore, missed it in previous commit;Xavier Santolaria
2005-12-20cvs_buf_putc() and cvs_buf_write_*() functions cannot fail anymore;Xavier Santolaria
2005-12-20fix use of fatal() from previous commit;Xavier Santolaria
temporary files were left behind if cvs_buf_write_* functions failed; OK joris@.
2005-12-20cvs_buf_write() cannot fail here;Xavier Santolaria
2005-12-20missed that in previous fatal() commit;Xavier Santolaria
2005-12-20use fatal(); OK joris@ niallo@.Xavier Santolaria
2005-12-19move fatal() proto declaration to log.h; better for its use in usr.bin/rcsXavier Santolaria
OK joris@.
2005-12-19use fatal() if getpwuid() fails; OK joris@.Xavier Santolaria
2005-12-13add missing $OpenBSD$Xavier Santolaria
2005-12-12only xfree() cf->cf_dir when it's not NULL;Joris Vink
2005-12-12rcsnum_alloc() and rcsnum_cpy() no longer can fail, so don'tJoris Vink
bother checking return values for failure. ok xsa@
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-08complete and correct rcs locking functionality,Joris Vink
it was only done partially and as a bonus, completely wrong. seriously guys what was up with that?
2005-12-05- repair cvs diff. my date fix was too naive.Niall O'Higgins
2005-12-04more code cleanup, remove useless flags and parts of codeJoris Vink
that never got used in the first place;
2005-12-04bye obsolete junk;Joris Vink
"go ahead" and "nuke them" niallo@, xsa@
2005-12-03strip any trailing slashes in the received DirectoryJoris Vink
request, to make sure we are compatible with gnu;
2005-12-03todd@ reminds me:Joris Vink
If you 'vi file.c' and change stuff, then 'make depend && make' you'll have a file.o file most definately more recent than the latest committed version of file.c. Then, if you rm file.c, and cvs update file.c, if 'file.c' is set to the timestamp of the last committed version, a subsequent 'make' will not rebuild the .o file. to fix this we simply use the current timestamp when updating files. thanks todd@!
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-03respect Q flag in output;Joris Vink
2005-12-03nuke unused vars;Joris Vink
2005-12-03remove unused and useless functions, they just get in the way;Joris Vink
2005-12-03usr.bin/rcs stuff doesn't care about cvs_checkout_rev();Joris Vink
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-12-02remove debug message;Joris Vink
2005-12-02fix commiting/importing of 0 sized files.Joris Vink
found and tested by pedro@ and niallo@ ok niallo@
2005-12-01- fix up context and unified diff output in both open rcs and open cvs soNiall O'Higgins
that the date is set correctly. ok joris@
2005-12-01- fix unified and context diff output, finally!Niall O'Higgins
this was a long standing bug, and the fix is hilarious. ok joris@
2005-12-01rcs_findrev() is not static anymore; align protos while here;Xavier Santolaria
OK joris@ niallo@.
2005-11-28consistency in error messages;Xavier Santolaria
2005-11-24respect TMPDIR;Xavier Santolaria
2005-11-24minor knf + snprintf() return check;Xavier Santolaria
2005-11-22- ci(1) can intialise RCS files now!Niall O'Higgins
- support for -j added - support for -i added ok joris@ xsa@
2005-11-21- print some more informative messagesXavier Santolaria
- minor knf niallo ok
2005-11-18minor knf;Xavier Santolaria
2005-11-16fix writing of RCS files; it has been bugging us for a while now...Xavier Santolaria
now, former RCS suite can make a use of our newly written RCS files; ok joris niallo