OpenBSD CVS

CVS log for src/usr.bin/cvs/root.c


[BACK] Up to [local] / src / usr.bin / cvs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.49 / (download) - annotate - [select for diffs], Thu Jun 1 08:08:24 2017 UTC (6 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.48: +19 -1 lines
Diff to previous 1.48 (colored)

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().

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

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)

Revision 1.47 / (download) - annotate - [select for diffs], Sat Oct 23 18:36:35 2010 UTC (13 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.46: +6 -3 lines
Diff to previous 1.46 (colored)

Use CVSROOT for "cvs import" - just ignore CVS/Root files. PR 6497 from
Michael W Bombardieri.

ok tobias stsp

Revision 1.46 / (download) - annotate - [select for diffs], Sat Feb 21 12:52:47 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.45: +1 -3 lines
Diff to previous 1.45 (colored)

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.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jun 20 23:00:13 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.44: +4 -1 lines
Diff to previous 1.44 (colored)

Don't parse CVS/Root during import.

ok joris

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 5 19:28:23 2007 UTC (16 years, 7 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.43: +3 -6 lines
Diff to previous 1.43 (colored)

strcspn() change

was okay'd by pyr@ and ok by millert@

Revision 1.43 / (download) - annotate - [select for diffs], Mon Sep 10 19:11:08 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.42: +2 -4 lines
Diff to previous 1.42 (colored)

remove my addition of portnumber for rsh in CVSROOT.
while it sounds like a "good" idea some people convinced me otherwise.

mostly because this breaks compat with GNU cvs.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Sep 10 14:06:14 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored)

Allow port specification in our CVSROOT which is used for our
ssh connection to our server.

Example: joris@somehost.com:2222:/cvs

OK tobias@

Revision 1.41 / (download) - annotate - [select for diffs], Sun Sep 2 12:13:00 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored)

Stick at GNU cvs behaviour with Root directive handling: it does not need
to be sent first, can occure multiple times (although this is ignored) but
should be supplied before Directory.

OK joris@

Revision 1.40 / (download) - annotate - [select for diffs], Thu Aug 30 11:19:29 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.39: +5 -64 lines
Diff to previous 1.39 (colored)

Remove old CVSROOT caching mechanisms.
from Tobias Stoeckmann

Revision 1.39 / (download) - annotate - [select for diffs], Fri May 11 11:29:26 2007 UTC (17 years ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

typo in previous commit;

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 11 06:32:02 2007 UTC (17 years ago) by xsa
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

fix format of the CVSROOT string in comments.
from Tobias Stoeckmann. OK niallo@.

Revision 1.37 / (download) - annotate - [select for diffs], Wed May 2 15:50:10 2007 UTC (17 years ago) by xsa
Branch: MAIN
Changes since 1.36: +5 -4 lines
Diff to previous 1.36 (colored)

strtol() -> strtonum(); from Tobias Stoeckmann.
OK ray@ otto@.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Feb 22 06:42:09 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.35: +4 -3 lines
Diff to previous 1.35 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.35 / (download) - annotate - [select for diffs], Wed Feb 7 17:54:42 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.34: +2 -8 lines
Diff to previous 1.34 (colored)

strl* overload; use xsnprintf(); OK ray@.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jan 18 22:52:23 2007 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

extra safety check for NULL value.

ok joris@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 16 14:07:42 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.32: +1 -6 lines
Diff to previous 1.32 (colored)

in preparation for the new remote code, proto.h becomes obsolete.

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 27 03:30:31 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.31: +4 -5 lines
Diff to previous 1.31 (colored)

commit the new opencvs code, i have been hacking on
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.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Apr 5 01:38:56 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.30: +2 -3 lines
Diff to previous 1.30 (colored)

Use variable names for sizeof, remove casts in front of xmalloc,
use xcalloc and xstrdup where appropriate, and other stuff.

OK joris@

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 25 13:31:45 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored)

this snprintf() occurence should have been removed in previous commit.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 25 08:15:05 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.28: +5 -2 lines
Diff to previous 1.28 (colored)

snprintf() cleanup; OK niallo@.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jan 2 08:11:56 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.27: +2 -10 lines
Diff to previous 1.27 (colored)

#include's cleanup; ok joris@ niallo@.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 20 16:55:21 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.26: +21 -44 lines
Diff to previous 1.26 (colored)

use fatal(); OK joris@ niallo@.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 10 20:27:45 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.25: +8 -21 lines
Diff to previous 1.25 (colored)

switch to xmalloc stuff, me and xsa@ agreed on this a long
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@

Revision 1.25 / (download) - annotate - [select for diffs], Sun Sep 11 14:16:48 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.24: +23 -13 lines
Diff to previous 1.24 (colored)

