summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/import.c
AgeCommit message (Collapse)Author
2006-07-08Remove file mode argument from {cvs|rcs}_buf_write_stmp(). WeRay Lai
always set the temporary file to mode 600, which is already done by mkstemp(). OK joris@ and xsa@ over a month ago.
2006-06-19kill local and remote callback and just have one called fileproc.Joris Vink
we let the commands pass the correct function. all in preparation for remote.
2006-06-16in preparation for the new remote code, proto.h becomes obsolete.Joris Vink
2006-06-16add support for -d; OK joris@.Xavier Santolaria
2006-06-14add cvs_buf_load_fd() which does the same as cvs_buf_load()Joris Vink
except it takes a decriptor as argument instead of a path. modified cvs_buf_load() to open the descriptor then pass it to cvs_buf_load_fd(). change all the calls to cvs_buf_load() that have a descriptor open for the path to cvs_buf_load_fd() to prevent races.
2006-06-11remove unused variableJoris Vink
from Jasper Lievisse Adriaanse.
2006-06-04sprinkle -n voodoo over the add, commit and import commands.Joris Vink
2006-06-01import work on existing repos:Joris Vink
- make it work (obviously). - count conflicts and report them at the end of the import. - add the release tags to the correct revision. fixes for importing to new repos: - add the release tags to the correct branch revision - plug memleak general import fixes: - use the correct path in the status messages, this is just fluffy output but it does make things nicer.
2006-05-30ugh forgot to change cvs_file_classify here too.Joris Vink
i dont deserve beers tonight.
2006-05-30hello import, only works for non-existing repositories right now,Joris Vink
but work is in progress for importing stuff into existing repositories.
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-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
2006-04-05Use variable names for sizeof, remove casts in front of xmalloc,Ray Lai
use xcalloc and xstrdup where appropriate, and other stuff. OK joris@
2006-04-01improve import a bit:Joris Vink
- create directory and files with the correct permissions - correctly add the branch revision to the branch list of the head revision
2006-03-27rcs_comment_set() will never return non-zero; change its return type to void.Xavier Santolaria
OK ray@.
2006-02-08once again, we have to unbreak stuff xsa broke on his own.Joris Vink
seriously xavier, I might be in the carribean but you are drinking all the rum and commiting shit drunk.
2006-01-30strerror() -> rcs_errstr() when passing rcs_errno as argument;Xavier Santolaria
2006-01-27errors handling cleaning;Xavier Santolaria
2006-01-25snprintf() cleanup; OK niallo@.Xavier Santolaria
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
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-21cvs_logmsg_open() and cvs_logmsg_get() cannot fail anymore;Xavier Santolaria
2005-12-20cvs_buf_putc() and cvs_buf_write_*() functions cannot fail anymore;Xavier Santolaria
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-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-11-28consistency in error messages;Xavier Santolaria
2005-11-24minor knf + snprintf() return check;Xavier Santolaria
2005-10-15- add username parameter to rcs_rev_add(), needed to implement at leastNiall O'Higgins
`ci -wusername'. ok joris@
2005-08-04sync command synopsis w/ man page;Xavier Santolaria
2005-07-25KNF;Xavier Santolaria
2005-07-15- use cvs_path_cat() where appropriate instead of snprintf()Xavier Santolaria
- handle a -Q case ok joris@.
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
2005-05-26remove the trailing \n from the ctime() timestampJean-Francois Brousseau
2005-05-26send the Checkin-time request along with the file's timestamp whenJean-Francois Brousseau
running in client mode with the -d flag. The timestamp format is the same as ctime(3), as opposed to GNU CVS, which uses Yet Another Timestamp Format to make this more complicated...
2005-05-26fix remaining issues with regards to branch numbering and add theJean-Francois Brousseau
vendor tag to the list of symbols
2005-05-26support the -b option in local mode as well and rearrange the branchJean-Francois Brousseau
code a bit to get rid of an annoying global. Also remove a memory leak by adding a cleanup handler and print the number of conflicts created while importing
2005-05-25support the -d flag in local mode (GNU CVS ignores that flag and evenJean-Francois Brousseau
kills a linux box regardless of the size of the import)
2005-05-25when importing a file in local mode, add the first two revisionsJean-Francois Brousseau
and set the head to revision 1.1
2005-05-24remove debugging messagesJean-Francois Brousseau
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-20correct wrong error code usage.Joris Vink
ok jfb@, xsa@
2005-04-25set the default branch to 1.1.1 upon import, and remove a strayJean-Francois Brousseau
cvs_connect() call ok joris, xsa
2005-04-16more snprintf return value check; joris okXavier Santolaria
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-11don't include sysexits.h now we don't use those error codesJoris Vink
anymore.
2005-04-11remove EX_USAGE error codesJoris Vink
ok jfb@
2005-04-03first round of EX_* exit codes removal; ok joris@.Xavier Santolaria
2005-03-30move all the client commands to the new command framework.Joris Vink
eliminates a lot of duplicate code. ok jfb@
2005-03-05free bnum when we are done using it, also use rcsnum_parse() insteadJoris Vink
of our own combination of rcsnum_alloc() and rcsnum_aton(). ok jfb@
2005-02-28update my email address.Joris Vink