summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
AgeCommit message (Collapse)Author
2010-09-11Fixed typo.Tobias Stoeckmann
ok ray, zinovik
2010-09-08Improve buf.c comments, from zinovik.Nicholas Marriott
ok stsp
2010-09-08Set rcs_suffixes to default value on initialization.Tobias Stoeckmann
ok ray zinovik
2010-09-08Use SIZE_LEFT macro to determine left size instead of calculating withTobias Stoeckmann
pointers. ok zinovik
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2010-09-02rcsnum_parse() allocates already an RCSNUM struct, so it's not needed toTobias Stoeckmann
copy it into a newly allocated one (which is even a memory leak). ok zinovik
2010-08-31styleTobias Stoeckmann
2010-08-31Removed ra_uid, which was supposed to save the uid of a delta's author.Tobias Stoeckmann
Is not used and not useful. ok xsa, zinovik
2010-07-31Checking for -1 as an overflow value is pretty absurd. ReturningRay Lai
the unix epoch is equally absurd. Just return Start for now. We may add overflow checks in the future. OK xsa nicm
2010-07-30Check date_parse return values.Ray Lai
OK xsa
2010-07-29Replace abort(), fatal(), and errx() with return -1, since date_parseRay Lai
returns -1 on error. OK nicm
2010-07-28Make BUFs autoextend by default. This was already done in OpenCVSRay Lai
a while ago. OK zinovik nicm
2010-07-23Plug mem leak.Ray Lai
OK nicm
2010-07-23Reduce variable/function name and whitespace differences betweenRay Lai
cvs/rcs. OK xsa zinovik
2010-07-23Sync with cvs:Ray Lai
Clean up struct tm handling. Instead of calling gmtime/localtime and making copies (among other weird dances), use reentrant versions. Not being able to tell the time is a fatal error, so die if that happens. Diff originally from nicm. OK nicm xsa
2010-07-23Rename a bunch of variables and functions, removing the cvs_/rcs_Ray Lai
prefixes to reduce differences between cvs and rcs files. "yes!" nicm
2010-07-22Fix the "no changes" detection when a file has RCS keywords.Todd C. Miller
This is consistent with GNU RCS. Also g/c an unused variable. OK xsa@ nicm@
2010-07-21Only use username if author is NULL. Fixes "ci -wusername" when runRay Lai
as root. OK nicm
2010-07-16Combine two diff_output lines into one, from diff.Ray Lai
OK stsp xsa nicm
2010-07-15Die immediately if pread fails. It's a fatal error so treat it asRay Lai
such. Besides, we weren't handling the NULL being returned. From diff. Minor nit by nicm. OK xsa stsp nicm
2010-07-15Use warnx instead of warn since errno wasn't set. From diff.Ray Lai
OK xsa stsp nicm
2010-07-15Sync with diff/diffreg.c r1.75:Ray Lai
Return -1 on error as advertised. Handle case when only one stream failed. OK xsa, stsp
2010-07-13Don't read before the beginning of the log message if it is zero-lengthNicholas Marriott
(possible when it comes from stdin). Tweaked version of a fix from Peter Hendrickson in PR 6423. ok deraadt
2010-07-09Make cvs and rcs consistent in what characters they'll accept inChristian Weisgerber
symbol/tag names: require the first character to be a letter and allow any printable character (except the RCS specials $,.:;@) afterwards. This matches GNU cvs. ok xsa@ zinovik@ stsp@
2010-04-15remove debugging information from the rcs binary; this saves 200K;Igor Sobrado
a similar change for OpenCVS would save 600K, but we choosed not applying this one yet, as OpenCVS is under development. ok xsa@
2010-04-07rcsdiff doesn't support all diff(1) options,lum
so don't give that impression. ok jmc@ deraadt@ xsa@
2010-04-06Amend manpage to reflect the actual behaviour of -r option.lum
ok jmc@ otto@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-15ident(1) does not require arguments; while here, note that thisIgor Sobrado
program uses the standard input, not the standard output, when no filenames are provided. ok xsa@
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