Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Delete unnecessary <libgen.h> #includes | 2018-12-30 | 1 | -2/+1 | |
| | | | | ok deraadt@ | ||||
* | fix incorrect usage of the .Bx macro; | 2018-12-05 | 1 | -5/+3 | |
| | | | | | one case reported by Fabio Scotoni <fabio at esse dot ch>, the rest found with regress/usr.bin/mandoc/db/dbm_dump | ||||
* | don't run cvs_client_sendfile() if its file_type is CVS_DIR, but do not | 2018-07-14 | 1 | -2/+2 | |
| | | | | | | depend on it being CVS_FILE explicitly. unbreaks remote operations on removed files. | ||||
* | fix const related warnings; ok millert@ | 2017-08-28 | 9 | -24/+24 | |
| | |||||
* | Use xasprintf() instead of calloc() + strlcpy() + memcpy() to | 2017-08-28 | 1 | -7/+3 | |
| | | | | | | generate the log line. Fixes a clang warning about using the wrong size argument in strlcpy(). The existing code was safe but not good strlcpy() practice. OK otto@ | ||||
* | When executing ssh, use "--" to indicate end of arguments before the | 2017-08-21 | 1 | -2/+3 | |
| | | | | host name. Adapted from a MirBSD diff by Thorsten Glaser. | ||||
* | Add missing <time.h> header. | 2017-07-20 | 2 | -2/+4 | |
| | | | | ok joris@ | ||||
* | If CVS_LOCK_REPO is set only attempt to unlock the repo if we're local. | 2017-06-01 | 1 | -2/+4 | |
| | | | | | Otherwise we end up calling cvs_repository_unlock() with garbage from the stack if we're dealing with a remote cvsroot. | ||||
* | Don't look at file_type until after cvs_remote_classify_file() was called. | 2017-06-01 | 1 | -5/+2 | |
| | | | | The file status may be unknown until after that call. | ||||
* | Stop looking at current_cvsroot->cr_method to figure out if we're remote or not. | 2017-06-01 | 22 | -82/+93 | |
| | | | | Instead use cvsroot_is_local() and cvsroot_is_remote(). | ||||
* | Do not use CVS_LOCK_REPO for committing. | 2017-05-31 | 1 | -2/+2 | |
| | | | | | | | This flag tells our file recursion code that for each directory entered we should lock it. Commit however locks all relevant directories on its own when it is about to make changes and should not depend on the file recursion code to do so. | ||||
* | Plug memleak in rcs_translate_tag() that was causing havoc on large repos. | 2017-05-31 | 1 | -1/+3 | |
| | |||||
* | When unlocking a directory only unlock the given one rather then all repo_locks. | 2017-05-31 | 1 | -3/+3 | |
| | |||||
* | fix indentation | 2017-05-31 | 1 | -2/+2 | |
| | |||||
* | Fix opencvs tag so it does not attempt to to local operations in a remote setup. | 2017-05-31 | 1 | -51/+46 | |
| | | | | While here make sure the "up-to-date" check (-c) works as one expects. | ||||
* | cvs_file_classify() was making the mistake of only taking over a sticky | 2017-05-29 | 2 | -5/+3 | |
| | | | | | | | tag from Entries for a given file if the sticky tag is present. while changing this we can simplify some logic in update.c on how it decides what tag to use for file classification. | ||||
* | Let opencvs show ignored files on import, not showing them is just confusing. | 2017-05-28 | 3 | -6/+20 | |
| | | | | ok stsp@ | ||||
* | Don't allow opencvs to commit towards tags that are not branches. | 2017-05-28 | 1 | -43/+7 | |
| | | | | | | | Gets rid of the old logic that wasn't working and replaced it with a simplified version. ok stsp@ | ||||
* | Teach opencvs status to display the sticky tag according to what it really | 2017-05-28 | 1 | -3/+8 | |
| | | | | | | represents if it is a branch or a revision. ok stsp@ | ||||
* | Bring the opencvs log message template inline with other cvs implementations. | 2017-05-28 | 1 | -5/+5 | |
| | | | | ok stsp@ | ||||
* | Don't use ce_time if we are running as a server, it won't be present. | 2016-11-03 | 1 | -3/+7 | |
| | |||||
* | minor whitespace fixes. | 2016-10-27 | 1 | -3/+2 | |
| | |||||
* | Using bitwise OR along with two assignments in the conditional of | 2016-10-18 | 1 | -2/+7 | |
| | | | | | | a while() loop is a trap for the unwary programmer (albeit a clever trap). Break this up into two separate assignments and using boolean OR for clarity. OK otto@ | ||||
* | Add the branch revision to the status output much like GNU cvs does. | 2016-10-18 | 1 | -6/+19 | |
| | | | | OK millert@ | ||||
* | Remove useless n=n assignment in the first parse of a for(). | 2016-10-16 | 1 | -2/+2 | |
| | | | | It was already removed from the rcs version by nicm@. | ||||
* | Quiet compiler warnings. OK tomc@ tb@ | 2016-10-15 | 9 | -33/+31 | |
| | |||||
* | Fix update -r and -A. | 2016-10-14 | 1 | -5/+3 | |
| | | | | | | | | | In certain cases update -r and update -A would not properly set or reset the sticky tag for file(s). From Joris Vink. OK millert@ | ||||
* | rcsnum_free() -> free() cleanups. From Michael W. Bombardieri. | 2016-10-13 | 18 | -127/+98 | |
| | | | | OK millert@ | ||||
* | Fix revision lookups for branches. Properly perform a revision | 2016-10-13 | 1 | -12/+11 | |
| | | | | | lookup so update -r actually works again, as a bonus throw a more correct error when the revision could not be found. From Joris Vink. | ||||
* | When allocating the h_table array use the size of struct hash_head, | 2016-10-12 | 1 | -2/+2 | |
| | | | | not the size of a pointer. From Joris Vink. OK fcambus@ | ||||
* | Use the correct type for p. From Joris Vink. | 2016-10-12 | 1 | -2/+3 | |
| | | | | OK tb@ | ||||
* | Add missing getpw pledge | 2016-09-04 | 1 | -2/+2 | |
| | | | | ok deraadt | ||||
* | When the commit message is empty, don't default to c)ontinue | 2016-08-16 | 1 | -5/+5 | |
| | | | | | | | | | (committing without log message) but a)bort. Also, accept the uppercase versions of the choices. Matches the corresponding change of behavior of GNU cvs. suggested by & ok jcs | ||||
* | more e-mail -> email | 2015-12-24 | 1 | -3/+3 | |
| | |||||
* | commited -> committed | 2015-12-22 | 1 | -3/+3 | |
| | |||||
* | Remove NULL-checks before free(). ok tb@ | 2015-12-09 | 1 | -3/+2 | |
| | |||||
* | opencvs can use pledge "stdio rpath wpath cpath fattr proc exec". | 2015-11-19 | 1 | -1/+5 | |
| | | | | I have not looked into adding stricter pledges later in the code. | ||||
* | Merge xmalloc.[ch] files across base, skipping OpenSSH for now. | 2015-11-17 | 1 | -24/+23 | |
| | | | | ok nicm | ||||
* | Remove xfree(), like already done for RCS. From Michael W Bombardieri, | 2015-11-05 | 34 | -372/+297 | |
| | | | | ok mmcc | ||||
* | Add brackets to clarify assignments that are the result of a test operator. | 2015-09-05 | 1 | -2/+2 | |
| | | | | ok deraadt@ looks correct millert@ jung@ | ||||
* | Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope | 2015-08-20 | 2 | -7/+7 | |
| | | | | ok krw millert | ||||
* | Add support for commit ids to opencvs status. | 2015-04-04 | 1 | -1/+12 | |
| | | | | Patch by joris via tech@; reminded by tedu | ||||
* | Fix modified timestamp in output of opencvs status. | 2015-04-04 | 3 | -6/+12 | |
| | | | | Patch by joris via tech@; reminded by tedu | ||||
* | Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@ | 2015-02-05 | 6 | -7/+12 | |
| | |||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 35 | -213/+224 | |
| | | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) | ||||
* | An internal function called xrealloc() is actually a fail-hard | 2014-12-01 | 10 | -37/+34 | |
| | | | | reallocarray()... so rename it. | ||||
* | not compiled before commit | 2014-11-22 | 1 | -2/+2 | |
| | |||||
* | Fixed uninitialized pointer (and other struct entries while at it) | 2014-11-22 | 1 | -2/+2 | |
| | | | | | | | | which is referenced while parsing invalid RCS files. Spotted by jsg. ok deraadt | ||||
* | Convert the logic in rcsparse_warnx(). Instead of creating a | 2014-11-16 | 1 | -8/+9 | |
| | | | | | | | | temporary format string, create a temporary message. If there is not enough memory to log the error, just log this second error. The double error path gets never tested, so it should be simple. Make it work like the other places. OK doug@ | ||||
* | unsigned char for ctype. ok deraadt | 2014-01-08 | 6 | -20/+21 | |
| |