OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.85 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:03 2019 UTC (4 years, 10 months ago) by deraadt
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, HEAD
Changes since 1.84: +5 -5 lines
Diff to previous 1.84 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.84 / (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_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, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.83: +8 -18 lines
Diff to previous 1.83 (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.83 / (download) - annotate - [select for diffs], Sat Jun 13 20:15:21 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.82: +5 -9 lines
Diff to previous 1.82 (colored)

Convert xfree to free. From Fritjof Bornebusch. ok deraadt

Revision 1.82 / (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.81: +2 -2 lines
Diff to previous 1.81 (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.81 / (download) - annotate - [select for diffs], Mon Dec 1 21:58:46 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

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

Revision 1.80 / (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.79: +4 -5 lines
Diff to previous 1.79 (colored)

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

Revision 1.79 / (download) - annotate - [select for diffs], Tue Apr 16 20:24:45 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

remove wrong casts; ok millert

Revision 1.78 / (download) - annotate - [select for diffs], Mon Dec 6 22:50:34 2010 UTC (13 years, 5 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.77: +2 -1 lines
Diff to previous 1.77 (colored)

add missing header needed by futimes()

ok tobias@ nicm@

Revision 1.77 / (download) - annotate - [select for diffs], Wed Jul 28 09:07:11 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

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

OK zinovik nicm

Revision 1.76 / (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.75: +14 -14 lines
Diff to previous 1.75 (colored)

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

OK xsa zinovik

Revision 1.75 / (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_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, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Rename rcs_diffreg() to diffreg().

OK joris@

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

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

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

the message returned by usage() must fit on a 80-column display

ok by jmc@, niallo@, and xsa@

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

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

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

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

ok joris@ xsa@

Revision 1.70 / (download) - annotate - [select for diffs], Fri Sep 22 13:42:43 2006 UTC (17 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

- explain diff_options (which i renamed from "diff options")
- sync usage()

ok xsa

Revision 1.69 / (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.68: +128 -19 lines
Diff to previous 1.68 (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.68 / (download) - annotate - [select for diffs], Mon Jul 31 06:51:55 2006 UTC (17 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.67: +5 -6 lines
Diff to previous 1.67 (colored)

Minor KNF.

OK xsa@

Revision 1.67 / (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.66: +5 -5 lines
Diff to previous 1.66 (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.66 / (download) - annotate - [select for diffs], Sun Jun 4 20:32:56 2006 UTC (17 years, 11 months ago) by niallo
Branch: MAIN
Changes since 1.65: +3 -1 lines
Diff to previous 1.65 (colored)

- initialise path pointers to NULL since error code checks for that.

Revision 1.65 / (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.64: +5 -3 lines
Diff to previous 1.64 (colored)

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

OK joris@

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

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

OK xsa@.

Revision 1.63 / (download) - annotate - [select for diffs], Mon May 8 09:59:09 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.62: +8 -8 lines
Diff to previous 1.62 (colored)

err() and errx() should also exit with status 2;

Revision 1.62 / (download) - annotate - [select for diffs], Mon May 8 09:48:12 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored)

exit with status 2 after usage() too; pointed out by uwe@.

Revision 1.61 / (download) - annotate - [select for diffs], Fri May 5 15:47:36 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.60: +12 -18 lines
Diff to previous 1.60 (colored)

- fix rcsdiff exit status on success/errors; now matches gnu/usr.bin/rcs.
- add DIAGNOSTICS section to rcsdiff.1 wrt exit codes.
ok ray@ and jmc@ for man page bits.

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

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

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

Check return values for all strlcpy, and strlcat calls.

OK xsa@ and probably others.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Apr 26 21:55:22 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.57: +14 -7 lines
Diff to previous 1.57 (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.57 / (download) - annotate - [select for diffs], Wed Apr 26 02:55:13 2006 UTC (18 years ago) by joris
Branch: MAIN
Changes since 1.56: +16 -16 lines
Diff to previous 1.56 (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.56 / (download) - annotate - [select for diffs], Tue Apr 25 13:36:35 2006 UTC (18 years ago) by xsa
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Mon Apr 24 08:40:01 2006 UTC (18 years ago) by jmc
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

make the -r description match that in rcsmerge(1), as far as is possible;
ok xsa

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

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

Revision 1.53 / (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.52: +2 -2 lines
Diff to previous 1.52 (colored)

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

Revision 1.52 / (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.51: +12 -13 lines
Diff to previous 1.51 (colored)

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

Revision 1.51 / (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.50: +8 -7 lines
Diff to previous 1.50 (colored)

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

Revision 1.50 / (download) - annotate - [select for diffs], Fri Apr 14 23:32:01 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

spaces

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

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

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

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

Revision 1.48 / (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.47: +1 -5 lines
Diff to previous 1.47 (colored)

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

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

*** empty log message ***

Revision 1.46 / (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.45: +32 -25 lines
Diff to previous 1.45 (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.45 / (download) - annotate - [select for diffs], Mon Apr 10 19:49:45 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.44: +1 -9 lines
Diff to previous 1.44 (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.44 / (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.43: +2 -3 lines
Diff to previous 1.43 (colored)

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

Revision 1.43 / (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.42: +2 -2 lines
Diff to previous 1.42 (colored)

-z can take no argument.

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

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

``that makes sense'' xsa@

Revision 1.40 / (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.39: +5 -9 lines
Diff to previous 1.39 (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.39 / (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.38: +2 -1 lines
Diff to previous 1.38 (colored)

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

``OK niallo@'' niallo@

Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 15 21:20:57 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

- zap filename arg in rcsdiff_rev() since its not used.

ok ray@

Revision 1.37 / (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.36: +60 -35 lines
Diff to previous 1.36 (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.36 / (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.35: +5 -2 lines
Diff to previous 1.35 (colored)

-z support for RCS;

Revision 1.35 / (download) - annotate - [select for diffs], Mon Mar 6 15:00:21 2006 UTC (18 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

update usage();

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

move compat flags into a STANDARDS section;

Revision 1.33 / (download) - annotate - [select for diffs], Mon Mar 6 09:59:22 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.32: +2 -3 lines
Diff to previous 1.32 (colored)

fix output to mimic gnu/usr.bin/rcs.

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

many spacing cleanups

Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 5 14:23:07 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.30: +7 -4 lines
Diff to previous 1.30 (colored)

now that rcs_getrev() isn't doing keyword expansion anymore and rcsdiff(1)
expects to be comparing files with expanded keywords, we need to add
a couple of calls to rcs_kwexp_buf() to rcsdiff.c.  two minor output
fixes in this diff also.

ok xsa@ eyeballed by Rai Lai

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 5 10:28:24 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.29: +2 -4 lines
Diff to previous 1.29 (colored)

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

Revision 1.29 / (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.28: +2 -8 lines
Diff to previous 1.28 (colored)

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

Revision 1.28 / (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.27: +2 -2 lines
Diff to previous 1.27 (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.27 / (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.26: +5 -9 lines
Diff to previous 1.26 (colored)

spread the use of fatal();

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 10 19:44:36 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

- its wrong to use exit() here; return instead.

ok joris@

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

kill unused var;

Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 1 23:02:27 2005 UTC (18 years, 5 months ago) by niallo
Branch: MAIN
Changes since 1.23: +25 -1 lines
Diff to previous 1.23 (colored)

- fix up context and unified diff output in both open rcs and open cvs so
that the date is set correctly.

ok joris@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 29 11:11:39 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

consistency in variables naming;

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

sync usage() for `-xsuffixes';

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 28 10:17:20 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

-T is here for compatibility;

Revision 1.20 / (download) - annotate - [select for diffs], Fri Nov 25 15:56:10 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

add support for `-kmode';

Revision 1.19 / (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.18: +7 -3 lines
Diff to previous 1.18 (colored)

initial bits for -T support;

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 22 15:00:06 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.17: +21 -9 lines
Diff to previous 1.17 (colored)

- print to stderr in some cases
- few bits for `-kmode'

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

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

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 21 15:01:10 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.15: +22 -12 lines
Diff to previous 1.15 (colored)

- print some more informative messages
- minor knf
niallo ok

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 16 09:57:04 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.14: +7 -3 lines
Diff to previous 1.14 (colored)

- add file existence check
- do not pollute with uneeded error messages

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 14 11:01:04 2005 UTC (18 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.13: +6 -4 lines
Diff to previous 1.13 (colored)

print RCS file path;

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

TMPDIR support; joris ok

Revision 1.12 / (download) - annotate - [select for diffs], Sun Oct 16 12:03:09 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

- sync rcsdiff_usage();

Revision 1.11 / (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.10: +8 -7 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Wed Oct 12 17:43:18 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

minor knf;

Revision 1.9 / (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.8: +3 -5 lines
Diff to previous 1.8 (colored)

various usage cleanup; ok joris

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 11 14:27:59 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

correctly set the filename by setting the diff_file variable;
fixes the (null) stuff seen when using rcsdiff;

ok niallo@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 9 20:55:27 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.6: +6 -3 lines
Diff to previous 1.6 (colored)

if there is a problem generating the diff for one of the files, continue
to process other files but eventually exit with status 2. this mimics
GNU rcs behaviour.

ok joris@

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

sync rcsdiff_usage()

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

kill extra ']'

Revision 1.4 / (download) - annotate - [select for diffs], Sat Oct 8 19:58:04 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.3: +82 -8 lines
Diff to previous 1.3 (colored)

- add support for diffing working file against arbitrary revision, eg
  rcsdiff -r1.1 <file>

- add support for diffing arbitrary revision against arbitrary revision, eg
  rcsdiff -r1.1 -r1.3 <file>

ok joris@

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 8 19:20:49 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.2: +11 -2 lines
Diff to previous 1.2 (colored)

support unified, context and rcsdiff output
(-u -c -n flags)

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

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

combined effort with joris.

ok joris@

Revision 1.1 / (download) - annotate - [select for diffs], Thu Oct 6 01:24:25 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN

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

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.