OpenBSD CVS

CVS log for src/usr.bin/rcs/rcsprog.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.165 / (download) - annotate - [select for diffs], Fri Aug 11 05:02:21 2023 UTC (9 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.164: +2 -2 lines
Diff to previous 1.164 (colored)

Switch rcs_{get,set}_mtime() from returning and taking a time_t to
doing so with a struct timespec and then use tv_nsec = UTIME_OMIT
instead of a (time_t)-1 as a "do nothing" value.  They can then
fully preserve the timestamp

ok millert@

Revision 1.164 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:12 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.163: +1 -2 lines
Diff to previous 1.163 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.163 / (download) - annotate - [select for diffs], Mon Jan 18 00:51:15 2021 UTC (3 years, 4 months ago) by mortimer
Branch: MAIN
CVS Tags: 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
Changes since 1.162: +2 -1 lines
Diff to previous 1.162 (colored)

Move usage definition out of header file to avoid issues with -fno-common.

ok deraadt@

Revision 1.162 / (download) - annotate - [select for diffs], Tue Jun 9 20:05:40 2020 UTC (3 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.161: +9 -1 lines
Diff to previous 1.161 (colored)

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.pub@arcor.de

Revision 1.161 / (download) - annotate - [select for diffs], Mon Jul 4 01:39:12 2016 UTC (7 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: 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, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.160: +7 -4 lines
Diff to previous 1.160 (colored)

The -I flag is documented but not implemented.  This fixes that and
also honors the -I flag from ci/co when prompting like GNU RCS.
OK jca@

Revision 1.160 / (download) - annotate - [select for diffs], Tue Dec 29 19:12:56 2015 UTC (8 years, 4 months ago) by gsoares
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.159: +2 -2 lines
Diff to previous 1.159 (colored)

fix exit status on pledge(2) failure.

from jsg@

Revision 1.159 / (download) - annotate - [select for diffs], Fri Oct 16 13:37:44 2015 UTC (8 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.158: +2 -2 lines
Diff to previous 1.158 (colored)

Implement real "flock" request and add it to userland programs that
use pledge and file locking.  OK deraadt@

Revision 1.158 / (download) - annotate - [select for diffs], Sat Oct 10 20:35:01 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.157: +2 -2 lines
Diff to previous 1.157 (colored)

normalize a few more tame request orderings, to help review

Revision 1.157 / (download) - annotate - [select for diffs], Sat Oct 10 18:58:53 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.156: +4 -1 lines
Diff to previous 1.156 (colored)

pledge "stdio getpw rpath wpath cpath fattr".  doug pointed out getpw*
use, and fattr for chmod.
doug

Revision 1.156 / (download) - annotate - [select for diffs], Sat Jun 13 20:15:21 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.155: +4 -5 lines
Diff to previous 1.155 (colored)

Convert xfree to free. From Fritjof Bornebusch. ok deraadt

Revision 1.155 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:11 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.154: +3 -3 lines
Diff to previous 1.154 (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.154 / (download) - annotate - [select for diffs], Mon Dec 1 21:58:46 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.153: +3 -3 lines
Diff to previous 1.153 (colored)

An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.

Revision 1.153 / (download) - annotate - [select for diffs], Fri Oct 10 08:03:39 2014 UTC (9 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.152: +7 -3 lines
Diff to previous 1.152 (colored)

Explicitly handle -l and -u combinations. From Fritjof Bornebusch; ok daniel@

Revision 1.152 / (download) - annotate - [select for diffs], Thu Oct 2 06:23:15 2014 UTC (9 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.151: +4 -5 lines
Diff to previous 1.151 (colored)

exit in usage functions themselves; from  Fritjof Bornebusch; ok nicm@

Revision 1.151 / (download) - annotate - [select for diffs], Tue Jul 12 21:00:32 2011 UTC (12 years, 10 months ago) by sobrado
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
Changes since 1.150: +2 -2 lines
Diff to previous 1.150 (colored)

argument to -t is optional.

ok jmc@

Revision 1.150 / (download) - annotate - [select for diffs], Mon Dec 6 22:47:56 2010 UTC (13 years, 5 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.149: +2 -1 lines
Diff to previous 1.149 (colored)

add missing header to properly use SIG* definitions

ok tobias@ nicm@

Revision 1.149 / (download) - annotate - [select for diffs], Wed Sep 8 15:15:50 2010 UTC (13 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.148: +2 -2 lines
Diff to previous 1.148 (colored)

Set rcs_suffixes to default value on initialization.

ok ray zinovik

Revision 1.148 / (download) - annotate - [select for diffs], Fri Jul 23 08:31:19 2010 UTC (13 years, 10 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.147: +5 -5 lines
Diff to previous 1.147 (colored)

Rename a bunch of variables and functions, removing the cvs_/rcs_
prefixes to reduce differences between cvs and rcs files.

"yes!" nicm

Revision 1.147 / (download) - annotate - [select for diffs], Sun Feb 15 12:58:01 2009 UTC (15 years, 3 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.146: +2 -2 lines
Diff to previous 1.146 (colored)

bump version to match next release

Revision 1.146 / (download) - annotate - [select for diffs], Sun Nov 9 12:34:47 2008 UTC (15 years, 6 months ago) by tobias
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored)

typo fixed (overriden -> overridden)

ok espie, jmc

Revision 1.145 / (download) - annotate - [select for diffs], Tue Jul 8 12:25:47 2008 UTC (15 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

bump version to 4.4

Revision 1.144 / (download) - annotate - [select for diffs], Sat May 10 19:54:58 2008 UTC (16 years ago) by tobias
Branch: MAIN
Changes since 1.143: +31 -33 lines
Diff to previous 1.143 (colored)

OpenRCS only handled a max of 128 arguments on command line + RCSINIT,
which was a bogus limit.  Spotted by naddy.

horribly prodded by and ok joris

Revision 1.143 / (download) - annotate - [select for diffs], Sat Apr 26 19:58:03 2008 UTC (16 years ago) by ray
Branch: MAIN
Changes since 1.142: +5 -8 lines
Diff to previous 1.142 (colored)

Duplicate envstr and free it on error instead of allocating for
each argument and freeing each argument on error.

OK joris, tobias

Revision 1.142 / (download) - annotate - [select for diffs], Thu Apr 24 19:16:49 2008 UTC (16 years ago) by tobias
Branch: MAIN
Changes since 1.141: +5 -5 lines
Diff to previous 1.141 (colored)

Prevent overflow of cmd_argv if RCS_INIT and command line arguments
exceed buffer size (diff based on OpenCVS code).

ok ray, xsa

Revision 1.141 / (download) - annotate - [select for diffs], Tue Mar 4 16:43:51 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.140: +13 -1 lines
Diff to previous 1.140 (colored)

fix segfault when trying to lock and unlock rcs files that
contain no revisions.

reported by Jean Raby.

ok deraadt@

Revision 1.140 / (download) - annotate - [select for diffs], Sun Feb 24 15:13:18 2008 UTC (16 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored)

Bump version. Improvements and fixes since last release.
OK joris@.

Revision 1.139 / (download) - annotate - [select for diffs], Sat Jun 30 08:23:49 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.138: +5 -5 lines
Diff to previous 1.138 (colored)

Sync revisions and time buffers size to be consistent with each others.
Simplifies further size tweaks if needed.
OK ray@.

Revision 1.138 / (download) - annotate - [select for diffs], Thu Apr 26 21:51:04 2007 UTC (17 years ago) by sobrado
Branch: MAIN
Changes since 1.137: +2 -3 lines
Diff to previous 1.137 (colored)

`[-sstate[:rev]]' is not available in rcs(1)

ok by jmc@, niallo@, and xsa@

Revision 1.137 / (download) - annotate - [select for diffs], Tue Feb 27 07:59:13 2007 UTC (17 years, 2 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.136: +8 -2 lines
Diff to previous 1.136 (colored)

As done in OpenCVS, general includes cleanup sweep. OK otto@.

Revision 1.136 / (download) - annotate - [select for diffs], Wed Jan 10 18:04:25 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

you know what, now that openrcs is in fact working properly and
has been in the previous release - how about we give it a proper
version instead of "OpenCVS RCS 3.6"

okay xsa@, ray@

Revision 1.135 / (download) - annotate - [select for diffs], Wed Dec 27 07:43:24 2006 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.134: +2 -2 lines
Diff to previous 1.134 (colored)

- no need to mention -e option twice in usage.

pointed out by Igor Sobrado <igor at string1.ciencias.uniovi.es>

Revision 1.134 / (download) - annotate - [select for diffs], Mon Nov 13 11:22:57 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored)

no magic, use defined RCS_LOCK_INVAL variable.

Revision 1.133 / (download) - annotate - [select for diffs], Thu Oct 12 17:20:12 2006 UTC (17 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)

- convert some warnx() to warn(), which fixes a few stupidly un-informative error messages (found by tom@)
- make rcs_choosefile() save wrt errno, input from ray@

ok joris@ xsa@

Revision 1.132 / (download) - annotate - [select for diffs], Wed Aug 16 07:39:15 2006 UTC (17 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.131: +18 -6 lines
Diff to previous 1.131 (colored)

Improve rcs_buf_load() by setting errno appropriately on failure and
never print errors or quit on error.

Fix usages of rcs_buf_load() and rcs_set_description.

Also plug an fd leak.

OK xsa@

Revision 1.131 / (download) - annotate - [select for diffs], Mon May 29 21:17:44 2006 UTC (17 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.130: +3 -4 lines
Diff to previous 1.130 (colored)

Plug more memory leaks.

OK joris@

Revision 1.130 / (download) - annotate - [select for diffs], Sun May 28 23:16:31 2006 UTC (17 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.129: +10 -16 lines
Diff to previous 1.129 (colored)

Remove a lot of xstrdup() calls in getopt() loops, which are usually
unnecessary.  These xstrdup() calls don't call xfree() before anyway,
so if a flag is given multiple times memory leaks would have resulted.

OK joris@

Revision 1.129 / (download) - annotate - [select for diffs], Sun May 28 18:55:55 2006 UTC (17 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.128: +18 -18 lines
Diff to previous 1.128 (colored)

Move -A<oldfile> handling into separate chunk of code.  This also
removes a memory leak if -A is given multiple times.

OK joris@

Revision 1.128 / (download) - annotate - [select for diffs], Sat May 27 05:49:14 2006 UTC (17 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.127: +12 -6 lines
Diff to previous 1.127 (colored)

Remove rcs_statfile().  It was just a wrapper for rcs_choosefile(),
handling exceptions oddly.

OK joris@

Revision 1.127 / (download) - annotate - [select for diffs], Fri May 19 07:52:38 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.126: +7 -2 lines
Diff to previous 1.126 (colored)

fix printf + add missing printf when unlocking file (-u).

Revision 1.126 / (download) - annotate - [select for diffs], Mon May 15 06:58:03 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.125: +2 -1 lines
Diff to previous 1.125 (colored)

missing bits for a working merge(1). Built and enabled.
OK joris@ ray@.

Revision 1.125 / (download) - annotate - [select for diffs], Thu May 11 09:43:19 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.124: +7 -4 lines
Diff to previous 1.124 (colored)

fix informative msg's wrt to -q and stderr. now matches gnu/usr.bin/rcs.

Revision 1.124 / (download) - annotate - [select for diffs], Tue May 9 12:33:42 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.123: +1 -3 lines
Diff to previous 1.123 (colored)

Remove /* NOTREACHED */ comments, now that lint is smart about
__dead.  I never should have put them there.

OK xsa@.

Revision 1.123 / (download) - annotate - [select for diffs], Mon May 1 18:07:00 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.122: +6 -3 lines
Diff to previous 1.122 (colored)

using *_FOREACH macros is really bad when we are actually
removing elements from the list inside the loop.

this has been documented *clearly* in queue(3).
okay niallo@

Revision 1.122 / (download) - annotate - [select for diffs], Sat Apr 29 05:31:28 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.121: +4 -3 lines
Diff to previous 1.121 (colored)

Check return values for all strlcpy, and strlcat calls.

OK xsa@ and probably others.

Revision 1.121 / (download) - annotate - [select for diffs], Sat Apr 29 05:10:16 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

Clarify man pages to match -t behavior and pretty up usage strings.

OK xsa@ and jmc@.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Apr 28 22:26:08 2006 UTC (18 years ago) by jmc
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored)

remove -h; ok xsa

Revision 1.119 / (download) - annotate - [select for diffs], Thu Apr 27 07:54:15 2006 UTC (18 years ago) by jmc
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

move -M into compat land; ok xsa

Revision 1.118 / (download) - annotate - [select for diffs], Wed Apr 26 21:55:22 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.117: +19 -9 lines
Diff to previous 1.117 (colored)

prevent file races by obtaining an fd for the RCS file and
do our operations on that, this is safe and guarantees we
can operate on the file until we close(2) it.

a fix is coming for the remaining races in our diff code.
okay niallo@ and ray@

Revision 1.117 / (download) - annotate - [select for diffs], Wed Apr 26 02:55:13 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.116: +10 -10 lines
Diff to previous 1.116 (colored)

fork our code we shared between openrcs/cvs into the openrcs dir.

this was starting to become inhuman to maintain without
ugly ugly hacks in the shared code, and it will be easier
to make specific changes for openrcs without touching the
soon-to-be-replaced opencvs code.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Apr 25 13:55:49 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored)

quote strings consistently.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Apr 25 13:36:35 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.114: +10 -10 lines
Diff to previous 1.114 (colored)

fatal() -> err()/errx() as we try to not depend on heavy cvs_log().
OK joriski.

Revision 1.114 / (download) - annotate - [select for diffs], Mon Apr 24 08:10:41 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

be consistent in error messages for wrongly specified keyword substitution
mode for `-k'.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Apr 24 04:51:57 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.112: +3 -36 lines
Diff to previous 1.112 (colored)

o Better match GNU behavior (a bare -t does NOT read from stdin,
  unlike rcs).
o Share code with rcs by moving rcs_set_description() to rcsutil.c.
o Change description prompt from #define to const char *.

OK xsa@

Revision 1.112 / (download) - annotate - [select for diffs], Fri Apr 21 17:17:29 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.111: +5 -418 lines
Diff to previous 1.111 (colored)

move shared functions into rcsutil.[ch]; this makes rcsprog.c cleaner;
"the voices in my head say OK!" joris@.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Apr 21 14:42:12 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.110: +6 -1 lines
Diff to previous 1.110 (colored)

match former rcs implementation warning message if no options are
specified when using rcs(1). OK ray@ joris@.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Apr 21 14:18:26 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.109: +20 -25 lines
Diff to previous 1.109 (colored)

remove overkill cvs_log() and rather use warn()/warnx().
OK ray@ and discussed with joris@.

Revision 1.109 / (download) - annotate - [select for diffs], Fri Apr 21 07:06:25 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.108: +1 -2 lines
Diff to previous 1.108 (colored)

switch -p handling to bitwise flags; OK ray@.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Apr 19 06:53:41 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.107: +6 -7 lines
Diff to previous 1.107 (colored)

switch -q handling to bitwise flags; OK ray@ niallo@.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Apr 18 03:35:57 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.106: +40 -33 lines
Diff to previous 1.106 (colored)

Combine code to prompt user for input into a shared function,
reducing some complex fats from ci.c.

OK joris@

Revision 1.106 / (download) - annotate - [select for diffs], Tue Apr 18 02:46:21 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.105: +2 -6 lines
Diff to previous 1.105 (colored)

Remove -h flag from rcs_getopt loop, which is not in GNU.

OK xsa@

Revision 1.105 / (download) - annotate - [select for diffs], Mon Apr 17 12:11:07 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.104: +4 -1 lines
Diff to previous 1.104 (colored)

plug memory leak; OK ray@.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Apr 15 19:35:19 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.103: +2 -3 lines
Diff to previous 1.103 (colored)

dont stupidly duplicate code. make rlog use rcs_rev_select() and thus
nuke rlog_rev_select(). OK niallo@.

Revision 1.103 / (download) - annotate - [select for diffs], Fri Apr 14 23:29:01 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.102: +13 -3 lines
Diff to previous 1.102 (colored)

- don't append the extension if it's already there (PR 5076).
- show magic branches in rlog (thanks for that nicer hack niall).
- correct output in rcsdiff, so we perfectly match gnu's

all these bugs were found by sturm@ while he was using cvsweb
(which uses the RCS tools).

"it is in my view that you should put it in" niallo@

Revision 1.102 / (download) - annotate - [select for diffs], Fri Apr 14 01:11:07 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.101: +9 -9 lines
Diff to previous 1.101 (colored)

excessive addition to brackets is a mental disease.  you will go
blind, too.  seek help.  no binary change, ok joris

Revision 1.101 / (download) - annotate - [select for diffs], Thu Apr 13 19:55:41 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.100: +103 -7 lines
Diff to previous 1.100 (colored)

add support for the openrcs -o'range' option.
-o allows users to delete revisions in the specified RCS files.

example:
	rcs -o1.4:1.6 foo deletes revisions 1.4 - 1.6
	rcs -o1.3 foo deletes revision 1.3

joint work with niallo@
okay niallo@

Revision 1.100 / (download) - annotate - [select for diffs], Thu Apr 13 16:10:29 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.99: +4 -1 lines
Diff to previous 1.99 (colored)

clean up temporary files when we finish running.
"cool" niallo@

Revision 1.99 / (download) - annotate - [select for diffs], Thu Apr 13 00:58:25 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.98: +20 -1 lines
Diff to previous 1.98 (colored)

*** empty log message ***

Revision 1.98 / (download) - annotate - [select for diffs], Wed Apr 12 22:54:23 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.97: +16 -7 lines
Diff to previous 1.97 (colored)

Better match GNU behavior for rcs -l and rcs -u.
Save 2 bytes of newlines.

OK joris@

Revision 1.97 / (download) - annotate - [select for diffs], Wed Apr 12 08:23:30 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.96: +35 -8 lines
Diff to previous 1.96 (colored)

Clean up <rev> handling.  Whenever a revision is specified after a
flag, it calls one of two new functions: rcs_setrevstr() or
rcs_setrevstr2().  rcs_setrevstr() sets a string to another string,
and complains if it was set more than once.  rcs_setrevstr2() takes
two strings, sets one after the other, and fatal()s if more than
two strings were given.

All <rev> handling is now done in the loop that goes through each
argv.  This is necessary for parsing symbols, which will be much
easier after this.

Along the way a lot of memory leaks were cleaned up.  There is one
area where rcs_set_rev() is called, which allocates a RCSNUM and
stores it in pb.newrev, but it segfaults whenever I try to rcsnum_free()
it.  I put an /* XXX */ comment there for now.

Passes regression tests and the code is less complicated in some
ways (to me).

Suggestions and OK xsa@

Revision 1.96 / (download) - annotate - [select for diffs], Tue Apr 11 08:07:35 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.95: +3 -7 lines
Diff to previous 1.95 (colored)

Don't rcs_close() before fatal().  After much hesitation, joris@
and xsa@ finally convinced me this is safe (and better).

OK joris@, niallo@, and xsa@.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Apr 10 08:08:00 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.94: +4 -4 lines
Diff to previous 1.94 (colored)

change rcs_kwexp_set() return type to void and simplify its use. OK niallo@.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Apr 7 12:54:40 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.93: +5 -10 lines
Diff to previous 1.93 (colored)

change rcs_set_mtime() return type to void.

Revision 1.93 / (download) - annotate - [select for diffs], Thu Apr 6 10:13:00 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (colored)

-z can take no argument.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Apr 1 06:19:29 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.91: +64 -6 lines
Diff to previous 1.91 (colored)

Add rcs -l, rcs -u, and regression tests.

``put it all in'' joris@

Revision 1.91 / (download) - annotate - [select for diffs], Sat Apr 1 05:58:17 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.90: +2 -6 lines
Diff to previous 1.90 (colored)

Keep cvs flags in `flags', rcs flags in `rcsflags' in rcsprog.h.
Prevents bitfield pollution between the two.

``This is how it should be.'' niallo@

Revision 1.90 / (download) - annotate - [select for diffs], Tue Mar 28 09:51:09 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.89: +5 -3 lines
Diff to previous 1.89 (colored)

shudup rcs_set_description(), so regress tests are happy too.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Mar 27 21:56:32 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

- properly implement GNU file modes.  basically, checkout will inherit
permissions from rcs file and initial checkin will inherit permissions from
working file.

problem spotted by uwe@

ok ray@ xsa@

Revision 1.88 / (download) - annotate - [select for diffs], Mon Mar 27 08:21:01 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.87: +25 -3 lines
Diff to previous 1.87 (colored)

Fix and clean up -t flag:
 - Add comments.
 - Support -t-inline-comments-like-man-page-says.
 - -tfilename still works.
 - When using -t (read description from stdin) don't end when first
   character is `.'.  Instead, end if whole line consists of one `.'.
 - Add regression test.

I also changed the regression Makefile to have a trailing slash on
the final element.  As long as we have a blank line it will be fine,
plus it will save us some trouble when adding new tests.

After adding line breaks, ``rest looks fine.'' xsa@

Revision 1.87 / (download) - annotate - [select for diffs], Mon Mar 27 07:38:24 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.86: +17 -18 lines
Diff to previous 1.86 (colored)

Changes:
 - RCS_CREATE is now set in flags.
 - Since flags & RCS_CREATE is used in rcs_statfile(), flags is now a
   global variable.
 - RCS_[ENT]FLAG -> RCSPROG_[ENT]FLAG
 - Call rcs_set_description() if -t flag is given or if RCS_CREATE is
   set, checked in that order.  If the -t flag is given and RCS_CREATE
   is set, don't call rcs_set_description() twice.

``commitski!!'' xsa@

Revision 1.86 / (download) - annotate - [select for diffs], Mon Mar 27 06:13:51 2006 UTC (18 years, 1 month ago) by pat
Branch: MAIN
Changes since 1.85: +9 -9 lines
Diff to previous 1.85 (colored)

Plug a memory leak for all cvs_strsplit call sites; ok xsa@

Revision 1.85 / (download) - annotate - [select for diffs], Fri Mar 24 05:14:48 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.84: +4 -3 lines
Diff to previous 1.84 (colored)

Allow the -x flag to be used without an extension.

``that makes sense'' xsa@

Revision 1.84 / (download) - annotate - [select for diffs], Thu Mar 23 09:03:28 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

use fatal() in rcs_lock_setmode(); OK ray@.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Mar 22 02:58:15 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.82: +14 -18 lines
Diff to previous 1.82 (colored)

Clean up xfree() usage in rcs_choosefile().

OK xsa@

Revision 1.82 / (download) - annotate - [select for diffs], Tue Mar 21 08:34:36 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.81: +27 -4 lines
Diff to previous 1.81 (colored)

add support for `rcs -e[logins]'; "Looks good" ray@.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Mar 21 02:50:15 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.80: +5 -12 lines
Diff to previous 1.80 (colored)

Instead of duplicating rcs_suffixes and running strsep on it again,
just use the previous suffixes.  Since all slashes were replaced
with NULs, reading `suffixes' will give the first extension.

OK xsa@

Revision 1.80 / (download) - annotate - [select for diffs], Tue Mar 21 02:45:09 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Allow creation of an RCS file if RCS_CREATE flag set.

OK xsa@

Revision 1.79 / (download) - annotate - [select for diffs], Mon Mar 20 17:41:37 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.78: +8 -11 lines
Diff to previous 1.78 (colored)

make `rcs -a' use cvs_strsplit() for easiness; OK joris@.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Mar 18 04:00:34 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.77: +3 -1 lines
Diff to previous 1.77 (colored)

+/* ARGSUSED */
 void
 sighdlr(int sig)

OK niallo@

Revision 1.77 / (download) - annotate - [select for diffs], Sat Mar 18 03:41:54 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.76: +6 -12 lines
Diff to previous 1.76 (colored)

strdup() -> xstrdup()

Okay xsa@

Revision 1.76 / (download) - annotate - [select for diffs], Thu Mar 16 04:04:57 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.75: +4 -1 lines
Diff to previous 1.75 (colored)

Follow exit() with /* NOTREACHED*/ for lint.

``OK niallo@'' niallo@

Revision 1.75 / (download) - annotate - [select for diffs], Thu Mar 16 03:51:18 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.74: +17 -59 lines
Diff to previous 1.74 (colored)

Simplify rcs_statfile() by having it call rcs_choosefile().

ok xsa and niallo

Revision 1.74 / (download) - annotate - [select for diffs], Wed Mar 15 03:29:01 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.73: +126 -1 lines
Diff to previous 1.73 (colored)

Move and rename checkin_choose_rcsfile() to rcs_choosefile().

ok joris

Revision 1.73 / (download) - annotate - [select for diffs], Wed Mar 15 02:46:14 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.72: +4 -9 lines
Diff to previous 1.72 (colored)

Don't assume there is an RCS directory just because the filename
contains the letters `RCS'.

ok niallo

Revision 1.72 / (download) - annotate - [select for diffs], Tue Mar 14 03:33:30 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.71: +1 -2 lines
Diff to previous 1.71 (colored)

ci currently doesn't parse the -x flag at all, defaulting to ",v/" every
time.  I rewrote checkin_choose_rcsfile() to handle it using these rules:
 - If a directory structure is given (ci -x,abcd dir/dir2/file) then all
   RCS files are under dir/dir2.
 - If the RCS/ directory exists, use it.  Otherwise use current directory.
 - If the -x flag is specified, use those slash-separated extensions.
   Otherwise, use the default (",v/").
 - Look in the rcs directory (RCS/ or current directory) for a file
   with a matching extension, for each extension.  Each extension is
   tried in order.  If a file exists, it is used.  If no file exists
   with any extension, the first one is used.
 - The empty extension is treated as no extension, because I can't
   figure out what its special meaning is.

It sounds complicated, and the code is kinda complicated as well, but it
makes sense if you think about it.

ok niallo

Revision 1.71 / (download) - annotate - [select for diffs], Tue Mar 14 01:51:35 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.70: +1 -5 lines
Diff to previous 1.70 (colored)

OpenRCS currently strips any text in a filename up to and including
the last comma, assuming that it is a `,v' extension.  GNU RCS does
not do this.  This removes that check.

ok niallo

Revision 1.70 / (download) - annotate - [select for diffs], Sun Mar 12 01:20:38 2006 UTC (18 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.69: +2 -1 lines
Diff to previous 1.69 (colored)

plug a memleak in rcs_set_description()

okidoki niallo@

Revision 1.69 / (download) - annotate - [select for diffs], Sat Mar 11 22:51:13 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.68: +1 -20 lines
Diff to previous 1.68 (colored)

Now that the last diff went in, we just have to remove some checks in
rcs_set_rev() to get the GNU-like behaviour for ci -l0, ci -u0 etc
(admittedly its weird behaviour...but hey, we should support it)

ok joris@

Revision 1.68 / (download) - annotate - [select for diffs], Wed Mar 8 20:19:39 2006 UTC (18 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.67: +19 -1 lines
Diff to previous 1.67 (colored)

make openrcs use the worklist framework to keep track of temporary files
and remove them in case it gets interrupted.

suggested by deraadt@, ok niallo@

Revision 1.67 / (download) - annotate - [select for diffs], Wed Mar 8 12:25:34 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

spacing in usage();

Revision 1.66 / (download) - annotate - [select for diffs], Mon Mar 6 14:57:32 2006 UTC (18 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.65: +5 -3 lines
Diff to previous 1.65 (colored)

update usage();

Revision 1.65 / (download) - annotate - [select for diffs], Mon Mar 6 14:37:23 2006 UTC (18 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

move compat flags into a STANDARDS section;
ok niallo xsa

Revision 1.64 / (download) - annotate - [select for diffs], Mon Mar 6 09:41:53 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.63: +4 -5 lines
Diff to previous 1.63 (colored)

many spacing cleanups

Revision 1.63 / (download) - annotate - [select for diffs], Tue Feb 21 16:39:23 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.62: +21 -1 lines
Diff to previous 1.62 (colored)

- fix some bugs when handling strange revision numbers (0 and 1). found by
  my automatic tool.

ok xsa@

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jan 25 08:01:00 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.61: +13 -12 lines
Diff to previous 1.61 (colored)

snprintf() cleanup; OK niallo@.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jan 6 15:30:49 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

typos;

Revision 1.60 / (download) - annotate - [select for diffs], Thu Jan 5 10:28:24 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.59: +1 -3 lines
Diff to previous 1.59 (colored)

cleanup, move log.h and rcs.h inclusion into rcsprog.h;

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

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

Revision 1.58 / (download) - annotate - [select for diffs], Tue Dec 27 16:05:21 2005 UTC (18 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

- implement lazy-parsing of rcs files, that is only parse as much as we
  need. this can save us much work, particularly with very large rcs files.

first of a few important performance improvements.

ok joris@

Revision 1.57 / (download) - annotate - [select for diffs], Sat Dec 24 16:37:46 2005 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

error message consistency in fatal();

Revision 1.56 / (download) - annotate - [select for diffs], Sat Dec 24 03:48:09 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.55: +129 -11 lines
Diff to previous 1.55 (colored)

- support for -n -N and -t;
- check for path truncation;
- do not pollute flags being passed to rcs_open() with local flags;
- fix rcs initialization stuff;

Revision 1.55 / (download) - annotate - [select for diffs], Wed Dec 21 16:10:50 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.54: +7 -15 lines
Diff to previous 1.54 (colored)

use fatal();

Revision 1.54 / (download) - annotate - [select for diffs], Wed Dec 14 11:39:12 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

correct usage();

Revision 1.53 / (download) - annotate - [select for diffs], Sat Dec 10 20:27:46 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.52: +5 -14 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Fri Dec 9 07:00:43 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

don't complain too often about 'redefinition of revision number',
specially when rev is actually NULL.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Nov 30 09:36:48 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.50: +9 -3 lines
Diff to previous 1.50 (colored)

`-ztz' is only here for compatibility;

Revision 1.50 / (download) - annotate - [select for diffs], Mon Nov 28 14:43:59 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

sync usage() for `-xsuffixes';

Revision 1.49 / (download) - annotate - [select for diffs], Sun Nov 27 16:49:15 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

- fix really stupid bug introduced in the last xsa commit.
  problem found by me, joris' eyes spotted the semi colon.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Nov 25 14:16:44 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.47: +12 -4 lines
Diff to previous 1.47 (colored)

add `-T' support for rcsclean(1) and rcs(1);

Revision 1.47 / (download) - annotate - [select for diffs], Fri Nov 25 13:50:01 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.46: +47 -1 lines
Diff to previous 1.46 (colored)

add support for `-T' and enable it for co(1);
tested and OK niallo@. "Looks good" joris@.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Nov 23 09:39:20 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.45: +5 -2 lines
Diff to previous 1.45 (colored)

initial bits for -T support;

Revision 1.45 / (download) - annotate - [select for diffs], Mon Nov 21 16:20:29 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.44: +4 -1 lines
Diff to previous 1.44 (colored)

enable `-xsuffixes' support as it has been added a few days ago
in rcs_statfile();
niallo ok

Revision 1.44 / (download) - annotate - [select for diffs], Mon Nov 21 15:16:41 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

- modularisation; split the two major checkin operations into functions.
- modularisation; split the revert code into checkin_revert()
- a few steps closer to rcsfile initialisation, but things need to be fixed
  in the rcs.c api first (currently we segfault).
- add a new checkin_choose_rcsfile() function to decide where the rcsfile
  should go.
- add a special case for ci to rcs_statfile() so that we don't print out an
  error if the rcsfile doesn't exist.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Nov 21 11:17:19 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.42: +10 -3 lines
Diff to previous 1.42 (colored)

tweaks;

Revision 1.42 / (download) - annotate - [select for diffs], Sun Nov 20 08:50:20 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.41: +58 -11 lines
Diff to previous 1.41 (colored)

rcs_statfile() improvements; initial work from joris + some bits from me;
niallo ok

Revision 1.41 / (download) - annotate - [select for diffs], Sat Nov 12 22:49:59 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

- fix xsa breakage. char arrays on the stack are not NULL if empty. use
flags instead.
- add a few more flags defines while i'm here.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Nov 12 21:34:48 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.39: +1 -5 lines
Diff to previous 1.39 (colored)

- remove strtab stuff. serves no useful purpose.

diff is from joris@, committing on his behalf because his net connection
is very dodgy right now.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Nov 12 09:42:29 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.38: +21 -7 lines
Diff to previous 1.38 (colored)

support for `-Aoldfile'; joris ok

Revision 1.38 / (download) - annotate - [select for diffs], Fri Nov 4 08:19:42 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

kill spaces in usage() to match Reality;

Revision 1.37 / (download) - annotate - [select for diffs], Thu Nov 3 17:54:34 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

- minor KNF

Revision 1.36 / (download) - annotate - [select for diffs], Thu Oct 27 07:43:56 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.35: +6 -2 lines
Diff to previous 1.35 (colored)

TMPDIR support; joris ok

Revision 1.35 / (download) - annotate - [select for diffs], Wed Oct 19 11:37:11 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.34: +3 -17 lines
Diff to previous 1.34 (colored)

- make a bunch of changes to how we handle verbose output. this brings us
much closer in line with GNU RCS and cleans things up in general.

ok joris@, "looks fine to me" xsa@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Oct 19 00:30:22 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.33: +9 -4 lines
Diff to previous 1.33 (colored)

add co -p support;
input from xsa@ and niallo@;

Revision 1.33 / (download) - annotate - [select for diffs], Tue Oct 18 16:20:31 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

more rcsmerge(1) bits;

Revision 1.32 / (download) - annotate - [select for diffs], Tue Oct 18 01:24:42 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.31: +4 -1 lines
Diff to previous 1.31 (colored)

oops, rcs_set_rev() can't operate when str is NULL of course;

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 18 01:22:14 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.30: +13 -1 lines
Diff to previous 1.30 (colored)

use rcs_set_rev() instead of duplicating code all over the
place to set a variable to the given revision number;

Revision 1.30 / (download) - annotate - [select for diffs], Sun Oct 16 00:25:14 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

fix off-by-one in RCSINIT code, noticed by niallo@
for this my karma drops by 10 points;

Revision 1.29 / (download) - annotate - [select for diffs], Sat Oct 15 23:39:36 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.28: +64 -3 lines
Diff to previous 1.28 (colored)

RCSINIT support;
ok niallo@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Oct 13 12:35:30 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.27: +71 -11 lines
Diff to previous 1.27 (colored)

To be fully compatibly with the GNU RCS tools we need to have the
same way of parsing commandline options. Since getopt(3) allows spaces
between arguments and GNU RCS tools does not we needed to roll out our
own way of option handling, and here it is.

ok niallo@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 12 17:43:18 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

minor knf;

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 12 17:13:30 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +6 -7 lines
Diff to previous 1.25 (colored)

various usage cleanup; ok joris

Revision 1.25 / (download) - annotate - [select for diffs], Tue Oct 11 00:25:18 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

free logrev on error;

Revision 1.24 / (download) - annotate - [select for diffs], Mon Oct 10 23:38:21 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.23: +41 -5 lines
Diff to previous 1.23 (colored)

support -mrevision:logmessage; used to set a log message of a revision
to the specified value;

ok niallo@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 10 14:37:59 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

exit(3) is preferred over return from main().

ok joris@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 6 15:39:11 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

ident command, written by xsa@ but he is too busy with work right now;

Revision 1.21 / (download) - annotate - [select for diffs], Thu Oct 6 12:56:49 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

support rlog command;

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 6 02:00:05 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.19: +5 -4 lines
Diff to previous 1.19 (colored)

rcsclean now works;

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 6 01:26:12 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

show fpath when checking out files;

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 6 01:24:25 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

thanks to niallo's diff changes, we now can support rcsdiff;
only basic stuff works, more coming;

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 30 17:34:58 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

allow ci to run, niallo forgot this when he commited his ci code;

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 30 15:05:47 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

KNF

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 30 15:02:26 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

ensure RCSDIR is in fact a directory before deciding to use it.

"go for it" joris@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 29 21:38:48 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

hrmz..better.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Sep 29 21:38:01 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

minor knf

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 29 21:30:10 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.11: +17 -10 lines
Diff to previous 1.11 (colored)

support -q flag in 'co' and 'rcs'

Revision 1.11 / (download) - annotate - [select for diffs], Thu Sep 29 15:19:51 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

stuff needed for 'co'

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 29 15:14:12 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.9: +2 -3 lines
Diff to previous 1.9 (colored)

zap unused vars

Revision 1.9 / (download) - annotate - [select for diffs], Thu Sep 29 15:13:19 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.8: +43 -28 lines
Diff to previous 1.8 (colored)

- prototypes for the RCS commands go in rcsprog.h
- use rcs_statfile() to obtain the correct path to the RCS file

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 29 00:20:22 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.7: +18 -4 lines
Diff to previous 1.7 (colored)

for RCS files look in RCSDIR, if there is no path prefix specified.
if RCSDIR does not exist, look in the parent directory.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 20 05:03:02 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

missing 'ident' command in the programs table.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 20 05:01:31 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.5: +13 -7 lines
Diff to previous 1.5 (colored)

- create the correct RCS filename before calling rcs_open().
- don't bail out if we cannot open an RCS file, instead try to continue
  with the others (if there are any).

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 20 04:30:57 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

be a bit more compatible with gnu rcs in our output.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 20 04:29:51 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

loop through argv[] correctly instead of reusing argv[0] all the time.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Sep 20 04:24:41 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

sort headers

Revision 1.2 / (download) - annotate - [select for diffs], Fri Apr 15 15:59:11 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.1: +18 -27 lines
Diff to previous 1.1 (colored)

seperate usage functions per sub-program
shrink usage for rcs(1), that is what man pages are for
ok joris

Revision 1.1 / (download) - annotate - [select for diffs], Fri Apr 15 15:46:21 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN

move rcs (and later on, clones of all the other rcs commands) out of the
cvs subdirectory; ok jfb joris

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.