OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.59 / (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.58: +4 -4 lines
Diff to previous 1.58 (colored)

fix const related warnings; ok millert@

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

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

OK millert@

Revision 1.57 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored)

Remove xfree(), like already done for RCS. From Michael W Bombardieri,
ok mmcc

Revision 1.56 / (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_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.55: +5 -3 lines
Diff to previous 1.55 (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.55 / (download) - annotate - [select for diffs], Wed Jan 8 13:23:55 2014 UTC (10 years, 4 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

unsigned char for ctype. ok deraadt

Revision 1.54 / (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_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.53: +3 -19 lines
Diff to previous 1.53 (colored)

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

Revision 1.53 / (download) - annotate - [select for diffs], Thu May 22 07:03:02 2008 UTC (16 years ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, 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, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.52: +10 -4 lines
Diff to previous 1.52 (colored)

correctly deal with non-zero depths specified in rcsnum_cmp();

from Stefan Sperling

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

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

Revision 1.51 / (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.50: +2 -5 lines
Diff to previous 1.50 (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.50 / (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.49: +19 -1 lines
Diff to previous 1.49 (colored)

Handle magic branch numbers in OpenCVS as well.

OK joris@

Revision 1.49 / (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.48: +17 -1 lines
Diff to previous 1.48 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Sun Dec 9 14:02:56 2007 UTC (16 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

Fix for an off-by-one.

OK fgsch@

Revision 1.47 / (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.46: +15 -1 lines
Diff to previous 1.46 (colored)

add support to commit modified files to branches.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Sep 4 17:57:41 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Replaced strlen() with sizeof() - 1 when #define'd strings are used.

OK ray@

Revision 1.45 / (download) - annotate - [select for diffs], Tue May 29 00:19:10 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.44: +4 -10 lines
Diff to previous 1.44 (colored)

Since xrealloc dies on failure it is safe to directly assign to the
original pointer.  Theo agrees, and so does the rest of the tree
(ssh, etc. all do this already).

Saves a bunch of variables and assignments.

OK niallo@

Revision 1.44 / (download) - annotate - [select for diffs], Sat May 26 00:36:04 2007 UTC (16 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

More comment typos from Diego Casati. Including winners like funtion, allmost,
oustside, seqencer, toghether, nessissary, etc.

Revision 1.43 / (download) - annotate - [select for diffs], Sat May 12 17:33:05 2007 UTC (17 years ago) by ray
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Change 0x30 to more readable '0'.

OK xsa@.

Revision 1.42 / (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.41: +3 -4 lines
Diff to previous 1.41 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.41 / (download) - annotate - [select for diffs], Wed Feb 21 04:09:54 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
Changes since 1.40: +3 -6 lines
Diff to previous 1.40 (colored)

Replace a manual xrealloc with rcsnum_setsize.

From Charles Longeau <chl at tuxfamily dot org>.

OK joris@.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Nov 13 18:42:40 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.39: +9 -11 lines
Diff to previous 1.39 (colored)

Check strlcpy/strlcat return values; from usr.bin/rcs/rcsnum.c

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 27 03:28:36 2006 UTC (17 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored)

Pull in improper memory allocation from RCS:

> Not were we allocating memory for a pointer array, it wasn't even for
> the right variable!  Fixes make regress with MALLOC_OPTIONS=PR.
>
> Found by and fix worked on with Joris.

Revision 1.38 / (download) - annotate - [select for diffs], Wed May 31 18:24:55 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.37: +22 -2 lines
Diff to previous 1.37 (colored)

be smarter when comparing 2 revisions to each other.

Revision 1.37 / (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.36: +10 -5 lines
Diff to previous 1.36 (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.36 / (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.35: +4 -7 lines
Diff to previous 1.35 (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.35 / (download) - annotate - [select for diffs], Fri Apr 14 02:49:44 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

spacing

Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 14 02:45:35 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.33: +8 -8 lines
Diff to previous 1.33 (colored)

remove a metric buttload of excessive ()
no binary change; ok ray

Revision 1.33 / (download) - annotate - [select for diffs], Thu Apr 6 12:12:07 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.32: +4 -9 lines
Diff to previous 1.32 (colored)

rcsnum_setsize() will never return non-zero; change its return type to void.

Revision 1.32 / (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.31: +11 -11 lines
Diff to previous 1.31 (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.31 / (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.30: +2 -1 lines
Diff to previous 1.30 (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.30 / (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.29: +7 -11 lines
Diff to previous 1.29 (colored)

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

OK niallo@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 28 02:13:44 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

Today is Integer Overflow Prevention Day:
 - Sync xmalloc.? with ssh versions.
 - Change all xrealloc() calls to new API.

``I really like this.'' niallo@

Revision 1.28 / (download) - annotate - [select for diffs], Sat Mar 18 03:33:55 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Change code to match comments, fixing potential off-by-one error.
According to the comments, the lowest number should be 1.

not okay, then okay niallo@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 15 05:05:35 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

remove some bizzare idioms; ok ray

Revision 1.26 / (download) - annotate - [select for diffs], Sat Mar 11 22:44:11 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.25: +16 -4 lines
Diff to previous 1.25 (colored)

- implement GNU-compatible handling of revisions specified as single
digits.  e.g. ci -l4 or ci -u5 will work like GNU now.

ok joris@

Revision 1.25 / (download) - annotate - [select for diffs], Sat Mar 11 06:28:49 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Fix rcsnum_tostr() description.

ok joris

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 28 14:09:34 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.23: +3 -5 lines
Diff to previous 1.23 (colored)

- don't segfault on rcsnum overflow.

ok joris@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 3 11:06:55 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

knf;

Revision 1.22 / (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.21: +2 -7 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Fri Dec 30 17:51:01 2005 UTC (18 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.20: +10 -10 lines
Diff to previous 1.20 (colored)

knf

Revision 1.20 / (download) - annotate - [select for diffs], Tue Dec 27 16:08:26 2005 UTC (18 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.19: +22 -4 lines
Diff to previous 1.19 (colored)

- optimise rcsnum_tostr(). we call this function a LOT and using multiple
  snprintf()s in it is SLOW.

second of a few important performance improvements.

ok joris@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 12 17:47:03 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.18: +4 -10 lines
Diff to previous 1.18 (colored)

rcsnum_alloc() and rcsnum_cpy() no longer can fail, so don't
bother checking return values for failure.

ok xsa@

Revision 1.18 / (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.17: +10 -31 lines
Diff to previous 1.17 (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.17 / (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.16: +16 -1 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 19 15:45:16 2005 UTC (18 years, 8 months ago) by niallo
Branch: MAIN
Changes since 1.15: +5 -1 lines
Diff to previous 1.15 (colored)

Add preprocessor directives needed for usr.bin/rcs programs to compile.

ok joris@

Revision 1.15 / (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.14: +47 -1 lines
Diff to previous 1.14 (colored)

handle magic branch numbers.

ok xsa@, jfb@

Revision 1.14 / (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.13: +7 -7 lines
Diff to previous 1.13 (colored)

KNF;

Revision 1.13 / (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.12: +2 -2 lines
Diff to previous 1.12 (colored)

KNF;

Revision 1.12 / (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.11: +2 -2 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (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.10: +95 -13 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Wed Apr 13 16:25:02 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.9: +6 -2 lines
Diff to previous 1.9 (colored)

make rcsnum_tostr() return an empty string if the RCSNUM is NULL

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 5 05:58:39 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.8: +5 -4 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Fri Feb 25 20:32:48 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

- switch to rcsnum_parse() where appropriate
- make rcsnum_parse() fail if it encounters an invalid character

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

add rcsnum_parse() to simplify the most common case

Revision 1.6 / (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.5: +26 -9 lines
Diff to previous 1.5 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 10 19:19:11 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

proper typecast to get rid of another warning

Revision 1.4 / (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.3: +11 -17 lines
Diff to previous 1.3 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 29 17:47:50 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.2: +2 -9 lines
Diff to previous 1.2 (colored)

Do not error out when calling rcsnum_aton() on the string "0", which is
a valid RCSNUM

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 14 05:08:20 2004 UTC (19 years, 10 months ago) by vincent
Branch: MAIN
Changes since 1.1: +7 -3 lines
Diff to previous 1.1 (colored)

fix memleak on rcsnum reuse
initialize new members to 0

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.