summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
2006-05-03Use xasprintf and xfree.Ray Lai
``But i thought it already went in...'' xsa@
2006-05-01- fix a case in rcs_getrev() handling of branches where variant was not beingNiall O'Higgins
increased and thus no progress could be made in the loop. bug noticed in rcsdiff(1) by sturm@ ok joris@
2006-04-29Remove dead code.Ray Lai
OK niallo@
2006-04-27document revisions and state; ok xsaJason McIntyre
2006-04-25check rcs_head_set() return value.Xavier Santolaria
2006-04-20change cvs_log() and cvs_vlog() return type to void; OK niallo@.Xavier Santolaria
2006-04-19keyword section is in rcs(1) now;Jason McIntyre
2006-04-19move the keyword substitution section from cvs(1) to rcs(1):Jason McIntyre
this keeps the docs correct, and according to xsa is the correct place for it anyway... ok xsa niallo
2006-04-17Remove unused variable.Ray Lai
Found by lint. OK joris@
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-14- swap a hack for a slightly nicer hack using a global variable. this avoidsNiall O'Higgins
adding a really nasty hack to make some upcoming rlog fixes from joris work. ok joris@
2006-04-14spacingTheo de Raadt
2006-04-14more nasty spaces go bye byeTheo de Raadt
2006-04-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
2006-04-13Change rcs_parse_init() to return void, since it always returned 0.Ray Lai
Remove unused variables found by lint. Some parts OK xsa@, ``throw it in :)'' joris@
2006-04-13add support for the openrcs -o'range' option.Joris Vink
-o allows users to delete revisions in the specified RCS files. example: rcs -o1.4:1.6 foo deletes revisions 1.4 - 1.6 rcs -o1.3 foo deletes revision 1.3 joint work with niallo@ okay niallo@
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-13fix the obviously broken cvs_buf_set(), so we don't end upJoris Vink
getting our buffer reset to 0 (empty) all the time. i noticed this when i was trying to fix -z for keyword expansion. sigh. okay niallo@
2006-04-13Add error checking for vasprintf. Stylistic suggestions from xsa@.Ray Lai
OK xsa@
2006-04-12Better match GNU behavior for rcs -l and rcs -u.Ray Lai
Save 2 bytes of newlines. OK joris@
2006-04-12yet another missing break;Xavier Santolaria
2006-04-12missing break; "Yeah, obvious" ray@.Xavier Santolaria
2006-04-12check for inflateReset() and deflateReset() return values; OK niallo@.Xavier Santolaria
2006-04-12xmalloc(); memset(); -> xcalloc();Ray Lai
OK xsa@
2006-04-11Don't close() before fatal().Ray Lai
OK joris@, niallo@, and xsa@.
2006-04-11Change cvs_buf_grow() to return void, since it cannot fail, andRay Lai
just use xrealloc, since it handles the case of an unallocated buffer anyway. (b->cb_buf should be NULL if the space is unallocated.) ``Tested & looks OK to'' niallo@.
2006-04-10make sure we add the correct name mkstemp(3) creates for usJoris Vink
to the worklist of temporary files. this way we definatly don't leave any files behind in /tmp. tested & okay niallo@
2006-04-10- use fchmod() instead of chmod() in cvs_buf_write_stmp(), makesNiall O'Higgins
it like cvs_buf_write() - print warning on fchmod() failure (suggested by ray) ok joris@ ray@
2006-04-10rcs_kflag_usage() is not used by usr.bin/rcs; OK joris@.Xavier Santolaria
2006-04-10sync comments with reality.Xavier Santolaria
2006-04-10change rcs_kwexp_set() return type to void and simplify its use. OK niallo@.Xavier Santolaria
2006-04-06cvs_buf_copy() and cvs_buf_peek() are not used by usr.bin/rcs; OK niallo@.Xavier Santolaria
2006-04-06rcsnum_setsize() will never return non-zero; change its return type to void.Xavier Santolaria
2006-04-05Use variable names for sizeof, remove casts in front of xmalloc,Ray Lai
use xcalloc and xstrdup where appropriate, and other stuff. OK joris@
2006-04-02some characters are in fact allowed in symbol names, don't freakJoris Vink
out when we encounter them, but handle them correctly. fixes an issue i ran into when running opencvs update on my local tree;
2006-04-02Enable DEBUG=-g -ggdb for rcs, move -g -ggdb out of CFLAGS for cvs.Ray Lai
Line up flags while I'm at it. OK to add DEBUG flags to rcs niallo@.
2006-04-02spacing;Joris Vink
2006-04-02be more alert for string truncation in cvs_initlog()Joris Vink
2006-04-01fix some bugs that lint discovered for us.Joris Vink
ok niallo@
2006-04-01don't use mode_t with va_arg(), use int instead and cast it later toJoris Vink
mode_t. doing it the other way around isn't portable as mode_t may vary from int on some systems to short on others. noticed by deraadt@
2006-04-01cvs_initlog() returns a value that is never used, zap it.Joris Vink
2006-04-01improve import a bit:Joris Vink
- create directory and files with the correct permissions - correctly add the branch revision to the branch list of the head revision
2006-03-30hmm, let's not use fatal() when we cannot find a branch instead return NULLJoris Vink
so the caller can identify the branch is not there and take correct action.
2006-03-30zap unused variable, niallo@ noticedJoris Vink
2006-03-30first part of supporting branches in openrcs. right now we can onlyJoris Vink
check them out. commit is not working yet, but will be soon. tested by myself and ray@ okay ray@
2006-03-30Add rlog -r[REV1][:][REV2] supportRay Lai
From Pierre-Yves Ritschard. OK niallo@
2006-03-30 - Comment fixes.Ray Lai
- int rcsnum_cpy() -> void rcsnum_cpy(). - Check for overflow in rcsnum_cpy(). OK niallo@
2006-03-29Yet more lint:Ray Lai
- Explicitly test for -1 from read(2) and write(2). - Change negative parameters to 0 for rcsnum_cmp(). (I think xsa@ had a patch for this earlier.) - Remove unused variables. - Changed return types to void if we only return one value. - Fix possible one-character truncation in rcs_deltatext_set(). - Use memcpy() to copy u_char arrays. - Use ptrdiff_t to hold pointer differences. - int -> size_t for sizeof/strlen ``looks fine'' xsa@
2006-03-28Finally. Basically, rcs_parse_delta() doesn't understand thatRay Lai
sometimes there are no revisions, and that it is not an error. This makes it so that if rcs_parse_delta is called and the only thing that is found is the description, we know that there are no more revisions. Fixes ``rcs -i file; rlog file''. OK xsa@
2006-03-28xmalloc(num * size) -> xcalloc(num, size)Ray Lai
asprintf -> xasprintf Remove asprintf check, which was non-portable anyway. ``okidoki'' xsa@