summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rlog.c
AgeCommit message (Collapse)Author
2011-07-14spacing, no binary change.Igor Sobrado
2010-07-30Check date_parse return values.Ray Lai
OK xsa
2010-07-23Reduce variable/function name and whitespace differences betweenRay Lai
cvs/rcs. OK xsa zinovik
2009-02-15support rlog -dJoris Vink
prodded & tested by sthen@
2008-02-02Fix broken indentation introduced in last commit.Xavier Santolaria
Spotted by Pierre Riteau.
2008-02-02From src/usr.bin/cvs:Xavier Santolaria
> add changed lines support to log and rlog (the + and - stuff) > from Pierre Riteau;
2007-09-09Have rlog exit 1 if any of the files could not be opened.Ray Lai
Don't mention -q flag, which is there for compatibility. From Pierre Riteau. OK joris for first part, OK niallo and jmc for second.
2007-06-30Sync revisions and time buffers size to be consistent with each others.Xavier Santolaria
Simplifies further size tweaks if needed. OK ray@.
2007-02-27As done in OpenCVS, general includes cleanup sweep. OK otto@.Xavier Santolaria
2006-10-12- convert some warnx() to warn(), which fixes a few stupidly un-informative ↵Niall O'Higgins
error messages (found by tom@) - make rcs_choosefile() save wrt errno, input from ray@ ok joris@ xsa@
2006-05-27Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),Ray Lai
handling exceptions oddly. OK joris@
2006-05-09Remove /* NOTREACHED */ comments, now that lint is smart aboutRay Lai
__dead. I never should have put them there. OK xsa@.
2006-04-28fix date format output if a timezone is specified (-z);Xavier Santolaria
2006-04-26prevent file races by obtaining an fd for the RCS file andJoris Vink
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@
2006-04-26fork our code we shared between openrcs/cvs into the openrcs dir.Joris Vink
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.
2006-04-25fatal() -> err()/errx() as we try to not depend on heavy cvs_log().Xavier Santolaria
OK joriski.
2006-04-21move shared functions into rcsutil.[ch]; this makes rcsprog.c cleaner;Xavier Santolaria
"the voices in my head say OK!" joris@.
2006-04-21remove overkill cvs_log() and rather use warn()/warnx().Xavier Santolaria
OK ray@ and discussed with joris@.
2006-04-19switch -q handling to bitwise flags; OK ray@ niallo@.Xavier Santolaria
2006-04-15dont stupidly duplicate code. make rlog use rcs_rev_select() and thusXavier Santolaria
nuke rlog_rev_select(). OK niallo@.
2006-04-14- don't append the extension if it's already there (PR 5076).Joris Vink
- 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@
2006-04-14Remove global variable RCSFILE.Ray Lai
OK joris@
2006-04-14Remove extraneous argument from rlog_file().Ray Lai
OK joris@
2006-04-14Short-circuit rlog when the -l flag is specified but there are no locks.Ray Lai
OK joris@
2006-04-14excessive addition to brackets is a mental disease. you will goTheo de Raadt
blind, too. seek help. no binary change, ok joris
2006-04-13fix -z option for openrcs, this was broken by xsaJoris Vink
when he yanked the code out of rcs.c and placed it in rcstime.c. struct tm ltb, *tb; tb = &ltb; return (tb); isn't really the most perfect idiom to return a value to the caller, now is it? as a bonus -z for rlog now works too. okay niallo@
2006-04-10- zap some whitespace.Niall O'Higgins
2006-04-06-z can take no argument.Xavier Santolaria
2006-04-06small knf;Xavier Santolaria
2006-03-30Add rlog -r[REV1][:][REV2] supportRay Lai
From Pierre-Yves Ritschard. OK niallo@
2006-03-28match GNU's output when no revision are present.Xavier Santolaria
2006-03-27Plug a memory leak for all cvs_strsplit call sites; ok xsa@Patrick Latifi
2006-03-24Allow the -x flag to be used without an extension.Ray Lai
``that makes sense'' xsa@
2006-03-23rlog_file() will never return non-zero; change its return type to void.Xavier Santolaria
2006-03-20add missing xfree()'s after we are done with cvs_strsplit();Xavier Santolaria
spotted by ray@, OK joris@.
2006-03-17rlog_strsplit() -> cvs_strsplit() and move it to util.c so it can be reusedXavier Santolaria
by `cvs log' and some other RCS utilities. "Looks good" ray@.
2006-03-16Follow exit() with /* NOTREACHED*/ for lint.Ray Lai
``OK niallo@'' niallo@
2006-03-08fix usage();Xavier Santolaria
2006-03-07missing break;Xavier Santolaria
2006-03-07-z support for RCS;Joris Vink
2006-03-06update usage();Jason McIntyre
2006-03-06move compat flags into a STANDARDS section;Jason McIntyre
2006-01-25add support for `-l[lockers]'. Some (needed) cleanup will follow.Xavier Santolaria
Test & OK niallo@.
2006-01-24print locker's name if revision is locked;Xavier Santolaria
2006-01-23display usage if an unknown option is specified;Xavier Santolaria
2006-01-23add support for `-sstates' and `-w[logins]' options; tested and OK niallo@.Xavier Santolaria
2006-01-05cleanup, move log.h and rcs.h inclusion into rcsprog.h;Xavier Santolaria
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-27- rlog(1) needs RCS_PARSE_FULLY too.Niall O'Higgins
2005-12-02split the printing part into a separate function, rlog_rev_print();Xavier Santolaria
might be useful for future work needed in rlog(1);