summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
AgeCommit message (Collapse)Author
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-09From Pierre Riteau:Ray Lai
Sync ident behavior with GNU RCS: - return 1 to the shell if any file could not be opened. - print an empty line after processing a file unless we couldn't open it (and not for the last one). OK niallo.
2007-09-09Mention -q in compatibility section.Ray Lai
OK jmc.
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-09-06strictly check rcsnum_cmp() return against -1.Niall O'Higgins
fixes a bug in ci -r from Pierre Riteau <pierre.riteau at free.fr> via ray@
2007-08-27typo in error msg; from Igor Zinovik.Xavier Santolaria
2007-08-26add a description for -ztzIgor Sobrado
ok xsa@
2007-07-19Sync with cvs:Ray Lai
> xcalloc is unneeded here since i is always 0 and we always use the > memory after initializing it. > > Initial diff from Igor Zinovik. > > OK niallo and xsa.
2007-07-03Rename rcs_diffreg() to diffreg().Ray Lai
OK joris@
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-06-29Sync cvs/rcs diff code.Ray Lai
OK joris and xsa.
2007-06-28diff(1) sync, mostly spacing and moving crap around, except:Ray Lai
- stone() and newcand() cannot return < 0, so don't check it. - \r, \v, \f are also whitespace OK joris
2007-06-28Some syncs with diff(1):Ray Lai
- prepare() only returns 0, so change it to void and remove code that checks its return value. - Rename diff_len[] to len[]. - Remove casts that made the code a no-op: (size_t)filesize <= SIZE_MAX OK xsa
2007-06-26allow ci -N<tag name> even when no changes. mimics GNU behaviour.Niall O'Higgins
based on a diff from Tero Koskinen <tero.koskinen at iki.fi> ok joris@
2007-06-13value of 'author' in an rcs file is effectively a system username.Niall O'Higgins
therefore, we should allow it to contain the same characters as a username. pointed out by jcs@ ok ray@ xsa@
2007-06-12Allow checkin without locking (after rcs -U). Matches GNU's behaviour.Xavier Santolaria
Problem reported by itojun@. Tests itojun@; OK niallo@.
2007-06-08If strict locking is disabled, make file writable by owner on checkout.Xavier Santolaria
Matches GNU's behaviour. From Pierre Riteau (long time ago).
2007-06-07Correct exit value when one of the files specified cannot be checked out.Xavier Santolaria
Matches GNU's behaviour. From Pierre Riteau (long time ago).
2007-05-31missing `&';Jason McIntyre
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30document \&$Mdocdate$; prodded by xsaJason McIntyre
2007-05-30Remove cand structure (but not its definition).Ray Lai
2007-05-30Remove unused struct diff_arg.Ray Lai
2007-05-29Get rid of another useless variable, another difference between ourRay Lai
diff code and diff(1). OK niallo@
2007-05-29Since xrealloc dies on failure it is safe to directly assign to theRay Lai
original pointer. Theo agrees, and so does the rest of the tree (ssh, etc. all do this already). Saves a bunch of variables and assignments. OK niallo@
2007-05-28Some spacing syncs with diff(1).Ray Lai
2007-05-28"in formation" -> "information"Ray Lai
OK niallo@
2007-05-28Line up comments with the rest of the file, like in diff(1).Ray Lai
2007-05-17Don't free unused variable, from tbert.Ray Lai
OK niallo && xsa
2007-05-12Change 0x30 to more readable '0'.Ray Lai
OK xsa@.
2007-04-26replace REV, REV1 and REV2 with rev, rev1 and rev2, respectively;Igor Sobrado
substitute BRANCH, BRANCH1 and BRANCH2 with branch, branch1 and branch2 ok by jmc@, niallo@, and xsa@
2007-04-26replace D, D1 and D2 by date, date1 and date2 respectively;Igor Sobrado
date1<date2 implies date2>date1, not date2<date1 ok by jmc@, niallo@ and xsa@
2007-04-26`[-sstate[:rev]]' is not available in rcs(1)Igor Sobrado
ok by jmc@, niallo@, and xsa@
2007-04-26the message returned by usage() must fit on a 80-column displayIgor Sobrado
ok by jmc@, niallo@, and xsa@
2007-04-26compatibility (`do nothing') options do not need to be announcedIgor Sobrado
in the synopsis/usage(); we do not want `[-L label]' three times ok by jmc@, niallo@, and xsa@
2007-04-26replace tabs by spaces in the message returned by usage()Igor Sobrado
ok by jmc@, niallo@, and xsa@
2007-04-23chopping the end of this sentence off made more sense than fixing it;Jason McIntyre
ok xsa
2007-04-21Add a reference to the original RCS paper.Jonathan Gray
ok joris@ xsa@ jmc@
2007-04-16file argument is not mandatory, say so.Xavier Santolaria
from Pierre Riteau via ray@; OK jmc@.
2007-03-27sync with espie@'s latest change to diff(1).Xavier Santolaria
from src/usr.bin/diff/diffreg.c rev 1.67: improve -p for C++ code: classes definition often have public:/protected:/private: at the start of line. This lets the -p scanner just take note of the section and keep looking for the actual class definition. Also increase function name bufsize so it shows most of these pesky C++ decls... OK niallo@ espie@.
2007-03-15When commiting multiple files with ci, the flags from the previousAlexander Bluhm
files affected the later ones. ok niallo@ xsa@
2007-03-03make this modern CTheo de Raadt
2007-03-02Sync rcsnum.c with OpenCVS, from Charles Longeau.Ray Lai
OK niallo@ and xsa@.
2007-02-27As done in OpenCVS, general includes cleanup sweep. OK otto@.Xavier Santolaria
2007-02-22If a ,suffix file is given as an arg to ci and co, strip it. AvoidsOtto Moerbeek
potential disasters. Initial diff from niallo@, ok niallo@ joris@
2007-02-22Fix const inconsistencies, void pointer artithmetic;Xavier Santolaria
Based on diff from otto@ in OpenCVS. OK otto@.
2007-02-21make sure checkout_rev() sets correct file permissions via file->rf_modeNiall O'Higgins
in case where fstat() of file->rf_fd won't give us right mode. fixes PR #5383 ok xsa@
2007-02-18keep correct permissions on the RCS file when locking/unlocking the fileXavier Santolaria
with ci and co. fixes PR 5379. OK millert@ joris@.
2007-02-16Correct function name in comment.Ray Lai
From Pierre Riteau <pierre dot riteau at free dot fr>. OK xsa@.