#
3aaa63eb |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
show more ...
|
#
ef80df5c |
| 30-Dec-2018 |
guenther <guenther@openbsd.org> |
Delete unnecessary <libgen.h> #includes
ok deraadt@
|
#
4dcde513 |
| 01-Jun-2017 |
joris <joris@openbsd.org> |
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().
|
#
beba978c |
| 31-May-2017 |
joris <joris@openbsd.org> |
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 i
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.
show more ...
|
#
59eae9b8 |
| 28-May-2017 |
joris <joris@openbsd.org> |
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@
|
#
53ce2177 |
| 13-Oct-2016 |
fcambus <fcambus@openbsd.org> |
rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.
OK millert@
|
#
397ddb8a |
| 05-Nov-2015 |
nicm <nicm@openbsd.org> |
Remove xfree(), like already done for RCS. From Michael W Bombardieri, ok mmcc
|
#
b9fc9a72 |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N
Replace <sys/param.h> with <limits.h> and other less dirty headers where 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)
show more ...
|
#
63c546bc |
| 27-Dec-2011 |
nicm <nicm@openbsd.org> |
Move some global variables/statics to locals, from Michael W Bombardieri.
|
#
7945e3ff |
| 20-Apr-2011 |
nicm <nicm@openbsd.org> |
Trivial code simplifying, from Michael W Bombardieri.
|
#
7bb3ddb0 |
| 23-Jul-2010 |
ray <ray@openbsd.org> |
Reduce variable/function name and whitespace differences between cvs/rcs.
OK xsa zinovik
|
#
57003866 |
| 07-Jun-2009 |
ray <ray@openbsd.org> |
More cvs/diff/rcs convergence: 1. Mostly variable/function renaming, SIZE_T_MAX->SIZE_MAX, and spacing. 2. One strchr -> strncspn. 3. diff had a weird thing where it set file[12] = ofile[12] but neve
More cvs/diff/rcs convergence: 1. Mostly variable/function renaming, SIZE_T_MAX->SIZE_MAX, and spacing. 2. One strchr -> strncspn. 3. diff had a weird thing where it set file[12] = ofile[12] but never updated file or ofile, then if file and ofile were different it freed it. I removed it.
OK millert
show more ...
|
#
219c50ab |
| 06-Jun-2009 |
ray <ray@openbsd.org> |
Sync some rcsdiff changes to cvsdiff. As a side effect, cvs diff -t now works. There should be no functional change otherwise.
OK millert
|
#
4cb553bb |
| 26-Mar-2009 |
joris <joris@openbsd.org> |
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
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@
show more ...
|
#
f106b389 |
| 25-Mar-2009 |
joris <joris@openbsd.org> |
switch our file and directory lists to RB trees (see tree(3)), so we can benefit from faster lookup times while recursing.
|
#
13b057d9 |
| 29-Aug-2008 |
tobias <tobias@openbsd.org> |
Pre-commit checks (CVSROOT/commitinfo) are run before log message is requested. Do this for GNU cvs compatibility, too.
ok joris
|
#
4cd27328 |
| 08-Jul-2008 |
joris <joris@openbsd.org> |
make these compile cleanly
|
#
45b98c07 |
| 15-Jun-2008 |
tobias <tobias@openbsd.org> |
Support the addition of new files in branches.
ok joris
|
#
e28eda4e |
| 14-Jun-2008 |
tobias <tobias@openbsd.org> |
Conforming to RCS specification, it is possible but unlikely to encounter an RCS file which has no head revision set. Some commands actually can work with them (log, status) so support these files.
Conforming to RCS specification, it is possible but unlikely to encounter an RCS file which has no head revision set. Some commands actually can work with them (log, status) so support these files. Fixes A LOT of possible segmentation faults.
ok joris
show more ...
|
#
7c1a09a6 |
| 14-Jun-2008 |
joris <joris@openbsd.org> |
don't always re-open the same CVS/Entries file, instead keep the last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously.
don't always re-open the same CVS/Entries file, instead keep the last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously.
while doing this, switch the way we write revisions to disk by using fwrite(3) so stuff can get written to disk in chunks instead of writing everything line by line, another win.
with help from otto@ ok tobias@
show more ...
|
#
241113ff |
| 10-Jun-2008 |
joris <joris@openbsd.org> |
set tag_new if its available so it can get passed to loginfo
|
#
e2ec91a3 |
| 10-Jun-2008 |
joris <joris@openbsd.org> |
switch back to a single log message in local mode so we are compliant with a remote setup.
fixes a very annoying bug with loginfo as well.
ok tobias@
|
#
c7e0e589 |
| 10-Jun-2008 |
joris <joris@openbsd.org> |
style
|
#
b034d592 |
| 10-Jun-2008 |
joris <joris@openbsd.org> |
New trigger framework that allows us to run the required scripts defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.
This enables the use of log_accum2 and all that other nice stuff we like
New trigger framework that allows us to run the required scripts defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.
This enables the use of log_accum2 and all that other nice stuff we like.
This was mostly written by Jonathan Armani with help from tobias@ and myself.
ok tobias@
show more ...
|
#
09d28507 |
| 09-Jun-2008 |
tobias <tobias@openbsd.org> |
Properly handle merged files and conflicts which may arrise while merge. Instead of ignoring all files which contain possible conflict markers, only watch out for files which have actually been merge
Properly handle merged files and conflicts which may arrise while merge. Instead of ignoring all files which contain possible conflict markers, only watch out for files which have actually been merged.
With input by and ok joris.
show more ...
|