CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2020/06/09 14:05:40 Modified files: usr.bin/rcs: rcsprog.c Log message: Refuse to remove locked revisions with rcs -orange. Otherwise we could leave behind a lock for a revision that no longer exists, breaking the RCS file. Reported via bugs@ by bernward@arcor.de
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2019/01/09 11:00:45 Modified files: usr.bin/rcs: co.c Log message: Delay keyword expansion in co until after the locks have been resolved. This way the expansion can happen with the correct values and files do not show up as modified.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2019/01/09 10:57:06 Modified files: usr.bin/rcs: rcs.c Log message: When expanding $Log$ make sure a newline is added if rd_log has none. This can happen on new RCS files. Fixes $Log$ keyword expansion.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2019/01/09 10:55:28 Modified files: usr.bin/rcs: rcs.c Log message: Make sure rcs_lock_add() and rcs_lock_remove() properly update the rd_lock member of the matching delta. Other keyword substitution will not properly work in cases where the RCS file did not have a lock for the revision yet or if the lock is being removed.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2018/07/14 15:28:02 Modified files: usr.bin/cvs: client.c Log message: don't run cvs_client_sendfile() if its file_type is CVS_DIR, but do not depend on it being CVS_FILE explicitly. unbreaks remote operations on removed files.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/06/01 02:38:56 Modified files: usr.bin/cvs: file.c Log message: If CVS_LOCK_REPO is set only attempt to unlock the repo if we're local. Otherwise we end up calling cvs_repository_unlock() with garbage from the stack if we're dealing with a remote cvsroot.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/06/01 02:17:27 Modified files: usr.bin/cvs: client.c Log message: Don't look at file_type until after cvs_remote_classify_file() was called. The file status may be unknown until after that call.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/06/01 02:08:24 Modified files: usr.bin/cvs: add.c admin.c annotate.c checkout.c commit.c cvs.c cvs.h diff.c edit.c file.c getlog.c import.c init.c release.c remove.c root.c status.c tag.c update.c util.c version.c watch.c Log message: Stop looking at current_cvsroot->cr_method to figure out if we're remote or not. Instead use cvsroot_is_local() and cvsroot_is_remote().
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/31 10:48:16 Modified files: usr.bin/cvs: commit.c Log message: Do not use CVS_LOCK_REPO for committing. 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.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/31 10:31:55 Modified files: usr.bin/cvs: rcs.c Log message: Plug memleak in rcs_translate_tag() that was causing havoc on large repos.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/31 10:18:20 Modified files: usr.bin/cvs: repository.c Log message: When unlocking a directory only unlock the given one rather then all repo_locks.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/31 10:14:37 Modified files: usr.bin/cvs: annotate.c Log message: fix indentation
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/31 10:13:25 Modified files: usr.bin/cvs: tag.c Log message: Fix opencvs tag so it does not attempt to to local operations in a remote setup. While here make sure the "up-to-date" check (-c) works as one expects.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/29 11:18:56 Modified files: usr.bin/cvs: file.c update.c Log message: cvs_file_classify() was making the mistake of only taking over a sticky 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.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/28 11:11:34 Modified files: usr.bin/cvs: cvs.h file.c import.c Log message: Let opencvs show ignored files on import, not showing them is just confusing. ok stsp@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/28 11:01:10 Modified files: usr.bin/cvs: commit.c Log message: Don't allow opencvs to commit towards tags that are not branches. Gets rid of the old logic that wasn't working and replaced it with a simplified version. ok stsp@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/28 10:58:54 Modified files: usr.bin/cvs: status.c Log message: Teach opencvs status to display the sticky tag according to what it really represents if it is a branch or a revision. ok stsp@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/05/28 10:57:01 Modified files: usr.bin/cvs: logmsg.c Log message: Bring the opencvs log message template inline with other cvs implementations. ok stsp@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2017/01/23 01:19:49 Modified files: usr.bin: Makefile Log message: Relink opencvs to the build. sure deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2016/11/03 14:13:41 Modified files: usr.bin/cvs: status.c Log message: Don't use ce_time if we are running as a server, it won't be present.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2016/10/27 01:12:02 Modified files: usr.bin/cvs: tag.c Log message: minor whitespace fixes.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2016/10/21 15:47:03 Modified files: sys/dev/acpi : dsdt.c Log message: Add support for the ACPI timer opcode. ok kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2016/10/18 11:11:43 Modified files: usr.bin/cvs: status.c Log message: Add the branch revision to the status output much like GNU cvs does. OK millert@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/10 05:26:10 Modified files: usr.bin/cvs: server.c Log message: with the recent module-expand changes, we need to use the correct repository path in Set-sticky and Clear-sticky otherwise we'll end up with stuff like src/bin/ls/src/bin/ls in CVS/Repository which pretty much breaks. noticed ok sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/07 15:27:45 Modified files: usr.bin/cvs: remote.c Log message: do not try to send a added file that is no longer on disk towards the server. problem spotted and diff tested by sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/06 00:45:56 Modified files: usr.bin/cvs: checkout.c Log message: make sure we handle allowed options in cvs_export() instead of ignoring them, even if they are just stubs. unbreaks export with gnu cvs clients.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/04 05:29:57 Modified files: usr.bin/cvs: client.c remote.h server.c Log message: properly expand modules if requested by the client, this option is needed so gnu cvs clients can play along properly when running checkout module in a remote setup. if we do not support this, gnu cvs refuses to send us any existing files already on disk and opencvs will consider everything as NEEDS_CHECKOUT, instead of running an update on existing stuff. problem noticed by fgsch@ commited with opencvs, but please everybody else do not use opencvs to commit yet.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/04 05:32:48 Modified files: usr.bin/cvs: server.c Log message: don't try to free stuff we shouldnt free, really.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/03 02:18:44 Modified files: usr.bin/cvs: diff.c Log message: my last commit to diff.c broke diffing in some cases, noticed the hard way here at work. commiting with opencvs, permission by deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/02 03:09:40 Modified files: usr.bin/cvs: diff.c Log message: make sure diffing -rTAG -rTAG works even if files are uptodate commited with opencvs, with permission by deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/02 15:13:50 Modified files: usr.bin/cvs: diff.c Log message: properly deal with uptodate files server-side, as they do not have a file on disk we'll need to load the revision into a temporary file to do our comparison. do not even bother trying diffing 2 off the same revisions either. causes less noise... way less. you guessed it, commited using opencvs entirely. with permission from deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/04/01 00:41:58 Modified files: usr.bin/cvs: client.c remote.c Log message: in client mode, be sure to consider the file modified if a conflict exists in the CVS/Entries file, otherwise the server has no way of determining if the user has resolved it or not. also in client mode, send a conflict as B+= not + alone, so other cvs implementations get it. commited entirely with opencvs, with permission by deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/30 15:45:33 Modified files: usr.bin/cvs: rcs.c Log message: kill rp_lines, we do not need it when parsing an RCS file. incendently, commit made using opencvs entirely. with permission from deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/29 13:17:26 Modified files: usr.bin/cvs: modules.c Log message: printf() - cvs_printf() so it works under server mode as well spotted by Jonathan Armani d...@asystant.net
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/28 10:47:33 Modified files: usr.bin/cvs: file.c Log message: when i fixed to attic handling i forgot one special case that we'd hit in normal checkouts/updates for duplicate file and dirs. found and diff tested by krw@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/27 01:28:57 Modified files: usr.bin/cvs: checkout.c Log message: make sure that when we try to send a Set-sticky to the client, we only do so if the file we're checking out was not supplied on the command-line. Otherwise we'll end up setting CVS/Tag for the entire directory instead of slapping a sticky tag only on the file supplied.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/26 16:54:37 Modified files: usr.bin/cvs: commit.c file.c file.h modules.c repository.c Log message: fix the way Attic is handled in our recursion code, so we do not skip files or run over them twice. also fixes -l and -r for checkout/update when a file in Attic exists with that tag that in HEAD is a directory in the normal repository like gnu/usr.bin/gcc/INSTALL. as a bonus, we do not run fstat() twice per file or dir anymore... spotted by deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/25 03:47:27 Modified files: usr.bin/cvs: cvs.1 Log message: -q hasnt been the default verbosity mode in ages.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/25 15:19:20 Modified files: usr.bin/cvs: buf.c buf.h cvs.h init.c rcs.h Log message: remove unused functions, definitions and outdated comments from the stone ages.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/25 15:23:17 Modified files: usr.bin/cvs: rcs.c Log message: prevent a very difficult to reach, but possible use after free. ok tobias@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/25 15:50:33 Modified files: usr.bin/cvs: checkout.c commit.c file.c file.h logmsg.c modules.c Log message: switch our file and directory lists to RB trees (see tree(3)), so we can benefit from faster lookup times while recursing.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/24 12:33:25 Modified files: usr.bin/cvs: tag.c file.c Log message: have CVS_OP_TAG and CVS_OP_RTAG use RCS_WRITE flag when calling rcs_open(), so it gets automaticly synced at the end of operations for that file instead of explicitly calling rcs_write() when you're in RCS_READ mode only. while here, make sure we do not try to free an uninitialized list.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/23 01:28:05 Modified files: usr.bin/cvs: diff.c Log message: any directory messages are, believe it or not, suppose to go to LP_ERR instead of LP_NOTICE, while here modify output for non-existing files to match ? foobar instead of cannot find foobar. makes our output a little less alien and a little bit more gnuish.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/23 01:40:30 Modified files: usr.bin/cvs: update.c Log message: LP_NOTICE should be LP_ERR when showing directory messages.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/23 09:10:09 Modified files: usr.bin/cvs: getlog.c Log message: add rlog -d support, ported from openrcs by Josh Elsasser j...@elsasser.org
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/23 09:13:58 Modified files: usr.bin/cvs: getlog.c Log message: remove debug, bleh
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/23 11:53:17 Modified files: usr.bin/cvs: init.h Log message: simplify
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/21 05:16:28 Modified files: usr.bin/cvs: update.c Log message: be smarter when checking if a directory is empty by looking at CVS/Entries early on in cvs_update_leavedir()
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/21 09:33:22 Modified files: usr.bin/cvs: status.c Log message: use file_rcsrev when printing out Repository revision so we always receive the correct revision number instead of HEAD, otherwise running status on a file that belongs to a branch results in showing HEAD revision instead of latest branch revision.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/19 03:55:19 Modified files: usr.bin/cvs: trigger.c Log message: only pass the real $var to expand_vars() instead of the entire line, this way commitinfo and stuff works again. found by myself the hard way, fix by tobias@ who's not around to commit.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/19 03:56:03 Modified files: usr.bin/cvs: server.c Log message: kill unused vars
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/19 04:09:16 Modified files: usr.bin/cvs: diff.c Log message: do not diff files server-side that are uptodate but require a patch, as the client does not provide these files at all because they are not modified in anyway. otherwise this results in bad mojo. found by myself and sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/03/18 03:14:09 Modified files: usr.bin/cvs: checkout.c Log message: be carefull when trying to access cf-file_rcs in cvs_checkout_file() as it could be NULL under certain conditions.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/23 14:33:12 Modified files: usr.bin/cvs: util.c Log message: unused var
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 05:47:19 Modified files: usr.bin/cvs: file.c file.h status.c Log message: alter cvs_file_get() so it takes flags instead of one set value for user_supplied. allow us to carry any important file flags over to cvs_file's later on. makes it easier for what i have coming.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 05:52:47 Modified files: usr.bin/cvs: cvs.h root.c Log message: cleanup of CVSROOT, we have no need for cr_flags, cr_version or cr_vrmask[] its all very old stuff. remove all macros using cr_vrmask as well, no use for them.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 06:39:01 Modified files: usr.bin/cvs: server.c Log message: correct Set-sticky and Clear-sticky responses to include the right repository path. we messed up some cvs implementations by doing this incorrectly.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 06:39:59 Modified files: usr.bin/cvs: util.c Log message: in cvs_mkpath() always look for an existing CVS/Repository file unless we're running checkout or export. otherwise we'll end up accidently overwriting it in certain cases on the client side of things.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 06:44:18 Modified files: usr.bin/cvs: checkout.c file.c file.h repository.c repository.h Log message: use file_flags for 2 more reasons: - mark a file as being inside the Attic/ - mark a file as existing in the working copy (both in local and remote mode) this way we no longer will need to check if cf-fd == -1 and think about wether or not we are in local or remote mode.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 07:11:08 Modified files: usr.bin/cvs: cvs.h Log message: bump to match release version
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 07:50:53 Modified files: usr.bin/cvs: add.c checkout.c client.c diff.c file.c remote.c remove.c status.c update.c Log message: use FILE_ON_DISK flags when we need to verify if a file exists in the working copy or not instead of checking fd being -1 since this can differ in server or local mode.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/21 11:26:47 Modified files: usr.bin/cvs: file.c Log message: fix grammar from dawed...@gmx.de
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/18 13:08:24 Modified files: usr.bin/cvs: rcs.c Log message: fix off by one character when constructing $Mdocdate$. problem found by todd@, ok sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/15 05:58:01 Modified files: usr.bin/rcs: rcsprog.c Log message: bump version to match next release
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/15 05:55:18 Modified files: usr.bin/rcs: rlog.c Log message: support rlog -d prodded tested by sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/15 06:40:33 Modified files: usr.bin/rcs: rcs.c usr.bin/cvs: rcs.c Log message: add our temporary RCS file to our temp_files worklist in case for some reason we get interrupted before calling rename(). we hate leaving behind temporary files.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/02/13 13:50:15 Modified files: usr.bin/cvs: client.c Log message: be more sane in handling the given repository path in cvs_client_updated().
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: jo...@cvs.openbsd.org 2009/01/13 17:23:30 Modified files: usr.bin/cvs: status.c Log message: fix printing status on removed files by default; slighty different diff applied then what the bug author provided us. thanks closes pr 6038