OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.47 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, HEAD
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

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

Revision 1.46 / (download) - annotate - [select for diffs], Tue Dec 27 13:59:01 2011 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Move some global variables/statics to locals, from Michael W
Bombardieri.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 12 16:53:12 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.44: +6 -3 lines
Diff to previous 1.44 (colored)

cmdp can be NULL while still in cvs_getopt(), so deal with this
inside of cvs_vlog() since cvs_getopt() might be calling it.

spotted by Jonathan Armani

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 11 01:55:05 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.43: +31 -29 lines
Diff to previous 1.43 (colored)

style ferry comes around

Revision 1.43 / (download) - annotate - [select for diffs], Thu Apr 24 19:13:56 2008 UTC (16 years ago) by tobias
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Use a fixed string in case of vasprintf() error instead of relying on
strerror().  Although our vasprintf() sets errno, we cannot rely on it on
other systems.

ok ray (who spotted this issue), xsa

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jan 10 10:05:40 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.41: +7 -15 lines
Diff to previous 1.41 (colored)

Simply the use of cmdp and cvs_command by zapping cvs_command and working
solely with cmdp.  This remedies some reliability issues with invalid
commands supplied and also fixes a GNU cvs style incompatibility with
release command.

> Based on patch from Igor Zinovik

Revision 1.41 / (download) - annotate - [select for diffs], Fri Sep 7 23:59:01 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Properly send out rcs info header with "E " in server mode (stderr in
local mode). Format style change also enables opencvs to be used with
cvsweb (+ adjustment).

OK joris@

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jun 26 02:24:10 2007 UTC (16 years, 10 months ago) by niallo
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.39: +6 -5 lines
Diff to previous 1.39 (colored)

add support for cvs rlog.
from Mickey.

ok joris@ ray@

Revision 1.39 / (download) - annotate - [select for diffs], Thu May 10 20:58:02 2007 UTC (17 years ago) by xsa
Branch: MAIN
Changes since 1.38: +32 -41 lines
Diff to previous 1.38 (colored)

Simplify cvs_vlog() to avoid endless fatal() loop on some error case.
Problem spotted and fix submitted by Tobias Stoeckmann.
OK niallo@.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Feb 22 06:42:09 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jan 31 21:07:35 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.36: +6 -6 lines
Diff to previous 1.36 (colored)

