summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* enable merging on update. if your file in your working copyjoris2006-05-281-2/+12
| | | | | | | | | | | has been modified by yourself and there is a newer revision we try and merge them together. if the merge fails and has conflicts it will mark them inside the file, you will need to resolve these by hand first before you will be able to commit your modified file. works transparent with gnu cvs, as it is suppose to.
* show which directory we are examining in our pre-commit checks.joris2006-05-271-1/+7
|
* allow commands to respect the -l flag, if the -l flag isjoris2006-05-271-1/+6
| | | | | | | specified certain commands will not recurse into directories. at the same time introduce a method of specifying wether or not a command should look in the repository for files.
* dont allow commit to continue if the file that is beingjoris2006-05-271-1/+8
| | | | commited needs to be updated or merged first.
* commiting removed files now worksjoris2006-05-271-8/+43
|
* commit the new opencvs code, i have been hacking onjoris2006-05-271-198/+131
| | | | | | | | | | | | 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.
* remove a metric buttload of excessive ()deraadt2006-04-141-6/+6
| | | | no binary change; ok ray
* fix some bugs that lint discovered for us.joris2006-04-011-6/+2
| | | | ok niallo@
* zap more unused variables.xsa2006-03-161-5/+1
|
* #include's cleanup; ok joris@ niallo@.xsa2006-01-021-11/+2
|
* major cleanup of the functions handling the remote cvs protocol.joris2005-12-301-19/+9
| | | | | | makes the code a lot more readable and understandable. ok xsa@ and niallo@
* cvs_rcs_getpath() cannot fail anymore;xsa2005-12-221-4/+2
|
* cvs_logmsg_open() and cvs_logmsg_get() cannot fail anymore;xsa2005-12-211-3/+3
|
* switch to xmalloc stuff, me and xsa@ agreed on this a longjoris2005-12-101-6/+2
| | | | | | | | | 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@
* use LP_NOTICE instead of LP_INFO where appropriate;xsa2005-07-271-2/+2
|
* KNF;xsa2005-07-251-6/+6
|
* rewrite of the file code. the previous one was justjoris2005-07-231-12/+12
| | | | | | | | 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@
* correctly seperate added, modified and removed files for use in thejoris2005-07-231-23/+51
| | | | | | construction of the log message in the editor. ok jfb@
* use the cf_name field of the CVSFILE struct instead of using the oldjoris2005-07-221-5/+3
| | | | | | | | CVS_FILE_NAME macro. This macro used to be nifty because of all the referencing for the names, but since we don't do that anymore and use cf_name directly... byebye CVS_FILE_NAME() okay xsa@
* unbreak the commit command.joris2005-07-191-2/+2
|
* use cvs_rcs_getpath();xsa2005-07-141-13/+2
|
* split this into cvs_commit_{remote,local}() functions;xsa2005-07-121-33/+51
| | | | ok jfb@ (Yes, Yes he IS back!!)
* remove trailing whitespacesjoris2005-07-071-2/+2
| | | | from deraadt@
* headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;xsa2005-05-311-4/+4
|
* don't forget to send the log message, this fixes the commit command.joris2005-05-301-1/+4
| | | | ok xsa@
* handle -r option; ok joris@xsa2005-05-301-1/+13
|
* Merge the cvs_cmd and cvs_cmd_info structures and add the necessaryjfb2005-05-241-18/+24
| | | | | | | fields to hook local versions of the commands. This needs to go in before it gets any bigger ok joris
* correct wrong error code usage.joris2005-05-201-5/+7
| | | | ok jfb@, xsa@
* execute the command callback at the same time we are buildingjoris2005-05-201-5/+27
| | | | | | the in-memory filelist. cuts down on execution time for larger trees. "put it in!" jfb@
* don't send a Modified request and the file its contents whenjoris2005-04-241-1/+8
| | | | it has been removed.
* add missing CVS_CMD_ALLOWSPEC flagjoris2005-04-241-2/+2
|
* handle removed files as well when checking files to commitjfb2005-04-191-3/+5
| | | | ok joris
* remove debug codejoris2005-04-191-2/+1
|
* make sure we pick up newly added files.joris2005-04-191-2/+4
|
* Modify the CVSFILE structure using a union to keep information aboutjfb2005-04-181-21/+9
| | | | | | | | | both files and directories. We can now keep the revision number for regular files, and don't need to fetch the appropriate entry in the command callbacks. This saves a huge amount of parsing on Entries files. ok joris@
* missing cvs_ent_free(); joris okxsa2005-04-161-1/+3
|
* snprintf() return values checks; joris okxsa2005-04-151-3/+8
|
* introduce our own set of error codes used by the commands to reportjoris2005-04-121-11/+11
| | | | | | what exactly went wrong in case of an error. ok jfb@
* don't include sysexits.h now we don't use those error codesjoris2005-04-111-2/+1
| | | | anymore.
* remove EX_USAGE error codesjoris2005-04-111-3/+3
| | | | ok jfb@
* first round of EX_* exit codes removal; ok joris@.xsa2005-04-031-4/+4
|
* fix prototype for cvs_commit_prepare()joris2005-03-311-2/+2
|
* move all the client commands to the new command framework.joris2005-03-301-57/+31
| | | | | | eliminates a lot of duplicate code. ok jfb@
* fix memleakjoris2005-03-291-4/+11
| | | | ok jfb@
* - make sure we are using a remote method before callingjoris2005-03-021-10/+17
| | | | | | | cvs_sendreq() and cvs_sendfile(). - don't leak entp on errors. ok jfb@
* more error checking on protocol calls when running in client modejfb2005-02-221-3/+5
|
* more widespread use of cvs_msg, and free it when we are donejfb2005-01-131-10/+14
| | | | diff by Joris Vink and me
* modify the directory handling portion to behave like the one in add.c,jfb2004-12-211-9/+7
| | | | | which does not attempt to send data when running on a local repository. This will be needed to support local repository access
* First attempt at syncing the command code and doing a lot more errorjfb2004-12-141-12/+19
| | | | checking on all the protocol calls
* return early if no files are ready to be commitedjfb2004-12-131-1/+3
|