summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rlog.c
AgeCommit message (Collapse)Author
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);
2005-11-28sync usage() for `-xsuffixes';Xavier Santolaria
2005-11-21enable `-xsuffixes' support as it has been added a few days agoXavier Santolaria
in rcs_statfile(); niallo ok
2005-11-17indent;Xavier Santolaria
2005-10-28print RCS file info too;Xavier Santolaria
2005-10-28add support for `-L'; niallo okXavier Santolaria
2005-10-26print locker's name and rev number for locked revisions; ok joris nialloXavier Santolaria
2005-10-26correct -R behaviour;Xavier Santolaria
2005-10-25-T is kept for compatibility with other RCS commands here too;Xavier Santolaria
2005-10-25missed that in previous commit;Xavier Santolaria
2005-10-24output tweaks;Xavier Santolaria
2005-10-13To be fully compatibly with the GNU RCS tools we need to have theJoris Vink
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@