snprintf() -> xsnprintf()

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 7 17:37:17 2006 UTC (17 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.35: +6 -5 lines
Diff to previous 1.35 (colored)

first part of opencvs remote, fairly useable on existing trees
although i advise against using it on real development trees for now.

only a few commands work right so far:
- commit
- diff
- status
- log
- update (partially working)

if you feel like testing remote and run into bugs feel free to
contact me, and please include a full trace (-t).

Revision 1.35 / (download) - annotate - [select for diffs], Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.34: +18 -173 lines
Diff to previous 1.34 (colored)

commit the new opencvs code, i have been hacking on
this for the past 2 weeks now and it should go in at
the start of the hackathon so others can help out.

this code is a lot safer, smarter, faster and best of
all it is actually doing what it is suppose to do!

basic checkout, update, status, diff and commit are
working in local mode only.
there is no support for any remote setups now.

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

change cvs_log() and cvs_vlog() return type to void; OK niallo@.

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

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

Revision 1.32 / (download) - annotate - [select for diffs], Thu Apr 13 16:55:09 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.31: +23 -24 lines
Diff to previous 1.31 (colored)

Add error checking for vasprintf.  Stylistic suggestions from xsa@.

OK xsa@

Revision 1.31 / (download) - annotate - [select for diffs], Wed Mar 15 21:34:59 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.30: +1 -19 lines
Diff to previous 1.30 (colored)

- remove unused function cvs_putchar()

"well then zap it" joris@

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jan 2 17:06:10 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 -5 lines
Diff to previous 1.29 (colored)

- nuke remaining err(), errx() and warnx() instances.
- make cvs_log_init() return type void.
ok joris@.

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

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

Revision 1.28 / (download) - annotate - [select for diffs], Sat Dec 10 20:27:45 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (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.27 / (download) - annotate - [select for diffs], Sun Oct 9 23:59:17 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.26: +10 -4 lines
Diff to previous 1.26 (colored)

fix cvs_log() so it doesn't segfault when called before
cvs_command is set.

problem found by & discussed with Nuno Morgadinho thanks!

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

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

ok joris@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 5 16:21:41 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

increase ebuf[] size in cvs_vlog() wrt strerror(3) return value;
ok jfb@.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jul 27 15:45:44 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

rather make LP_NOTICE send to stderr not LP_INFO, pointed out by jfb@.
ok jfb@.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 27 13:06:04 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

make LP_INFO send to stderr; ok joris@.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 25 12:13:08 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

KNF;

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 7 14:27:57 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)



remove trailing whitespaces

from deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 7 09:06:15 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.19: +2 -11 lines
Diff to previous 1.19 (colored)



remove ancient and unused CVS define. it was a leftover from
the daemon.

ok xsa@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 5 20:47:44 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.18: +18 -2 lines
Diff to previous 1.18 (colored)



* introduce cvs_putchar(), to output a single character to stdout.
  if we are in server mode send 'M' when needed.

* switch diff command to cvs_printf() and cvs_putchar() so it will
  output correctly in local and server mode.

ok xsa@, jfb@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 2 20:16:48 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.17: +9 -3 lines
Diff to previous 1.17 (colored)



make cvs_printf() a bit smarter, so it can be called without having
to worry about the 'M' in server mode.

OK jfb@

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jun 2 16:05:38 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.16: +8 -3 lines
Diff to previous 1.16 (colored)

- set LP_ABORT log level when action is abored by user instead of LP_ERR
- missing \n in output of an unchanged log message warning
- always use the command name in error messages instead of aliases

ok jfb@.

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 31 08:58:48 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.15: +4 -5 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 6 21:42:32 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

unbreak

Revision 1.14 / (download) - annotate - [select for diffs], Wed Apr 6 18:39:35 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.13: +29 -4 lines
Diff to previous 1.13 (colored)

make cvs_printf() work as advertised when running as server

Revision 1.13 / (download) - annotate - [select for diffs], Mon Mar 28 22:46:09 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.12: +6 -4 lines
Diff to previous 1.12 (colored)

make LP_TRACE messages go through again, and assign them a level of
LOG_DEBUG for the syslog facility

ok xsa@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 26 08:09:54 2005 UTC (19 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

fix a variety of things i found at coverity.  ok joris@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Feb 22 16:22:10 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

when a log message is generated by the server and is sent to
standard error, instead redirect it to standard out with the
appropriate `E' prefix to indicate an error response message

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 16 15:33:37 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

properly initialize the syslog_data structure

Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 15 15:29:35 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.8: +18 -26 lines
Diff to previous 1.8 (colored)

remove the LP_FILTER_TOGGLE operation, which is really pointless, and
use a bitmask to keep track of the log filters

Revision 1.8 / (download) - annotate - [select for diffs], Wed Dec 15 06:11:40 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.7: +15 -5 lines
Diff to previous 1.7 (colored)

Permit the client to generate trace output when the -t option is given
by using the LP_TRACE level to cvs_log().  Traces are filtered by
default.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Dec 7 17:10:56 2004 UTC (19 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.6: +2 -7 lines
Diff to previous 1.6 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 6 21:03:12 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

tighten vertical spacing for else; jfb ok

Revision 1.5 / (download) - annotate - [select for diffs], Sun Nov 28 15:12:17 2004 UTC (19 years, 5 months ago) by pat
Branch: MAIN
Changes since 1.4: +0 -2 lines
Diff to previous 1.4 (colored)

make sure va_end() is always called in all possible paths

ok jfb

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 5 13:39:01 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.3: +14 -8 lines
Diff to previous 1.3 (colored)

Add a new log level LP_ABORT, which modifies the behaviour of prefix
generation by outputting something similar to GNU CVS:

cvs [<command> aborted]: message

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 5 13:32:08 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.2: +22 -1 lines
Diff to previous 1.2 (colored)

Adapt the logging so any messages generated by the server will be
prepended with a 'M' or 'E' command, depending on the log level, and
follow the GNU behaviour of printing the command name after the program
name in messages

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jul 27 16:19:41 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.1: +26 -3 lines
Diff to previous 1.1 (colored)

Comment out unused code and some minor cleanup.  Add the prototype and
skeleton for cvs_printf(), which will be used to output strings that do
not need all of the handling that cvs_log() performs.  This will be used
among other things to prepend the `M' and `E' family of responses to
output made by the `server' command.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: OpenCVS
CVS Tags: OpenCVS_0_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

* initial import from the cvs-tools module

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.