OpenBSD CVS

CVS log for src/usr.bin/cvs/rcs.h


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.103 / (download) - annotate - [select for diffs], Mon Aug 28 19:33:20 2017 UTC (6 years, 8 months ago) by otto
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.102: +2 -2 lines
Diff to previous 1.102 (colored)

fix const related warnings; ok millert@

Revision 1.102 / (download) - annotate - [select for diffs], Thu Oct 13 20:51:25 2016 UTC (7 years, 7 months ago) by fcambus
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.101: +1 -2 lines
Diff to previous 1.101 (colored)

rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.

OK millert@

Revision 1.101 / (download) - annotate - [select for diffs], Mon Jun 3 17:04:35 2013 UTC (10 years, 11 months ago) by jcs
Branch: MAIN
CVS Tags: 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, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.100: +5 -1 lines
Diff to previous 1.100 (colored)

properly handle commitid tokens found in rcs files

ok deraadt

Revision 1.100 / (download) - annotate - [select for diffs], Mon Jul 2 21:56:25 2012 UTC (11 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.99: +4 -3 lines
Diff to previous 1.99 (colored)

simplify rcsnum parsing by using a fixed array without all the realloc
ok stsp

Revision 1.99 / (download) - annotate - [select for diffs], Fri Jun 3 10:02:25 2011 UTC (12 years, 11 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored)

add missing header, needed by the use of struct tm

ok nicm@ xsa@

Revision 1.98 / (download) - annotate - [select for diffs], Sun Oct 31 15:37:34 2010 UTC (13 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

init was passing a writable file descriptor into rcs_open which was then
failing to fdopen() it as readable. It doesn't need to pass in the fd at
all, so just change it to pass -1 which makes cvs init work again.

In fact, the fd should never need to be writable - it is only used for
reading. RCS_WRITE triggers a rewrite on the file on rcs_close() but
this is done by using a temporary and rename(2) (RCS_WRITE is a poor
name for the flag). So while here, add a couple of comments to hopefully
make it a little clearer. There is some confusion about how this is used
in other places but checking those is a separate issue.

with and ok tobias

Revision 1.97 / (download) - annotate - [select for diffs], Wed Oct 20 19:53:53 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.96: +5 -2 lines
Diff to previous 1.96 (colored)

Remove the need for rp_file in parser structure, instead keep only one
FILE pointer in RCSFILE.  This fixes some ugliness in closing an
fdopen()ed FILE and its underlying file descriptor.

Notified by Joerg Sonnenberger <joerg at britannica dot bec to de>

discussed with and ok nicm

Revision 1.96 / (download) - annotate - [select for diffs], Fri Sep 3 08:37:52 2010 UTC (13 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored)

Rename RCSNUM's fd to rf_fd, complies to other variable names and
OpenRCS.

ok xsa, zinovik

Revision 1.95 / (download) - annotate - [select for diffs], Tue Aug 31 20:42:45 2010 UTC (13 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.94: +1 -2 lines
Diff to previous 1.94 (colored)

Removed ra_uid, which was supposed to save the uid of a delta's author.
Is not used and not useful.

ok xsa, zinovik

Revision 1.94 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.93: +8 -8 lines
Diff to previous 1.93 (colored)

Reduce variable/function name and whitespace differences between
cvs/rcs.

OK xsa zinovik

Revision 1.93 / (download) - annotate - [select for diffs], Wed Mar 25 21:19:20 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.92: +1 -15 lines
Diff to previous 1.92 (colored)

remove unused functions, definitions and outdated comments
from the stone ages.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jun 15 04:38:52 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.91: +2 -1 lines
Diff to previous 1.91 (colored)

Support the addition of new files in branches.

ok joris

Revision 1.91 / (download) - annotate - [select for diffs], Thu Jun 12 16:17:55 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.90: +1 -10 lines
Diff to previous 1.90 (colored)

You successfully cast 'remove dead cruft'

Revision 1.90 / (download) - annotate - [select for diffs], Sun Mar 2 19:31:08 2008 UTC (16 years, 2 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.89: +1 -2 lines
Diff to previous 1.89 (colored)

rcs_errno is gone: zap rcs_errstr() and rcs_errstrs[] as well.

ok joris

Revision 1.89 / (download) - annotate - [select for diffs], Sat Mar 1 20:03:56 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.88: +1 -2 lines
Diff to previous 1.88 (colored)

goodbye rcs_errno - we didnt use you and you wont be missed

Revision 1.88 / (download) - annotate - [select for diffs], Wed Feb 27 22:34:04 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

prevent file races

ok tobias@

Revision 1.87 / (download) - annotate - [select for diffs], Sat Feb 9 14:03:20 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.86: +1 -4 lines
Diff to previous 1.86 (colored)

- always remove the additional .0 from magic branches, even when
  running the log command.

- change getlog.c so it will add any .0 for magic branches in its output
  if required


less confusing for rcs_translate_tag();

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jan 31 22:19:36 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored)

Handle magic branch numbers in OpenCVS as well.

OK joris@

Revision 1.85 / (download) - annotate - [select for diffs], Thu Jan 31 20:29:16 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.84: +2 -1 lines
Diff to previous 1.84 (colored)

add changed lines support to log and rlog (the + and - stuff)
from Pierre Riteau;

Revision 1.84 / (download) - annotate - [select for diffs], Thu Jan 10 10:06:59 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.83: +1 -2 lines
Diff to previous 1.83 (colored)

rcs_getrev is gone: zap prototype, too.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Jan 10 09:54:04 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.82: +7 -7 lines
Diff to previous 1.82 (colored)

Our keyword expansion had a big flaw, due to this construction:
if (!(mode & RCS_KWEXP_NONE))

RCS_KWEXP_NONE is defined to 0, so expansion happened always.

Left shifted all RCS_KWEXP defines and looked carefully at hard-coded values
throughout the code.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jan 10 09:39:32 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.81: +2 -1 lines
Diff to previous 1.81 (colored)

Slap in -b support for tag command.  It was missing for a full regress test
as of now.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Nov 11 10:01:41 2007 UTC (16 years, 6 months ago) by tobias
Branch: MAIN
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

Added CVS keyword "Locker". Although it is a dummy function, it's already
enough for OpenBSD's src/.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Oct 9 12:59:53 2007 UTC (16 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.79: +3 -1 lines
Diff to previous 1.79 (colored)

Added proper support for branch revisions in annotate.

OK niallo@, twice :)

Revision 1.79 / (download) - annotate - [select for diffs], Mon Sep 24 13:44:20 2007 UTC (16 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

add support to commit modified files to branches.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Sep 13 13:10:57 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.77: +4 -2 lines
Diff to previous 1.77 (colored)

Added annotate support for local and remote repositories. Behaves like
GNU cvs but is a little faster.

OK joris@, ray@, xsa@

Revision 1.77 / (download) - annotate - [select for diffs], Fri Jun 1 17:47:47 2007 UTC (16 years, 11 months ago) by niallo
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.76: +1 -2 lines
Diff to previous 1.76 (colored)

add support for local and remote branch checkout.  for example,
cvs co -rOPENBSD_3_0 works now.
along the way, simplify and rationalise code and fix a few nits.

ok joris@ xsa@ ray@

Revision 1.76 / (download) - annotate - [select for diffs], Sat May 26 20:58:36 2007 UTC (16 years, 11 months ago) by niallo
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

add support for Mdocdate rcs keyword in opencvs too.
also add check for strftime return in date keyword parsing while here.
requested by jmc@, ok ray@

Revision 1.75 / (download) - annotate - [select for diffs], Mon Feb 19 11:40:00 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Fix const inconsistencies, void pointer artithmetic and a few other
things. now gcc -Wall and lint are more happy. ok joris@ xsa@

Revision 1.74 / (download) - annotate - [select for diffs], Mon Feb 12 14:35:28 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.73: +1 -4 lines
Diff to previous 1.73 (colored)

remove unused leftovers from openrcs; OK joris@.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jan 14 23:10:56 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.72: +2 -4 lines
Diff to previous 1.72 (colored)

move things around in rcs_rev_getbuf() and rcs_rev_write_fd()
so that we do keyword expansion on-the-fly if required instead
of obtaining the revision in memory first, running over the revision
lines while expanding keywords and only then writing them to the fd
or memory buffer.

this drasticly decreases cpu usage by opencvs on very large trees (like src).

OK niallo@

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jan 13 04:18:50 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.71: +5 -1 lines
Diff to previous 1.71 (colored)

add missing prototypes for some new rcs api functions;

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 12 23:32:01 2007 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.70: +4 -2 lines
Diff to previous 1.70 (colored)

major re-work of the RCS api.  this results in 100x performance improvements in some places and much
reduced memory usage.  note that only checkout has been fully converted to use the new high-performance
functions.  other codepaths (e.g. update) still use the old method which is provided for backwards
compatibility.  we can convert the remaining slow bits over to the new api piece-by-piece.

"commit this, now" joris@
brad@ tested, too.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jan 12 17:25:33 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

complete binary support for opencvs,
adding/importing binary files now works too

partially taken from openrcs

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jun 9 14:57:13 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored)

handle `cvs tag -F'; input && OK joris@.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jun 1 20:00:52 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

major rewrite of some rcs parsing stuff:

- rework rcs_getrev() to correctly support branches
- rework rcs_translate_tag() to correctly translate given symbols or
  branches into their matching revisions
- rework rcs_rev_add() to correctly update its 'next' pointers
  and insert the new revision in the correct place on the list.
- rework rcs_head_get() to return the latest revision on the default
  branch if it has been set or the normal HEAD revision otherwise.
- no longer access the rf_head member of the RCSFILE struct manually,
  use the rcs_head_get() function which correctly returns the HEAD
  revision, there might be a default branch that has to be used.
- for now, when commiting a new revision reset the default branch.

Revision 1.67 / (download) - annotate - [select for diffs], Wed May 31 18:26:14 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored)

have rcs_translate_tag translate branches too, which
allows us to completely use branches for diffing, logging,
updating, etc..

more branches support coming up!

Revision 1.66 / (download) - annotate - [select for diffs], Tue May 30 19:16:51 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored)

look inside the Attic if a specified RCS file cannot be found
in the normal repository, and a way to identify an RCS file in
the Attic in the RCSFILE struct.
will come in handy later on.

Revision 1.65 / (download) - annotate - [select for diffs], Mon May 29 07:15:52 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

add rcs_translate_tag which will translate a specified
revision or symbol given to us on the command line into
the matching revision in the RCS file (if any);

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 28 10:14:59 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

add rf_dead field to RCSFILE which can tell us
if an RCSFILE is dead, will come in usefull later in commands.

Revision 1.63 / (download) - annotate - [select for diffs], Sun May 28 01:24:28 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.62: +4 -1 lines
Diff to previous 1.62 (colored)

enable merging on update. if your file in your working copy
has been modified by yourself and there is a newer revision
we try and merge them together.

if the merge fails and has conflicts it will mark them inside
the file, you will need to resolve these by hand first before
you will be able to commit your modified file.

works transparent with gnu cvs, as it is suppose to.

Revision 1.62 / (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.61: +5 -12 lines
Diff to previous 1.61 (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.61 / (download) - annotate - [select for diffs], Fri Apr 14 22:33:15 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.60: +3 -1 lines
Diff to previous 1.60 (colored)

- swap a hack for a slightly nicer hack using a global variable.  this avoids
adding a really nasty hack to make some upcoming rlog fixes from joris work.

ok joris@

Revision 1.60 / (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.59: +5 -1 lines
Diff to previous 1.59 (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.59 / (download) - annotate - [select for diffs], Thu Apr 13 19:16:15 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

fix -z option for openrcs, this was broken by xsa
when he yanked the code out of rcs.c and placed it in rcstime.c.

	struct tm ltb, *tb;
	tb = &ltb;
	return (tb);

isn't really the most perfect idiom to return a value to the caller, now is it?

as a bonus -z for rlog now works too.
okay niallo@

Revision 1.58 / (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.57: +2 -2 lines
Diff to previous 1.57 (colored)

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

Revision 1.57 / (download) - annotate - [select for diffs], Thu Mar 30 23:06:25 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.56: +2 -3 lines
Diff to previous 1.56 (colored)

first part of supporting branches in openrcs. right now we can only
check them out. commit is not working yet, but will be soon.

tested by myself and ray@
okay ray@

Revision 1.56 / (download) - annotate - [select for diffs], Thu Mar 30 06:11:03 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.55: +2 -1 lines
Diff to previous 1.55 (colored)

Add rlog -r[REV1][:][REV2] support

From Pierre-Yves Ritschard.

OK niallo@

Revision 1.55 / (download) - annotate - [select for diffs], Thu Mar 30 06:07:35 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

 - Comment fixes.
 - int rcsnum_cpy() -> void rcsnum_cpy().
 - Check for overflow in rcsnum_cpy().

OK niallo@

Revision 1.54 / (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.53: +2 -1 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Mon Mar 27 15:26:12 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

rcs_comment_set() will never return non-zero; change its return type to void.
OK ray@.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Mar 27 07:14:13 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

rcs_desc_set() will never return non-zero; change its return type to void.
OK niallo@.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Mar 24 03:22:03 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Fix RCS_KWEXP_INVAL() macro.

Pointed out by Theo.

Okay xsa@.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Mar 23 02:21:33 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.49: +2 -5 lines
Diff to previous 1.49 (colored)

Use TAILQ_HEAD() macro instead of custom struct definition.

From Pierre-Yves Ritschard.

OK xsa@

Revision 1.49 / (download) - annotate - [select for diffs], Thu Mar 9 10:56:33 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.48: +4 -1 lines
Diff to previous 1.48 (colored)

move joris' timezone support into rcstime.c; more work to be done there.
OK joris@.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Mar 7 01:40:52 2006 UTC (18 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.47: +3 -1 lines
Diff to previous 1.47 (colored)

-z support for RCS;

Revision 1.47 / (download) - annotate - [select for diffs], Sun Mar 5 14:18:56 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

our deltatexts were sometimes different from gnu.  rcs_getrev() was
unconditionally doing keyword expansion, even when this wasn't what we
wanted e.g. in checkout_rev() and cvs_checkout_rev(). so:

- change semantics of rcs_getrev() to not do keyword expansion
- add an rcs.c api function rcs_kwexp_buf() which does this
- change both checkout_rev() and cvs_checkout_rev() to use this function.

eyeballed by xsa, joris and Ray Lai

Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 9 08:08:56 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.45: +26 -1 lines
Diff to previous 1.45 (colored)

- move rcs_kw-related data into rcs.h and de-static the keyword array. this
  allows access from outside rcs.c and will be needed for upcoming features
  in ci(1).

ok joris@ xsa@

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jan 2 09:42:20 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.44: +1 -6 lines
Diff to previous 1.44 (colored)

more includes cleanup;

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 30 16:53:55 2005 UTC (18 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

- zap unused 'rf_ref' member of RCSFILE structure.

spotted by joris@

Revision 1.43 / (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.42: +16 -10 lines
Diff to previous 1.42 (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.42 / (download) - annotate - [select for diffs], Thu Dec 8 18:56:10 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

complete and correct rcs locking functionality,
it was only done partially and as a bonus, completely wrong.

seriously guys what was up with that?

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 3 15:31:53 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored)

todd@ reminds me:

If you 'vi file.c' and change stuff, then 'make depend && make' you'll
have a file.o file most definately more recent than the latest committed
version of file.c.

Then, if you rm file.c, and cvs update file.c, if 'file.c' is set to the
timestamp of the last committed version, a subsequent 'make' will not
rebuild the .o file.

to fix this we simply use the current timestamp when updating files.
thanks todd@!

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 3 01:02:09 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.39: +6 -1 lines
Diff to previous 1.39 (colored)

add very basic support for the following stuff:

- checkout in local mode (example: /cvs)
- update in local and server mode (example: /cvs and user@host:/cvs)
- import in local and server mode (example: /cvs and user@host:/cvs)

what remains to be done:

- not all options are supported yet, and update cannot pick up newly
  added files yet. these things are pending and will be commited
  real soon.

- checkout only works locally right now.

- fix rcs parsing code so that we don't fucking hog 100% cpu
  on really BIG BIG BIG ass trees.

mainly tested by pedro@ and myself, thanks a lot pedro!

"go for it" niallo@

Revision 1.39 / (download) - annotate - [select for diffs], Thu Dec 1 18:22:09 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.38: +38 -37 lines
Diff to previous 1.38 (colored)

rcs_findrev() is not static anymore; align protos while here;
OK joris@ niallo@.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Nov 2 20:32:44 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

changes from Venice:

- instead of using lots of individual flag variables, use a single int and
  bitwise operations on it. while this saves memory, really it saves code
  space and reduces complexity. checkout_rev() and checkout_state() in
  particular benefit from these changes since their parameters where growing
  really long.

- implement `-s' option in co

- implement `-M' option in ci

"I like this, go for it" joris@

Revision 1.37 / (download) - annotate - [select for diffs], Sat Oct 29 19:05:50 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

- add two new functions to RCS api: rcs_state_set() and rcs_state_check()
- use these two new functions to implement -s<state> option in ci

ok joris@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Oct 22 17:32:57 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.35: +1 -3 lines
Diff to previous 1.35 (colored)

diff3 support, needed for merging files together;

"go for it" niallo@

Revision 1.35 / (download) - annotate - [select for diffs], Sat Oct 15 22:56:03 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

- add username parameter to rcs_rev_add(), needed to implement at least
  `ci -wusername'.

ok joris@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Oct 10 23:37:15 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

add rcs_rev_setlog() in the RCS api; used for setting log messages
of a revision to a specific value;

ok niallo@

Revision 1.33 / (download) - annotate - [select for diffs], Mon Oct 10 13:06:24 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

add rcsnum_dec() api call, decreases a revision number by one.
ok niallo@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Oct 7 23:59:56 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

basic `ci' support is here! more coming soon.

combined effort with joris.

ok joris@

Revision 1.31 / (download) - annotate - [select for diffs], Tue Aug 2 11:48:56 2005 UTC (18 years, 9 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

handle magic branch numbers.

ok xsa@, jfb@

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 25 11:28:59 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.29: +132 -132 lines
Diff to previous 1.29 (colored)

KNF; mostly spaces vs. tabs; ok joris@ jfb@.

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 26 01:45:54 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.28: +5 -2 lines
Diff to previous 1.28 (colored)

add a couple of functions to go from branch numbers to revisions and
vice versa, and fix RCSNUM_ISBRANCH()

Revision 1.28 / (download) - annotate - [select for diffs], Wed May 25 21:59:16 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.27: +1 -5 lines
Diff to previous 1.27 (colored)

unused code

Revision 1.27 / (download) - annotate - [select for diffs], Wed May 25 21:32:31 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

modify rcs_rev_add() to accept a time_t argument to explicitly set
the revision's timestamp (-1 is equivalent to using the current time)

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 25 10:23:57 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

split cvs_admin_file() into the local and remote versions and do
some cleanup

Revision 1.25 / (download) - annotate - [select for diffs], Wed May 25 07:15:16 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

add cvs_comment_lookup() and a suffix -> comment leader lookup table
to determine the appropriate comment leader for a file

Revision 1.24 / (download) - annotate - [select for diffs], Wed May 25 06:42:41 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.23: +7 -2 lines
Diff to previous 1.23 (colored)

add the RCS_ERR_ERRNO code to indicate that the actual error code is
in errno, fix cvs_errstr() to return the appropriate string, and
sprinkle some error setting where appropriate

Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 20 23:11:30 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)

check the validity of tag names passed to the tag command, and print
an abort message if the tag is invalid.  also, match gnu cvs behaviour
with regards to command usage output on usage errors.

ok joris

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 19 19:22:31 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.21: +4 -1 lines
Diff to previous 1.21 (colored)

add rcs_sym_check() to check the validity of an RCS symbol and
sprinkle some in the other symbol functions

Revision 1.21 / (download) - annotate - [select for diffs], Wed Apr 13 15:50:49 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.20: +1 -7 lines
Diff to previous 1.20 (colored)

cache leftovers

Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 11 20:32:56 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

modify handling of RCS delta texts so we can handle arbitrary binary
data

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 7 22:08:57 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (colored)

* reverse symbol list order
* allow retrieval and setting of the head revision number

Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 7 20:50:22 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.17: +12 -13 lines
Diff to previous 1.17 (colored)

Perform proper escaping of the @ character in all RCS strings when
writing the output to the file.

ok joris@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 6 19:12:08 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.16: +12 -2 lines
Diff to previous 1.16 (colored)

* allow for creation and removal of RCS locks
* add rcs_tag_resolve() to resolve a branch, tag or revision easily

Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 13 22:07:49 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.15: +23 -21 lines
Diff to previous 1.15 (colored)

support for the optional `branch' keyword, which is used to set the
default branch for an RCS file

Revision 1.15 / (download) - annotate - [select for diffs], Sat Mar 5 18:25:30 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

add functions to retrieve and set the comment leader for an RCS
file

Revision 1.14 / (download) - annotate - [select for diffs], Sat Mar 5 05:58:39 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.13: +11 -0 lines
Diff to previous 1.13 (colored)

add RCS error codes and a global variable to hold the last error
and make the code less verbose at the same time

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 5 05:00:56 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

unbreak the RCS_KWEXP_INVAL() macro

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 5 03:30:29 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.11: +9 -1 lines
Diff to previous 1.11 (colored)

functions to manage the locking mode of RCS file

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 4 18:21:00 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.10: +26 -16 lines
Diff to previous 1.10 (colored)

add real support for the `access' keyword, both in parsing and
output; rcs_access_add() can be used to add a new login name to
the access list, and rcs_access_remove() to remove an entry

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 2 04:19:34 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.9: +13 -11 lines
Diff to previous 1.9 (colored)

- rcs_write() is now static
- when setting a new expansion mode, do not attempt to free the
  previous expansion mode if the pointer is NULL
- add a bunch of new functions:
   * rcs_sym_remove() to remove a symbol
   * rcs_sym_getrev() to retrieve the revision number of a symbol
   * rcs_desc_{s,g}et() to manipulate an RCS file's description

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 27 00:22:08 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.8: +25 -19 lines
Diff to previous 1.8 (colored)

Many improvements to the RCS support:

- make it possible to specify creation and the file mode
  in rcs_open()
- implicitly write the contents to disk on rcs_close() if the
  RCS handle has been changed
- fix a bug in the output of the `expand' keyword
- add functions to retrieve and modify the expansion mode
- rcs_parse() shouldn't be available to the outside
- empty string instead of `(null)' if there is no description

ok Joris

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 25 20:05:41 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

add rcsnum_parse() to simplify the most common case

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 13 20:50:57 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

add rcs_kflag_usage() to display the various keyword expansion modes
supported by the -k argument

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 12 19:23:27 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.5: +20 -6 lines
Diff to previous 1.5 (colored)

add rcs_kflag_get() to validate kflags

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 3 22:10:12 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

limit the maximum length of RCS numbers to 64 nums and avoid
potential integer overflow in case of ridiculously large RCSNUMs

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 16 17:16:18 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Add rcs_gethead() to easily retrieve the head revision of an RCS
file.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 15 05:09:06 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.2: +6 -1 lines
Diff to previous 1.2 (colored)

we don't need a separate header for 4 function prototypes, move
them in rcs.h

Revision 1.2 / (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.1: +9 -13 lines
Diff to previous 1.1 (colored)

less whitespace, more pretty.  ok jfb

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.