summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
AgeCommit message (Collapse)Author
2008-10-09cvs(1) uses a config file to know about the $OpenBSD$ expansion keyword,Theo de Raadt
but unfortunately rcs is not so lucky, and it will have to encoded inside. A bit gross, but what can we do? PR 5953, ok tobias
2008-09-17try getlogin() to get the real username when comitting files as root.Reyk Floeter
this gives better information in log messages when the user logged in with a different uid and used sudo or su to become root. matches the behaviour of gcvs except that we don't fallback to LOGNAME or USER since getlogin() should not lie. ok tobias@
2008-07-08bump version to 4.4Joris Vink
2008-05-22correctly deal with non-zero depths specified in rcsnum_cmp();Joris Vink
from Stefan Sperling
2008-05-11Memory leak in rcs_delta_stats plugged.Tobias Stoeckmann
ok joris
2008-05-10properly free suffixes.Joris Vink
OK tobias@
2008-05-10OpenRCS only handled a max of 128 arguments on command line + RCSINIT,Tobias Stoeckmann
which was a bogus limit. Spotted by naddy. horribly prodded by and ok joris
2008-04-26Duplicate envstr and free it on error instead of allocating forRay Lai
each argument and freeing each argument on error. OK joris, tobias
2008-04-24Prevent overflow of cmd_argv if RCS_INIT and command line argumentsTobias Stoeckmann
exceed buffer size (diff based on OpenCVS code). ok ray, xsa
2008-03-22Fix the freeing of two uninitialized strings. OK niallo@Todd C. Miller
2008-03-04fix segfault when trying to lock and unlock rcs files thatJoris Vink
contain no revisions. reported by Jean Raby. ok deraadt@
2008-03-02Make sure that temporary file has been successfully opened.Tobias Stoeckmann
ok joris
2008-02-24Bump version. Improvements and fixes since last release.Xavier Santolaria
OK joris@.
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;
2008-01-31Revert last patch and add this magic branch number only duringTobias Stoeckmann
output, this way we don't have to hassle in our internal brach handling. OK joris@
2008-01-22Don't remove magic branch numbers from rcs files, as it breaks compatibilityTobias Stoeckmann
with GNU cvs. OK niallo@, ray@
2008-01-06Branches are separated with \n\t in GNU rcs/cvs.Tobias Stoeckmann
This makes regress tests easier to check with OpenCVS and GNU cvs. OK xsa@
2008-01-06gnu cvs added a new keyword 'commitid', this diff adds just enough codeNikolay Sturm
to parse the commitid so that cvsweb (using rcs) continues to work on those files ok niallo@, xsa@
2008-01-04remove unused functionCharles Longeau
from tobias@ ok xsa@ tobias@
2007-12-23increase the marker buffers, they are not big enough for hg mergeTed Unangst
2007-12-09Fix for an off-by-one.Tobias Stoeckmann
OK fgsch@
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@