only remove and free a cvsroot struct if it has been added in
cvsroot_parse().

fixes segfaults opencvs has been receiving when cvsroot_parse() fails.
"go ahead" xsa@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Aug 10 16:01:27 2005 UTC (18 years, 9 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

do not forget to also add the local roots to the cache.
fixes a segfault in localmode.

ok xsa@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 10 14:49:20 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

fgets() expects the 2nd arg to be an int. OK jfb@ joris@.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Aug 9 10:33:46 2005 UTC (18 years, 9 months ago) by joris
Branch: MAIN
Changes since 1.21: +14 -18 lines
Diff to previous 1.21 (colored)

fix our root caching method, it was utterly broken and would
cause opencvs to segfault in several cases.

ok jfb@, xsa@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 25 12:13:08 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

KNF;

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 25 12:05:43 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

KNF;

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 31 08:58:48 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)

headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;

Revision 1.18 / (download) - annotate - [select for diffs], Fri May 20 19:40:27 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

simplify error message

Revision 1.17 / (download) - annotate - [select for diffs], Fri May 20 19:37:39 2005 UTC (19 years ago) by xsa
Branch: MAIN
Changes since 1.16: +6 -4 lines
Diff to previous 1.16 (colored)

do not hardcode 'CVS/Root' but rather use defined CVS_PATH_ROOTSPEC;
ok jfb joris

Revision 1.16 / (download) - annotate - [select for diffs], Sat Apr 16 19:05:02 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.15: +9 -2 lines
Diff to previous 1.15 (colored)

snprintf return value check; joris ok

Revision 1.15 / (download) - annotate - [select for diffs], Thu Feb 17 16:09:03 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.14: +4 -6 lines
Diff to previous 1.14 (colored)

only increase the reference count on the cvsroot structure when it
gets inserted into the cache.  This makes cvsroot_free() work
correctly instead of leaking memory in error cases of cvsroot_parse()

spotted by and ok pat@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 28 21:58:42 2004 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.13: +6 -1 lines
Diff to previous 1.13 (colored)

abort with an error if we can't figure out what the connection
method is

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 7 17:10:56 2004 UTC (19 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.12: +11 -14 lines
Diff to previous 1.12 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 6 21:03:13 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +5 -9 lines
Diff to previous 1.11 (colored)

tighten vertical spacing for else; jfb ok

Revision 1.11 / (download) - annotate - [select for diffs], Tue Aug 31 11:54:35 2004 UTC (19 years, 8 months ago) by jfb
Branch: MAIN
Changes since 1.10: +2 -0 lines
Diff to previous 1.10 (colored)

Do not crash when there is no user specified in the CVSROOT.  Simplified
version of a diff by Joris Vink.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Aug 27 15:40:44 2004 UTC (19 years, 8 months ago) by jfb
Branch: MAIN
Changes since 1.9: +6 -0 lines
Diff to previous 1.9 (colored)

cleanup and reset the valid requests array when allocating a new root
structure.  Also enable the use of at least Valid-responses and
valid-requests

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 2 22:45:57 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.8: +2 -0 lines
Diff to previous 1.8 (colored)

When we connect to a remote server, always send the Version request and
add a hack so we don't print it (we receive it through a 'M') but store
it in the cvs root structure instead.  This will allow us to make better
decisions in what we use to communicate with the remote server.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 30 01:49:24 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.7: +0 -1 lines
Diff to previous 1.7 (colored)

Move to the new API for the client-server protocol.  All functions now
take a cvs root structure as parameter.  This will allow for much easier
management of CVS trees that make use of multiple roots.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 28 02:15:10 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.6: +0 -1 lines
Diff to previous 1.6 (colored)

Remove a debugging message

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jul 28 01:59:19 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.5: +54 -13 lines
Diff to previous 1.5 (colored)

Add a small cache for parsed CVSROOT strings and return a pointer to a
previously cached entry when we encounter the same string more than once.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 27 16:35:48 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.4: +10 -19 lines
Diff to previous 1.4 (colored)

Be less retarded when parsing the contents of a CVS/Root file

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 27 12:18:02 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.3: +1 -0 lines
Diff to previous 1.3 (colored)

Zero out the cvs root structure before assigning the fields, otherwise
we can end up with pretty strange results

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 14 04:24:46 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

get rid of the newline when copying the root string

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 14 04:12:43 2004 UTC (19 years, 10 months ago) by vincent
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

/* line is not NUL-terminated */

so don't strlcpy!

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: OpenCVS
CVS Tags: OpenCVS_0_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

* initial import from the cvs-tools module

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.