summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/add.c
AgeCommit message (Collapse)Author
2006-07-01fix a possible bug of pathname concatenation when adding subdirectories.Reyk Floeter
ok joris@
2006-06-28print less verbose messages for cvs commit and add if the -q/-Q flagReyk Floeter
has been specified. ok joris@
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-14handle existing CVS/Tag file when adding new directories. OK joris@.Xavier Santolaria
2006-06-07add support for <name>,t file:Xavier Santolaria
- add: creates <name>,t file with initial description if -m option was used. - commit: uses <name>,t content (if it exists) to set the file description OK joris@.
2006-06-05allow the re-adding of files with previous revisionsJoris Vink
2006-06-04sprinkle -n voodoo over the add, commit and import commands.Joris Vink
2006-06-01major rewrite of some rcs parsing stuff:Joris Vink
- rework rcs_getrev() to correctly support branches - rework rcs_translate_tag() to correctly translate given symbols or branches into their matching revisions - rework rcs_rev_add() to correctly update its 'next' pointers and insert the new revision in the correct place on the list. - rework rcs_head_get() to return the latest revision on the default branch if it has been set or the normal HEAD revision otherwise. - no longer access the rf_head member of the RCSFILE struct manually, use the rcs_head_get() function which correctly returns the HEAD revision, there might be a default branch that has to be used. - for now, when commiting a new revision reset the default branch.
2006-05-30fill in the correct revision number we will want in file_rcsrevJoris Vink
for each cvs_file struct, this will help us with sticky tags, commiting to branches and importing into existing repositories.
2006-05-30handle lost files, modified files and files with conflicts; OK joris@.Xavier Santolaria
2006-05-30handle special files when doing `cvs add *'; input+OK joris@.Xavier Santolaria
2006-05-30handle removed files; OK joris@.Xavier Santolaria
2006-05-29fix option stringJoris Vink
2006-05-29add needs to be passed arguments on the command line, andJoris Vink
isnt supposed to just run over our parent directory if none are specified. found by reyk@
2006-05-28our add command can now add directories to the repository as well.Joris Vink
2006-05-28enable basic add command, only works on files right now.Joris Vink
2006-05-28allow commands to shut up the output from cvs_file_classifyJoris Vink
if the commands want to output certain stuff themselfs
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-01-27cvs_mkadmin() cannot return < 0 anymore;Xavier Santolaria
2006-01-27errors handling cleaning here too;Xavier Santolaria
2006-01-25strings 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-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-10-07knf and spacing, ok joris@Reyk Floeter
2005-09-30avoid using `cvs add *' idiom wrt special files; joris okXavier Santolaria
2005-09-25use cvs_add_build_entry(); joris okXavier Santolaria
2005-09-21use correct return codes in cvs_add_directory(); joris okXavier Santolaria
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-13let's add directories too; testing+ok joris@.Xavier Santolaria
2005-09-05let's move forward with the local add command;Xavier Santolaria
2005-07-30we actually want CVS_FST_UNKNOWN here.Joris Vink
problem reported by Nuno once more. ok from an enthousiastic xsa@
2005-07-27use LP_NOTICE here too;Xavier Santolaria
2005-07-25missed that one too...Xavier Santolaria
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-10if cvs_sendreq() returns -1 we have to translate it into CVS_EX_PROTO,Joris Vink
so the user will know what is going on.
2005-07-08split local and remote function handlers from each other.Joris Vink
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-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-01-24get rid of a debugging printf() that slipped through the cracksJean-Francois Brousseau
2005-01-24* use the global cvs_msg instead of our ownJean-Francois Brousseau
* support the use of RCS keyword expansion flags in client mode
2004-12-30Send files to add using `Is-Modified' instead of `add', and sendJean-Francois Brousseau
directories regardless of whether they are known or not, in case they are part of the files to add.
2004-12-21Check to make sure we have a valid CVSROOT, and check the return valueJean-Francois Brousseau
when sending the add request