OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.225 / (download) - annotate - [select for diffs], Fri Aug 11 04:44:28 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.224: +2 -2 lines
Diff to previous 1.224 (colored)

When used by itself, replace use of the old BSD st_mtimespec.tv_sec
member in struct stat with for-all-time st_mtime member.

ok millert@

Revision 1.224 / (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_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, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.223: +4 -4 lines
Diff to previous 1.223 (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.223 / (download) - annotate - [select for diffs], Mon Nov 2 16:45:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.222: +4 -7 lines
Diff to previous 1.222 (colored)

Allow rcsnum_free and buf_free to accept NULL and remove various NULL
checks that are now unnecessary, from Michael W Bombardieri. ok millert

Revision 1.222 / (download) - annotate - [select for diffs], Sat Sep 5 09:38:23 2015 UTC (8 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.221: +2 -2 lines
Diff to previous 1.221 (colored)

Avoid unintended problems with operator precedence when doing an
assignment and comparison.

ok deraadt@ looks correct millert@ jung@

Revision 1.221 / (download) - annotate - [select for diffs], Wed Jun 17 08:13:31 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.220: +2 -3 lines
Diff to previous 1.220 (colored)

Remove NULL check before free; Fritjof Bornebusch.

Revision 1.220 / (download) - annotate - [select for diffs], Sat Jun 13 20:15:21 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.219: +12 -18 lines
Diff to previous 1.219 (colored)

Convert xfree to free. From Fritjof Bornebusch. ok deraadt

Revision 1.219 / (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.218: +2 -2 lines
Diff to previous 1.218 (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.218 / (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.217: +4 -4 lines
Diff to previous 1.217 (colored)

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

Revision 1.217 / (download) - annotate - [select for diffs], Mon May 19 19:42:24 2014 UTC (10 years ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.216: +3 -2 lines
Diff to previous 1.216 (colored)

Plug a small memory leak: if we pass checkin_init/checkin_update
a revision thru pb.newrev, it will not be freed.  From Fritjof
Bornebusch, no objections from tech@

Revision 1.216 / (download) - annotate - [select for diffs], Sun Oct 27 18:31:24 2013 UTC (10 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.215: +3 -4 lines
Diff to previous 1.215 (colored)

If a constant string needs a name, use a static const array instead of a
pointer or non-const array, as that minimizes the symbols, maximizes the
placement into read-only memory, and avoids warnings from gcc -Wformat=2
when they're used as format strings.

ok deraadt@

Revision 1.215 / (download) - annotate - [select for diffs], Wed Apr 17 00:20:52 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.214: +2 -2 lines
Diff to previous 1.214 (colored)

remove time_t cast not needed; ok guenther

Revision 1.214 / (download) - annotate - [select for diffs], Fri Jan 18 11:21:09 2013 UTC (11 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.213: +4 -2 lines
Diff to previous 1.213 (colored)

Document $OpenBSD$ and teach ci's -k option to parse it too

ok deraadt@

Revision 1.213 / (download) - annotate - [select for diffs], Thu Jul 14 16:31:34 2011 UTC (12 years, 10 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.212: +2 -2 lines
Diff to previous 1.212 (colored)

str is an optional argument to -t; if no argument is given, this
option is ignored (for compatibility reasons).

ok jmc@

Revision 1.212 / (download) - annotate - [select for diffs], Wed Apr 20 19:34:16 2011 UTC (13 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.211: +1 -7 lines
Diff to previous 1.211 (colored)

Remove some unneeded includes and dead code, from Michael W Bombardieri.

ok jasper xsa

Revision 1.211 / (download) - annotate - [select for diffs], Wed Sep 8 15:15:50 2010 UTC (13 years, 8 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.210: +1 -5 lines
Diff to previous 1.210 (colored)

Set rcs_suffixes to default value on initialization.

ok ray zinovik

Revision 1.210 / (download) - annotate - [select for diffs], Fri Jul 30 21:47:18 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.209: +4 -4 lines
Diff to previous 1.209 (colored)

Check date_parse return values.

OK xsa

Revision 1.209 / (download) - annotate - [select for diffs], Wed Jul 28 09:07:11 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.208: +5 -9 lines
Diff to previous 1.208 (colored)

Make BUFs autoextend by default.  This was already done in OpenCVS
a while ago.

OK zinovik nicm

Revision 1.208 / (download) - annotate - [select for diffs], Fri Jul 23 23:59:32 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.207: +2 -1 lines
Diff to previous 1.207 (colored)

Plug mem leak.

OK nicm

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

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

OK xsa zinovik

Revision 1.206 / (download) - annotate - [select for diffs], Thu Jul 22 17:49:18 2010 UTC (13 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.205: +2 -3 lines
Diff to previous 1.205 (colored)

Fix the "no changes" detection when a file has RCS keywords.
This is consistent with GNU RCS.  Also g/c an unused variable.
OK xsa@ nicm@

Revision 1.205 / (download) - annotate - [select for diffs], Wed Feb 25 23:16:20 2009 UTC (15 years, 2 months ago) by ray
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.204: +2 -2 lines
Diff to previous 1.204 (colored)

Checking if a file is ASCII should only be done when diffing, because
the non-ASCII characters could be printed to the screen.  For
checking in files, checking out files, merging files, and removing
revisions of files, we do so regardless of whether the files are
ASCII or binary.

Fixes PR6031.

OK joris and deraadt.

Revision 1.204 / (download) - annotate - [select for diffs], Sat Mar 22 21:15:54 2008 UTC (16 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.203: +2 -1 lines
Diff to previous 1.203 (colored)

Fix the freeing of two uninitialized strings.  OK niallo@

Revision 1.203 / (download) - annotate - [select for diffs], Thu Sep 6 19:38:47 2007 UTC (16 years, 8 months ago) by niallo
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.202: +2 -2 lines
Diff to previous 1.202 (colored)

strictly check rcsnum_cmp() return against -1.
fixes a bug in ci -r

from Pierre Riteau <pierre.riteau at free.fr> via ray@

Revision 1.202 / (download) - annotate - [select for diffs], Tue Jul 3 00:56:23 2007 UTC (16 years, 10 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.201: +2 -2 lines
Diff to previous 1.201 (colored)

Rename rcs_diffreg() to diffreg().

OK joris@

Revision 1.201 / (download) - annotate - [select for diffs], Sat Jun 30 08:23:49 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.200: +7 -7 lines
Diff to previous 1.200 (colored)

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

Revision 1.200 / (download) - annotate - [select for diffs], Tue Jun 26 02:21:02 2007 UTC (16 years, 10 months ago) by niallo
Branch: MAIN
Changes since 1.199: +36 -22 lines
Diff to previous 1.199 (colored)

allow ci -N<tag name> even when no changes.  mimics GNU behaviour.

based on a diff from Tero Koskinen <tero.koskinen at iki.fi>
ok joris@

Revision 1.199 / (download) - annotate - [select for diffs], Tue Jun 12 06:09:38 2007 UTC (16 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.198: +6 -2 lines
Diff to previous 1.198 (colored)

Allow checkin without locking (after rcs -U). Matches GNU's behaviour.
Problem reported by itojun@. Tests itojun@; OK niallo@.

Revision 1.198 / (download) - annotate - [select for diffs], Thu Apr 26 21:48:37 2007 UTC (17 years ago) by sobrado
Branch: MAIN
Changes since 1.197: +4 -4 lines
Diff to previous 1.197 (colored)

replace tabs by spaces in the message returned by usage()

ok by jmc@, niallo@, and xsa@

Revision 1.197 / (download) - annotate - [select for diffs], Thu Mar 15 13:05:23 2007 UTC (17 years, 2 months ago) by bluhm
Branch: MAIN
Changes since 1.196: +29 -24 lines
Diff to previous 1.196 (colored)

When commiting multiple files with ci, the flags from the previous
files affected the later ones.

ok niallo@ xsa@

Revision 1.196 / (download) - annotate - [select for diffs], Sat Mar 3 21:07:23 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.195: +2 -2 lines
Diff to previous 1.195 (colored)

make this modern C

Revision 1.195 / (download) - annotate - [select for diffs], Tue Feb 27 07:59:13 2007 UTC (17 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.194: +10 -2 lines
Diff to previous 1.194 (colored)

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

Revision 1.194 / (download) - annotate - [select for diffs], Thu Feb 22 19:11:13 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.193: +6 -1 lines
Diff to previous 1.193 (colored)

If a ,suffix file is given as an arg to ci and co, strip it. Avoids
potential disasters.  Initial diff from niallo@, ok niallo@ joris@

Revision 1.193 / (download) - annotate - [select for diffs], Wed Feb 14 16:07:29 2007 UTC (17 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.192: +2 -2 lines
Diff to previous 1.192 (colored)

sync some manual page entries with actual usage.

ok jmc@, xsa@
mostly From: Igor Sobrado <igor at string1.ciencias.uniovi.es>

Revision 1.192 / (download) - annotate - [select for diffs], Mon Jan 15 14:34:54 2007 UTC (17 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.191: +6 -1 lines
Diff to previous 1.191 (colored)

When checking in multiple files, if no log message is entered for
a file, don't prompt the user to reuse the (non-existent) log
message for the next.  Makes ci behave like the GNU version.
OK xsa@, joris@, niallo@

Revision 1.191 / (download) - annotate - [select for diffs], Sat Dec 23 21:08:01 2006 UTC (17 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.190: +2 -2 lines
Diff to previous 1.190 (colored)

Spelling.

'preceeding' -> 'preceding'
'preceeds' -> 'precedes'
'preceeded' -> 'preceded'

Revision 1.190 / (download) - annotate - [select for diffs], Sat Nov 18 20:18:28 2006 UTC (17 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.189: +2 -2 lines
Diff to previous 1.189 (colored)

- update comment

Revision 1.189 / (download) - annotate - [select for diffs], Thu Nov 9 21:47:52 2006 UTC (17 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.188: +16 -14 lines
Diff to previous 1.188 (colored)

Simplify stripping of write bits from file mode.
Add support for reusing the checkin message for multiple files, ala GNU
Fix the message when you abort a checkout and the file was not writable.
OK joris@ niallo@

Revision 1.188 / (download) - annotate - [select for diffs], Wed Sep 27 06:26:35 2006 UTC (17 years, 7 months ago) by ray
Branch: MAIN
Changes since 1.187: +4 -4 lines
Diff to previous 1.187 (colored)

Add and correct comments, spacing.

OK niallo@.

Revision 1.187 / (download) - annotate - [select for diffs], Thu Sep 21 15:30:07 2006 UTC (17 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.186: +2 -2 lines
Diff to previous 1.186 (colored)

Add support to rcsdiff for all the other diff flags that
are pertinent to files (not directories) and that do not
conflict with rcsdiff-specific flags.  OK xsa@

Revision 1.186 / (download) - annotate - [select for diffs], Wed Aug 23 20:28:47 2006 UTC (17 years, 9 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.185: +3 -3 lines
Diff to previous 1.185 (colored)

use the correct variable in error and warning messages

Revision 1.185 / (download) - annotate - [select for diffs], Wed Aug 16 07:39:15 2006 UTC (17 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.184: +9 -5 lines
Diff to previous 1.184 (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.184 / (download) - annotate - [select for diffs], Wed Aug 2 05:16:18 2006 UTC (17 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.183: +4 -16 lines
Diff to previous 1.183 (colored)

strlcpy/strlcat overload made deraadt@ sick; change to xasprintf.

OK niallo@

Revision 1.183 / (download) - annotate - [select for diffs], Wed Aug 2 03:18:40 2006 UTC (17 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.182: +81 -52 lines
Diff to previous 1.182 (colored)

Fix a lot of buffer overflows and make the code more binary safe.
Also reduce a lot of redundant for() loops.

OK niallo@

Revision 1.182 / (download) - annotate - [select for diffs], Thu Jul 27 02:57:17 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.181: +2 -4 lines
Diff to previous 1.181 (colored)

unused variable

Revision 1.181 / (download) - annotate - [select for diffs], Sat Jul 8 09:25:44 2006 UTC (17 years, 10 months ago) by ray
Branch: MAIN
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored)

Remove file mode argument from {cvs|rcs}_buf_write_stmp().  We
always set the temporary file to mode 600, which is already done
by mkstemp().

OK joris@ and xsa@ over a month ago.

Revision 1.180 / (download) - annotate - [select for diffs], Sat Jun 3 03:05:10 2006 UTC (17 years, 11 months ago) by niallo
Branch: MAIN
Changes since 1.179: +14 -35 lines
Diff to previous 1.179 (colored)

- correctly handle binary files; say bye bye to using c strings for deltatexts.

"slap it in" joris@

Revision 1.179 / (download) - annotate - [select for diffs], Fri Jun 2 19:10:23 2006 UTC (17 years, 11 months ago) by david
Branch: MAIN
Changes since 1.178: +2 -2 lines
Diff to previous 1.178 (colored)

various spelling fixes

Revision 1.178 / (download) - annotate - [select for diffs], Fri Jun 2 18:04:33 2006 UTC (17 years, 11 months ago) by niallo
Branch: MAIN
Changes since 1.177: +2 -1 lines
Diff to previous 1.177 (colored)

- at end of checkin_main loop, reset pb.newrev.  fixes a problem with checkin
  of multiple files.

reported by fgsch@

ok joris@

Revision 1.177 / (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.176: +6 -6 lines
Diff to previous 1.176 (colored)

Plug more memory leaks.

OK joris@

Revision 1.176 / (download) - annotate - [select for diffs], Mon May 29 02:58:16 2006 UTC (17 years, 11 months ago) by niallo
Branch: MAIN
Changes since 1.175: +3 -3 lines
Diff to previous 1.175 (colored)

- zap unrequired casts for rcs_buf_release().

Revision 1.175 / (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.174: +3 -15 lines
Diff to previous 1.174 (colored)

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

OK joris@

Revision 1.174 / (download) - annotate - [select for diffs], Wed May 17 19:37:40 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored)

fix printf's

Revision 1.173 / (download) - annotate - [select for diffs], Thu May 11 08:24:24 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.172: +9 -4 lines
Diff to previous 1.172 (colored)

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

Revision 1.172 / (download) - annotate - [select for diffs], Wed May 10 01:10:23 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.171: +2 -2 lines
Diff to previous 1.171 (colored)

Remove (size_t) casts on integer constants.

We should not cover up lint's shortcomings, especially if they no
longer exist.

``This is definately good.'' niallo@.

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

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

OK xsa@.

Revision 1.170 / (download) - annotate - [select for diffs], Mon May 8 16:56:40 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.169: +3 -2 lines
Diff to previous 1.169 (colored)

check for rcs_diffreg() return value; OK ray@.

Revision 1.169 / (download) - annotate - [select for diffs], Fri May 5 01:29:59 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.168: +7 -7 lines
Diff to previous 1.168 (colored)

o GNU ci returns 0 when a file is reverted (co -l file; ci file).
o Don't unlock file after revert.
o Fix spelling.

Passes extra tests in GNU rcstest.

OK niallo@.

Revision 1.168 / (download) - annotate - [select for diffs], Thu May 4 07:06:58 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.167: +8 -8 lines
Diff to previous 1.167 (colored)

finish work wrt TMPDIR; use xasprintf() to simplify code while in there;
"looks fine" ray@.

Revision 1.167 / (download) - annotate - [select for diffs], Sat Apr 29 06:32:00 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.166: +35 -53 lines
Diff to previous 1.166 (colored)

o Simplify ci by using strchr and strcspn instead of custom loops.
o Search for the ending `$' until the end of the line instead of
  the end of the string.

OK niallo@ and xsa@, possibly joris@.

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

Check return values for all strlcpy, and strlcat calls.

OK xsa@ and probably others.

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

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

OK xsa@ and jmc@.

Revision 1.164 / (download) - annotate - [select for diffs], Sat Apr 29 04:59:48 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.163: +3 -3 lines
Diff to previous 1.163 (colored)

Make ci store gmtime instead of localtime in RCS files, like GNU.

OK xsa@

Revision 1.163 / (download) - annotate - [select for diffs], Wed Apr 26 21:55:22 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.162: +11 -15 lines
Diff to previous 1.162 (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.162 / (download) - annotate - [select for diffs], Wed Apr 26 02:55:13 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.161: +22 -22 lines
Diff to previous 1.161 (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.161 / (download) - annotate - [select for diffs], Tue Apr 25 13:55:49 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.160: +2 -2 lines
Diff to previous 1.160 (colored)

quote strings consistently.

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

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

Revision 1.159 / (download) - annotate - [select for diffs], Tue Apr 25 07:57:10 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.158: +4 -4 lines
Diff to previous 1.158 (colored)

style;

Revision 1.158 / (download) - annotate - [select for diffs], Mon Apr 24 21:30:47 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.157: +33 -21 lines
Diff to previous 1.157 (colored)

prevent a race by keeping an fd for the workfile around until
we are finished with it.

first one of many to come...
okay ray@

Revision 1.157 / (download) - annotate - [select for diffs], Mon Apr 24 04:51:57 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.156: +12 -46 lines
Diff to previous 1.156 (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.156 / (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.155: +3 -2 lines
Diff to previous 1.155 (colored)

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

Revision 1.155 / (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.154: +23 -31 lines
Diff to previous 1.154 (colored)

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

Revision 1.154 / (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.153: +13 -11 lines
Diff to previous 1.153 (colored)

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

Revision 1.153 / (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.152: +10 -43 lines
Diff to previous 1.152 (colored)

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

OK joris@

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

/* FALLTHROUGH */ to share code between the -N and -n flags.

OK joris@

Revision 1.151 / (download) - annotate - [select for diffs], Tue Apr 18 02:49:31 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.150: +10 -3 lines
Diff to previous 1.150 (colored)

Removes memory leaks when flags are called multiple times.  This
is the easy way out.  The code should be able to handle having
pb.author, pb.description, and pb.symbol as const char * strings
pointing to rcs_optarg values without using xstrdup at all.  The
code is a bit hairy so it's difficult to verify that it's done
correctly, so that'll be a plan for another day.  In the meantime,
this works.

OK joris@

Revision 1.150 / (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.149: +1 -5 lines
Diff to previous 1.149 (colored)

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

OK xsa@

Revision 1.149 / (download) - annotate - [select for diffs], Mon Apr 17 12:03:19 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.148: +21 -16 lines
Diff to previous 1.148 (colored)

Relieve checkin_update and checkin_init of the responsibility of
calling rcs_close() so we don't try to rcs_close() the same file
twice if the working file does not exist, resulting in a core dump.

The current code also returns the status of the last file, so if
we do:

	$ touch file
	$ ci nonexistent file

that will return 0.  GNU returns 1.  Fix that.

Additionally, it returns -1 on error, which turns into 255.  It
should return 1.

OK niallo@

Revision 1.148 / (download) - annotate - [select for diffs], Sun Apr 16 12:30:00 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.147: +4 -2 lines
Diff to previous 1.147 (colored)

- fix description handling.

ok joris@ xsa@

Revision 1.147 / (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.146: +22 -22 lines
Diff to previous 1.146 (colored)

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

Revision 1.146 / (download) - annotate - [select for diffs], Fri Apr 14 00:22:46 2006 UTC (18 years, 1 month ago) by pat
Branch: MAIN
Changes since 1.145: +2 -2 lines
Diff to previous 1.145 (colored)

Fix a typo introduced in rev 1.135; ok ray@

Revision 1.145 / (download) - annotate - [select for diffs], Thu Apr 13 16:20:28 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

Currently rcs_getopt spits out a generic error message if you do
`ci -m file'.  This changes it so if -m is given without an argument
a customized error message is printed.

While I was there I sorted the optstring according to style(9).

``Oh, I see it now.'' niallo@

Revision 1.144 / (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.143: +1 -3 lines
Diff to previous 1.143 (colored)

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

Revision 1.143 / (download) - annotate - [select for diffs], Thu Apr 13 13:15:18 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.142: +4 -4 lines
Diff to previous 1.142 (colored)

fix some typos

Revision 1.142 / (download) - annotate - [select for diffs], Thu Apr 13 03:18:06 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.141: +12 -1 lines
Diff to previous 1.141 (colored)

correctly handle RCS files without any revisions;
original diff from ray@, crafted into shape by myself.

okay ray@

Revision 1.141 / (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.140: +4 -2 lines
Diff to previous 1.140 (colored)

*** empty log message ***

Revision 1.140 / (download) - annotate - [select for diffs], Wed Apr 12 08:27:31 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored)

spaces

Revision 1.139 / (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.138: +16 -13 lines
Diff to previous 1.138 (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.138 / (download) - annotate - [select for diffs], Mon Apr 10 19:49:44 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.137: +1 -5 lines
Diff to previous 1.137 (colored)

make sure we add the correct name mkstemp(3) creates for us
to the worklist of temporary files.

this way we definatly don't leave any files behind in /tmp.

tested & okay niallo@

Revision 1.137 / (download) - annotate - [select for diffs], Sun Apr 9 19:22:23 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.136: +2 -1 lines
Diff to previous 1.136 (colored)

- don't print out warnings about locking when they are actually wrong and
just confuse the user.

ok and input joris@

Revision 1.136 / (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.135: +2 -2 lines
Diff to previous 1.135 (colored)

-z can take no argument.

Revision 1.135 / (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.134: +5 -13 lines
Diff to previous 1.134 (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.134 / (download) - annotate - [select for diffs], Sat Apr 1 13:57:48 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.133: +4 -2 lines
Diff to previous 1.133 (colored)

- plug a possible memory leak in checkin_update() error path.

ok joris@

Revision 1.133 / (download) - annotate - [select for diffs], Fri Mar 31 01:39:36 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.132: +4 -1 lines
Diff to previous 1.132 (colored)

spacing;

Revision 1.132 / (download) - annotate - [select for diffs], Thu Mar 30 23:19:20 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.131: +5 -3 lines
Diff to previous 1.131 (colored)

add temporary files to the worklist before creating them, this prevents
a race when the user would interrupt the program when it was returning
from cvs_buf_write_stmp() and leave the temporary files behind.

Revision 1.131 / (download) - annotate - [select for diffs], Tue Mar 28 12:48:51 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.130: +9 -7 lines
Diff to previous 1.130 (colored)

check rcs_head_set() return value; OK niallo@.

Revision 1.130 / (download) - annotate - [select for diffs], Tue Mar 28 12:07:10 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.129: +10 -3 lines
Diff to previous 1.129 (colored)

check rcs_sym_remove() return value; OK niallo@.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Mar 27 22:11:08 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.128: +3 -7 lines
Diff to previous 1.128 (colored)

- simplify checkin_init() and checkin_update() functions by moving
rcs_close() to the checkin_main() loop.

"Commitzki!!" ray@

Revision 1.128 / (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.127: +29 -5 lines
Diff to previous 1.127 (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.127 / (download) - annotate - [select for diffs], Mon Mar 27 13:07:37 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.126: +4 -2 lines
Diff to previous 1.126 (colored)

check rcs_lock_remove() return value; OK ray@ niallo@.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Mar 26 12:56:31 2006 UTC (18 years, 1 month ago) by niallo
Branch: MAIN
Changes since 1.125: +31 -34 lines
Diff to previous 1.125 (colored)

- clean up error handling in checkin_init() and checkin_update()
- plug a couple of memory leaks along the way

ok ray@

Revision 1.125 / (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.124: +4 -3 lines
Diff to previous 1.124 (colored)

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

``that makes sense'' xsa@

Revision 1.124 / (download) - annotate - [select for diffs], Thu Mar 23 08:50:41 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.123: +4 -16 lines
Diff to previous 1.123 (colored)

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

Revision 1.123 / (download) - annotate - [select for diffs], Mon Mar 20 16:18:13 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.122: +3 -5 lines
Diff to previous 1.122 (colored)

delint; cvs_buf_write_stmp() will never return non-zero:

- remove superfluous error handling for cvs_buf_write_stmp()
- change cvs_buf_write_stmp() return type to void

ok joris@ xsa@

Revision 1.122 / (download) - annotate - [select for diffs], Fri Mar 17 07:32:03 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.121: +5 -6 lines
Diff to previous 1.121 (colored)

Remove unused variables len and i, change `end' to size_t type.
Found by lint.

OK niallo@

Revision 1.121 / (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.120: +3 -1 lines
Diff to previous 1.120 (colored)

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

``OK niallo@'' niallo@

Revision 1.120 / (download) - annotate - [select for diffs], Wed Mar 15 20:57:14 2006 UTC (18 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.119: +2 -1 lines
Diff to previous 1.119 (colored)

ask for log message when it's not specified, got broken in xsa's previous
commit.

ok niallo@

Revision 1.119 / (download) - annotate - [select for diffs], Wed Mar 15 16:04:08 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.118: +20 -11 lines
Diff to previous 1.118 (colored)

- check for tty when asking for logmsg or description
- add -I[rev]
- more verbosity checks
OK niallo@, "Works great" ray@.

Revision 1.118 / (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.117: +4 -4 lines
Diff to previous 1.117 (colored)

remove some bizzare idioms; ok ray

Revision 1.117 / (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.116: +2 -128 lines
Diff to previous 1.116 (colored)

Move and rename checkin_choose_rcsfile() to rcs_choosefile().

ok joris

Revision 1.116 / (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.115: +105 -43 lines
Diff to previous 1.115 (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.115 / (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.114: +24 -1 lines
Diff to previous 1.114 (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.114 / (download) - annotate - [select for diffs], Sat Mar 11 18:38:54 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.113: +5 -2 lines
Diff to previous 1.113 (colored)

- reset NEWFILE flag on each iteration through main loop.  this stops
strange things happening.

- don't print "done" on error.

ok joris@

Revision 1.113 / (download) - annotate - [select for diffs], Fri Mar 10 11:51:19 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.112: +13 -13 lines
Diff to previous 1.112 (colored)

use same date format as gnu/usr.bin/rcs in error message. OK niallo@.

Revision 1.112 / (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.111: +27 -20 lines
Diff to previous 1.111 (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.111 / (download) - annotate - [select for diffs], Tue Mar 7 01:47:42 2006 UTC (18 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

fix usage();

Revision 1.110 / (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.109: +5 -2 lines
Diff to previous 1.109 (colored)

-z support for RCS;

Revision 1.109 / (download) - annotate - [select for diffs], Mon Mar 6 15:04:17 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.108: +1 -3 lines
Diff to previous 1.108 (colored)

like gnu ci(1), continue to process valid files in argv even if some are
invalid.

ok xsa@

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

update usage()

Revision 1.107 / (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.106: +65 -66 lines
Diff to previous 1.106 (colored)

many spacing cleanups

Revision 1.106 / (download) - annotate - [select for diffs], Sun Mar 5 17:35:24 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.105: +15 -3 lines
Diff to previous 1.105 (colored)

plug some potential resource leaks in error paths.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Mar 5 17:20:35 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.104: +1 -3 lines
Diff to previous 1.104 (colored)

checkin_parsekeyword() returns void so zap unnecessary return.

Revision 1.104 / (download) - annotate - [select for diffs], Sun Mar 5 17:17:27 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.103: +29 -9 lines
Diff to previous 1.103 (colored)

GNU ci(1) doesn't allow dates younger than HEAD, neither on the command
line via -d<date> nor via stat mtime on the working file (plain -d).

add a check for this in checkin_update(), abort and warn the user
should we encounter such a situation.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Mar 5 15:47:17 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.102: +3 -2 lines
Diff to previous 1.102 (colored)

honour -m on initial revision.

ok xsa@

Revision 1.102 / (download) - annotate - [select for diffs], Mon Feb 20 16:30:18 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored)

- more spacing

Revision 1.101 / (download) - annotate - [select for diffs], Mon Feb 20 16:27:58 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.100: +5 -5 lines
Diff to previous 1.100 (colored)

- spacing

Revision 1.100 / (download) - annotate - [select for diffs], Thu Feb 16 19:15:30 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.99: +1 -4 lines
Diff to previous 1.99 (colored)

- zap kwtype variable. lint pointed it out wasn't used by anything.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Feb 16 18:05:47 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.98: +13 -18 lines
Diff to previous 1.98 (colored)

- rename variable k to i
- only initialise i to zero once

Revision 1.98 / (download) - annotate - [select for diffs], Thu Feb 16 17:44:53 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.97: +261 -6 lines
Diff to previous 1.97 (colored)

- finally add proper support for `ci -k`. this little-used option requires
quite a lot of parsing code.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Feb 16 17:30:46 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.96: +10 -2 lines
Diff to previous 1.96 (colored)

- ensure we handle -d properly in initial revision, not just updates.

Revision 1.96 / (download) - annotate - [select for diffs], Thu Feb 16 16:43:45 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.95: +4 -2 lines
Diff to previous 1.95 (colored)

- make revision specifiers work for initial revision, not just updates.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Feb 16 13:32:27 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored)

`ci -k` is described incorrectly in a number of places.

- fix ci(1) manual page for this option
- fix usage() for this option
- fix CI_OPTSTRING for this option.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Feb 16 13:22:02 2006 UTC (18 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.93: +6 -6 lines
Diff to previous 1.93 (colored)

- make function prototypes consistent.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Feb 14 13:26:43 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.92: +9 -4 lines
Diff to previous 1.92 (colored)

fix output when checking in a file for the first time. OK niallo@.

Revision 1.92 / (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.91: +2 -4 lines
Diff to previous 1.91 (colored)

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

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

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

Revision 1.90 / (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.89: +2 -2 lines
Diff to previous 1.89 (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.89 / (download) - annotate - [select for diffs], Fri Dec 23 00:59:55 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

support co -d, which checks out the first revision who's
date is less than or equal to the given date.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Dec 21 19:59:58 2005 UTC (18 years, 5 months ago) by alek
Branch: MAIN
Changes since 1.87: +2 -3 lines
Diff to previous 1.87 (colored)

Initialize basepath right after xmalloc()ing it so we won't end up with
not NUL-terminated buffer passed to strlcat()

ok joris@

Revision 1.87 / (download) - annotate - [select for diffs], Tue Dec 20 09:04:17 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.86: +17 -39 lines
Diff to previous 1.86 (colored)

spread the use of fatal();

Revision 1.86 / (download) - annotate - [select for diffs], Mon Dec 19 18:24:12 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.85: +3 -5 lines
Diff to previous 1.85 (colored)

use fatal() if getlogin() fails;

Revision 1.85 / (download) - annotate - [select for diffs], Mon Dec 12 09:40:08 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

- sync usage() for `-tfile|str'
- nuke trailing whitespace

Revision 1.84 / (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.83: +14 -29 lines
Diff to previous 1.83 (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.83 / (download) - annotate - [select for diffs], Fri Dec 9 04:27:01 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.82: +1 -2 lines
Diff to previous 1.82 (colored)

unused vars, my bad;

Revision 1.82 / (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.81: +40 -35 lines
Diff to previous 1.81 (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.81 / (download) - annotate - [select for diffs], Sat Dec 3 17:11:58 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.80: +5 -5 lines
Diff to previous 1.80 (colored)

- whoops, its -t-string or -tfile, not the other way around
- sync checkin_usage() with reality

Revision 1.80 / (download) - annotate - [select for diffs], Sat Dec 3 16:50:48 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.79: +35 -7 lines
Diff to previous 1.79 (colored)

- add support for -t[description] and -t-[file containing description]

Revision 1.79 / (download) - annotate - [select for diffs], Fri Dec 2 14:29:13 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored)

in checkin_checklock()
- make it work as expected (e.g. when no lock set at all too)
- add missing word in error message
- minor knf

Revision 1.78 / (download) - annotate - [select for diffs], Fri Dec 2 13:53:43 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.77: +4 -6 lines
Diff to previous 1.77 (colored)

better..

Revision 1.77 / (download) - annotate - [select for diffs], Fri Dec 2 13:43:32 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.76: +13 -7 lines
Diff to previous 1.76 (colored)

in checkin_update():
- move up the lock check
- better error message if a specified rev is too low
OK niallo@.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Dec 2 01:13:12 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.75: +34 -17 lines
Diff to previous 1.75 (colored)

- fix up checkin_choose_rcsfile() to give us a path like the one GNU print,
instead of always returning an absolute path.

ok joris@

Revision 1.75 / (download) - annotate - [select for diffs], Fri Dec 2 00:15:35 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

- fix a typo in a comment

Revision 1.74 / (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.73: +4 -4 lines
Diff to previous 1.73 (colored)

sync usage() for `-xsuffixes';

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 28 09:16:32 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.72: +19 -60 lines
Diff to previous 1.72 (colored)

shrink some multi-lines comments;

Revision 1.72 / (download) - annotate - [select for diffs], Mon Nov 28 08:49:25 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.71: +2 -3 lines
Diff to previous 1.71 (colored)

consistency in error messages;

Revision 1.71 / (download) - annotate - [select for diffs], Sun Nov 27 17:47:18 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.70: +9 -11 lines
Diff to previous 1.70 (colored)

- only do one rcs_statfile() instead of two; simplify some logic.

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

- checkin_init() IS now implemented; update comment with this happy
  new reality.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Nov 24 15:35:11 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

memset();

Revision 1.68 / (download) - annotate - [select for diffs], Wed Nov 23 14:21:53 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.67: +14 -17 lines
Diff to previous 1.67 (colored)

knf;

Revision 1.67 / (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.66: +6 -3 lines
Diff to previous 1.66 (colored)

initial bits for -T support;

Revision 1.66 / (download) - annotate - [select for diffs], Tue Nov 22 11:49:02 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.65: +44 -11 lines
Diff to previous 1.65 (colored)

- ci(1) can intialise RCS files now!
- support for -j added
- support for -i added

ok joris@ xsa@

Revision 1.65 / (download) - annotate - [select for diffs], Tue Nov 22 09:54:00 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored)

nuke trailing whitespaces; no cookie for niallo.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Nov 21 16:20:28 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.63: +5 -2 lines
Diff to previous 1.63 (colored)

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

Revision 1.63 / (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.62: +263 -161 lines
Diff to previous 1.62 (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.62 / (download) - annotate - [select for diffs], Thu Nov 17 00:22:30 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.61: +6 -6 lines
Diff to previous 1.61 (colored)

- "revdate" is something else - function should be called
  checkin_mtimedate() for clarity.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Nov 17 00:16:35 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.60: +28 -10 lines
Diff to previous 1.60 (colored)

- split -d handling into function checkin_setrevdate()

Revision 1.60 / (download) - annotate - [select for diffs], Thu Nov 17 00:03:04 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored)

- spelling fix
- minor KNF

Revision 1.59 / (download) - annotate - [select for diffs], Wed Nov 16 19:23:46 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.58: +34 -3 lines
Diff to previous 1.58 (colored)

- add comments for functions.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Nov 16 19:06:41 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.57: +308 -164 lines
Diff to previous 1.57 (colored)

lots of changes to allow greater code re-use and modularisation, along with
some support code for rcs file initialisation and -i and -j options (not
yet implemented though).

no functional changes.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Nov 8 15:58:38 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

missing casts;

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 2 21:42:16 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.55: +1 -4 lines
Diff to previous 1.55 (colored)

- kill two unused constant definitions.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 2 20:40:56 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.54: +4 -3 lines
Diff to previous 1.54 (colored)

- sync checkin_usage()

Revision 1.54 / (download) - annotate - [select for diffs], Wed Nov 2 20:32:45 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.53: +25 -20 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Sun Oct 30 09:46:07 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

string fix;

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

- sync checkin_usage()

Revision 1.51 / (download) - annotate - [select for diffs], Sat Oct 29 19:05:51 2005 UTC (18 years, 6 months ago) by niallo
Branch: MAIN
Changes since 1.50: +17 -3 lines
Diff to previous 1.50 (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.50 / (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.49: +5 -3 lines
Diff to previous 1.49 (colored)

TMPDIR support; joris ok

Revision 1.49 / (download) - annotate - [select for diffs], Tue Oct 25 17:48:56 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.48: +6 -6 lines
Diff to previous 1.48 (colored)

minor knf;

Revision 1.48 / (download) - annotate - [select for diffs], Tue Oct 25 17:27:54 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

nuke trailing whitespaces;

Revision 1.47 / (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.46: +5 -3 lines
Diff to previous 1.46 (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.46 / (download) - annotate - [select for diffs], Tue Oct 18 01:39:47 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.45: +18 -18 lines
Diff to previous 1.45 (colored)

- no point in using cvs_printf() in openrcs;
- only output info messages if -q flag isn't given;

Revision 1.45 / (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.44: +5 -25 lines
Diff to previous 1.44 (colored)

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

Revision 1.44 / (download) - annotate - [select for diffs], Tue Oct 18 01:10:28 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.43: +19 -16 lines
Diff to previous 1.43 (colored)

correctly handle locks when commiting something;

Revision 1.43 / (download) - annotate - [select for diffs], Mon Oct 17 22:24:18 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.42: +8 -6 lines
Diff to previous 1.42 (colored)

- remove a printf which kept in by accident.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Oct 17 22:04:54 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.41: +17 -4 lines
Diff to previous 1.41 (colored)

KNF;

Revision 1.41 / (download) - annotate - [select for diffs], Mon Oct 17 15:33:12 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

support -f flag for co;
'fine' niallo@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Oct 16 23:30:45 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

- remove the lock even if we are just reverting to the previous
  revision (like GNU RCS).

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

- sync checkin_usage();

Revision 1.38 / (download) - annotate - [select for diffs], Sun Oct 16 22:23:54 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.37: +36 -2 lines
Diff to previous 1.37 (colored)

- add support for `-n<symbol>'

Revision 1.37 / (download) - annotate - [select for diffs], Sun Oct 16 14:10:57 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

- sort rcs_getopt() string before i add more options.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Oct 16 11:40:56 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.35: +2 -5 lines
Diff to previous 1.35 (colored)

- zap an incorrect comment.

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

- remove unused `flags' variable.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Oct 16 11:35:11 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

- remove unused `rcsfile' parameter from checkin_getlogmsg()

Revision 1.33 / (download) - annotate - [select for diffs], Sun Oct 16 11:29:28 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.32: +6 -3 lines
Diff to previous 1.32 (colored)

KNF

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

spacing;

Revision 1.31 / (download) - annotate - [select for diffs], Sat Oct 15 23:44:58 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.30: +14 -9 lines
Diff to previous 1.30 (colored)

- add support for `-wusername'.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Oct 15 21:33:21 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.29: +15 -15 lines
Diff to previous 1.29 (colored)

- sort rcs_getopt() switch cases, they got a bit mixed up along the way.

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

- add support for `-f' option.
- if user does not specify `-f', warn them that they are
  checking in an unchanged file and revert to previous
  revision (like GNU RCS).
- update checkin_usage(), removing spaces after options
  since we do not support them with rcs_getopt() (like
  GNU RCS).
- ensure we rcs_close() the file even if we are aborting
  check-in due to lack of a lock.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Oct 15 18:26:24 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.27: +4 -27 lines
Diff to previous 1.27 (colored)

modularise checkout code into checkout_rev(). this shaves off a number
of lines in ci.c due to code re-use, and will simplify features which are in
the pipeline. no functional changes.

ok joris@

Revision 1.27 / (download) - annotate - [select for diffs], Sat Oct 15 14:23:06 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

minor style change.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Oct 13 23:00:49 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

- sync checkin_usage().

Revision 1.25 / (download) - annotate - [select for diffs], Thu Oct 13 22:54:46 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.24: +22 -4 lines
Diff to previous 1.24 (colored)

- implement bare `-d' option; this sets the check-in date and time
  to be that of the working file's last modification time.

Revision 1.24 / (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.23: +13 -12 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Wed Oct 12 22:57:26 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

add a cast when doing cvs_buf_release();

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

various usage cleanup; ok joris

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 11 15:52:13 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

zap unused variable `dflag'

Revision 1.20 / (download) - annotate - [select for diffs], Tue Oct 11 15:50:25 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.19: +10 -6 lines
Diff to previous 1.19 (colored)

- support -d <date> option in ci.

ok joris@

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

getlogin(2) sets errno;

Revision 1.18 / (download) - annotate - [select for diffs], Mon Oct 10 15:05:48 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.17: +16 -4 lines
Diff to previous 1.17 (colored)

- support <rev> parameter to `-l' and `-u' options.
- sync checkin_usage().

note that with OpenRCS you must do `ci -l -- <file>' and `ci -u -- <file>'
when using bare arguments because our getopt(3) is POSIX compliant.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Oct 10 14:49:32 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.16: +15 -7 lines
Diff to previous 1.16 (colored)

make sure that revision passed on command line is greater than HEAD.

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

ensure that the user has a lock on the correct revision before allowing
check-in.

ok joris@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 9 21:17:59 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

if -r is not specified, we need to set newrev to file->rf_head.

simpler fix than what i had in mind pointed out by joris.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Oct 9 19:29:22 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

only get the log message when it's not specified on the command-line;
noticed by niallo@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 9 17:51:33 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.12: +3 -5 lines
Diff to previous 1.12 (colored)

simplify if() conditions;
ok niallo@

Revision 1.12 / (download) - annotate - [select for diffs], Sun Oct 9 14:48:13 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.11: +50 -23 lines
Diff to previous 1.11 (colored)

- sync checkin_usage()
- add support for checking-in to arbitrary revisions via -r option.

eg:

ci -r1.30 <file>

check in file, jump to revision 1.30 and set that revision to HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 8 16:27:41 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.10: +1 -17 lines
Diff to previous 1.10 (colored)

remove useless comment about command line options. not needed since this
is all in the manual page now.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 8 16:19:40 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

sync checkin_usage() with manual page

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 8 15:26:47 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.8: +50 -12 lines
Diff to previous 1.8 (colored)

- add support for -u and -l options
- KNF

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 8 14:25:55 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

remember to NUL-terminate logbuf in checkin_getlogmsg()

Revision 1.7 / (download) - annotate - [select for diffs], Sat Oct 8 14:18:35 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.6: +6 -8 lines
Diff to previous 1.6 (colored)

KNF;

Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 8 14:09:18 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.5: +60 -15 lines
Diff to previous 1.5 (colored)

- add support for getting the log message from the user interactively,
  if it is not supplied on the command line.

- correct a couple of typos in comments.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 8 11:50:59 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

spacing.

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

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

combined effort with joris.

ok joris@

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

missing flags;

Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 30 16:49:37 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)

no need for cvs_log_init() here;

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 30 16:37:27 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN

add a basic ci.c as a starting point. requires more changes to rcs api
to work properly.

ok 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.