summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
AgeCommit message (Collapse)Author
2009-07-14don't use both extern and static decls for a variable.Jonathan Gray
ok millert@
2009-06-25incorrect .PATH setting, discovered with nicmTheo de Raadt
2009-06-07More cvs/diff/rcs convergence:Ray Lai
1. Mostly variable/function renaming, SIZE_T_MAX->SIZE_MAX, and spacing. 2. One strchr -> strncspn. 3. diff had a weird thing where it set file[12] = ofile[12] but never updated file or ofile, then if file and ofile were different it freed it. I removed it. OK millert
2009-04-14tried to fix a the-the in the comment, ended up rewriting it. with/from joris@Janne Johansson
2009-02-25Checking if a file is ASCII should only be done when diffing, becauseRay Lai
the non-ASCII characters could be printed to the screen. For checking in files, checking out files, merging files, and removing revisions of files, we do so regardless of whether the files are ASCII or binary. Fixes PR6031. OK joris and deraadt.
2009-02-15add our temporary RCS file to our temp_files worklist in caseJoris Vink
for some reason we get interrupted before calling rename(). we hate leaving behind temporary files.
2009-02-15bump version to match next releaseJoris Vink
2009-02-15support rlog -dJoris Vink
prodded & tested by sthen@
2008-11-09typo fixed (overriden -> overridden)Tobias Stoeckmann
ok espie, jmc
2008-11-09Removed unneeded conversion from RCSNUM to string in rcs_rev_setlog.Tobias Stoeckmann
oki joris@
2008-11-08Support for retrieving revisions from branches in branches was missing.Tobias Stoeckmann
Reported by chl@, ok joris@
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@.