summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/log.c
AgeCommit message (Collapse)Author
2008-06-12cmdp can be NULL while still in cvs_getopt(), so deal with thisJoris Vink
inside of cvs_vlog() since cvs_getopt() might be calling it. spotted by Jonathan Armani
2008-06-11style ferry comes aroundJoris Vink
2008-04-24Use a fixed string in case of vasprintf() error instead of relying onTobias Stoeckmann
strerror(). Although our vasprintf() sets errno, we cannot rely on it on other systems. ok ray (who spotted this issue), xsa
2008-01-10Simply the use of cmdp and cvs_command by zapping cvs_command and workingTobias Stoeckmann
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
2007-09-07Properly send out rcs info header with "E " in server mode (stderr inTobias Stoeckmann
local mode). Format style change also enables opencvs to be used with cvsweb (+ adjustment). OK joris@
2007-06-26add support for cvs rlog.Niall O'Higgins
from Mickey. ok joris@ ray@
2007-05-10Simplify cvs_vlog() to avoid endless fatal() loop on some error case.Xavier Santolaria
Problem spotted and fix submitted by Tobias Stoeckmann. OK niallo@.
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-01-31snprintf() -> xsnprintf()Xavier Santolaria
2006-07-07first part of opencvs remote, fairly useable on existing treesJoris Vink
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).
2006-05-27commit the new opencvs code, i have been hacking onJoris Vink
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.
2006-04-20change cvs_log() and cvs_vlog() return type to void; OK niallo@.Xavier Santolaria
2006-04-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
2006-04-13Add error checking for vasprintf. Stylistic suggestions from xsa@.Ray Lai
OK xsa@
2006-03-15- remove unused function cvs_putchar()Niall O'Higgins
"well then zap it" joris@
2006-01-02- nuke remaining err(), errx() and warnx() instances.Xavier Santolaria
- make cvs_log_init() return type void. ok joris@.
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-10switch to xmalloc stuff, me and xsa@ agreed on this a longJoris Vink
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@
2005-10-09fix cvs_log() so it doesn't segfault when called beforeJoris Vink
cvs_command is set. problem found by & discussed with Nuno Morgadinho thanks!
2005-09-19Add preprocessor directives needed for usr.bin/rcs programs to compile.Niall O'Higgins
ok joris@
2005-08-05increase ebuf[] size in cvs_vlog() wrt strerror(3) return value;Xavier Santolaria
ok jfb@.
2005-07-27rather make LP_NOTICE send to stderr not LP_INFO, pointed out by jfb@.Xavier Santolaria
ok jfb@.
2005-07-27make LP_INFO send to stderr; ok joris@.Xavier Santolaria
2005-07-25KNF;Xavier Santolaria
2005-07-07remove trailing whitespacesJoris Vink
from deraadt@
2005-06-07remove ancient and unused CVS define. it was a leftover fromJoris Vink
the daemon. ok xsa@
2005-06-05* introduce cvs_putchar(), to output a single character to stdout.Joris Vink
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@
2005-06-02make cvs_printf() a bit smarter, so it can be called without havingJoris Vink
to worry about the 'M' in server mode. OK jfb@
2005-06-02- set LP_ABORT log level when action is abored by user instead of LP_ERRXavier Santolaria
- missing \n in output of an unchanged log message warning - always use the command name in error messages instead of aliases ok jfb@.
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
2005-04-06unbreakJean-Francois Brousseau
2005-04-06make cvs_printf() work as advertised when running as serverJean-Francois Brousseau
2005-03-28make LP_TRACE messages go through again, and assign them a level ofJean-Francois Brousseau
LOG_DEBUG for the syslog facility ok xsa@
2005-03-26fix a variety of things i found at coverity. ok joris@Ted Unangst
2005-02-22when a log message is generated by the server and is sent toJean-Francois Brousseau
standard error, instead redirect it to standard out with the appropriate `E' prefix to indicate an error response message
2005-02-16properly initialize the syslog_data structureJean-Francois Brousseau
2005-02-15remove the LP_FILTER_TOGGLE operation, which is really pointless, andJean-Francois Brousseau
use a bitmask to keep track of the log filters
2004-12-15Permit the client to generate trace output when the -t option is givenJean-Francois Brousseau
by using the LP_TRACE level to cvs_log(). Traces are filtered by default.
2004-12-07less whitespace, more pretty. ok jfbTed Unangst
2004-12-06tighten vertical spacing for else; jfb okTheo de Raadt
2004-11-28make sure va_end() is always called in all possible pathsPatrick Latifi
ok jfb
2004-08-05Add a new log level LP_ABORT, which modifies the behaviour of prefixJean-Francois Brousseau
generation by outputting something similar to GNU CVS: cvs [<command> aborted]: message
2004-08-05Adapt the logging so any messages generated by the server will beJean-Francois Brousseau
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
2004-07-27Comment out unused code and some minor cleanup. Add the prototype andJean-Francois Brousseau
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.
2004-07-13* initial import from the cvs-tools moduleJean-Francois Brousseau