summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/add.c
AgeCommit message (Collapse)Author
2007-09-23make sure when running update -r on existing files to overwriteJoris Vink
the sticky directory tag with it. since -r gets priority.
2007-09-22better branching/sticky tag support, no branch commits yet though.Joris Vink
2007-08-30properly send our log message to the server using Argumentx, so weJoris Vink
no longer break when the log message has multiple lines. from Tobias Stoeckmann, thanks for doing my work!
2007-08-29missing xfree();Joris Vink
from Igor Zinovik, thanks.
2007-06-28Sync revisions and time buffers size to be consistent with each others.Xavier Santolaria
Simplifies further size tweaks if needed. OK niallo@ ray@.
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-02-17cvs_path_cat() removal since we can now easily handle thatXavier Santolaria
functionality w/ xsnprintf(); Initial diff started by thib@. OK thib@ joris@.
2007-02-09remove the cvs_file_classify() `loud' argument, it was usedJoris Vink
in the old school days and serves no purpose what so ever now. otto@ mentioned this to me a while ago
2007-01-31snprintf() -> xsnprintf()Xavier Santolaria
2007-01-27- do not try to add non-existing filesJoris Vink
- do not overwrite the contents of the file when the file was removed and you try to re-add it. ok otto@
2007-01-26- support [-k mode] for the add commandXavier Santolaria
- do not let the file keyword expension options (-k) disappear from the Entries file when doing a commit/update/checkout - be sure the expension mode gets written to the RCS file when a file is added/committed in the first place problems raised by otto@; tests/ok otto@ and joris@.
2007-01-26extra xfree leftover; from tbert.Otto Moerbeek
2007-01-25use more stack allocations for fixed size buffers. ok xsa@ joris@Otto Moerbeek
2007-01-13remove BUF * argument from cvs_checkout_file() it willJoris Vink
no longer be used, ever.
2007-01-12do not leak memory from rcs_head_get()Joris Vink
ok niallo@
2007-01-12fix incorrect output which was driving me more then crazyJoris Vink
2007-01-11in a remote setup:Joris Vink
do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
2006-12-20missing xfree();Xavier Santolaria
2006-12-19correctly check snprintf(), noticed by ray@Joris Vink
2006-12-19- Introduce a way for the command code to recognize what the server replied.Joris Vink
- Modify the add command so it uses the above method to correctly enter added files in CVS/Entries if in a remote setup. ok xsa@ ... And no a shark didnt eat me.
2006-12-04snprintf() -> cvs_path_cat()Xavier Santolaria
2006-10-31a step ahead in opencvs add|remove remote support.Xavier Santolaria
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