summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcsnum.c
AgeCommit message (Collapse)Author
2008-05-22correctly deal with non-zero depths specified in rcsnum_cmp();Joris Vink
from Stefan Sperling
2008-03-01goodbye rcs_errno - we didnt use you and you wont be missedJoris Vink
2008-02-09- always remove the additional .0 from magic branches, even whenJoris Vink
running the log command. - change getlog.c so it will add any .0 for magic branches in its output if required less confusing for rcs_translate_tag();
2008-01-31Handle magic branch numbers in OpenCVS as well.Tobias Stoeckmann
OK joris@
2008-01-10Slap in -b support for tag command. It was missing for a full regress testTobias Stoeckmann
as of now.
2007-12-09Fix for an off-by-one.Tobias Stoeckmann
OK fgsch@
2007-09-24add support to commit modified files to branches.Joris Vink
2007-09-04Replaced strlen() with sizeof() - 1 when #define'd strings are used.Tobias Stoeckmann
OK ray@
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-26More comment typos from Diego Casati. Including winners like funtion, allmost,Kenneth R Westerback
oustside, seqencer, toghether, nessissary, etc.
2007-05-12Change 0x30 to more readable '0'.Ray Lai
OK xsa@.
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-02-21Replace a manual xrealloc with rcsnum_setsize.Ray Lai
From Charles Longeau <chl at tuxfamily dot org>. OK joris@.
2006-11-13Check strlcpy/strlcat return values; from usr.bin/rcs/rcsnum.cXavier Santolaria
2006-07-27Pull in improper memory allocation from RCS:Ray Lai
> Not were we allocating memory for a pointer array, it wasn't even for > the right variable! Fixes make regress with MALLOC_OPTIONS=PR. > > Found by and fix worked on with Joris.
2006-05-31be smarter when comparing 2 revisions to each other.Joris Vink
2006-05-27commit the new opencvs code, i have been hacking onJoris Vink
this for the past 2 weeks now and it should go in at the start of the hackathon so others can help out. this code is a lot safer, smarter, faster and best of all it is actually doing what it is suppose to do! basic checkout, update, status, diff and commit are working in local mode only. there is no support for any remote setups now.
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-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
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-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-30 - Comment fixes.Ray Lai
- int rcsnum_cpy() -> void rcsnum_cpy(). - Check for overflow in rcsnum_cpy(). OK niallo@
2006-03-28Today is Integer Overflow Prevention Day:Ray Lai
- Sync xmalloc.? with ssh versions. - Change all xrealloc() calls to new API. ``I really like this.'' niallo@
2006-03-18Change code to match comments, fixing potential off-by-one error.Ray Lai
According to the comments, the lowest number should be 1. not okay, then okay niallo@
2006-03-15remove some bizzare idioms; ok rayTheo de Raadt
2006-03-11- implement GNU-compatible handling of revisions specified as singleNiall O'Higgins
digits. e.g. ci -l4 or ci -u5 will work like GNU now. ok joris@
2006-03-11Fix rcsnum_tostr() description.Ray Lai
ok joris
2006-01-28- don't segfault on rcsnum overflow.Niall O'Higgins
ok joris@
2006-01-03knf;Xavier Santolaria
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-30knfReyk Floeter
2005-12-27- optimise rcsnum_tostr(). we call this function a LOT and using multipleNiall O'Higgins
snprintf()s in it is SLOW. second of a few important performance improvements. ok joris@
2005-12-12rcsnum_alloc() and rcsnum_cpy() no longer can fail, so don'tJoris Vink
bother checking return values for failure. ok xsa@
2005-12-10switch to xmalloc stuff, me and xsa@ agreed on this a longJoris Vink
time ago, but we were being held back by jfb. too bad for him. next step is to use fatal() through out the code for unrecoverable errors instead of trying to be all nice and fluffy and reach main() again. ok niallo@ and xsa@
2005-10-10add rcsnum_dec() api call, decreases a revision number by one.Joris Vink
ok niallo@
2005-09-19Add preprocessor directives needed for usr.bin/rcs programs to compile.Niall O'Higgins
ok joris@
2005-08-02handle magic branch numbers.Joris Vink
ok xsa@, jfb@
2005-07-25KNF;Xavier Santolaria
2005-07-25KNF;Xavier Santolaria
2005-05-31headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;Xavier Santolaria
2005-05-26add a couple of functions to go from branch numbers to revisions andJean-Francois Brousseau
vice versa, and fix RCSNUM_ISBRANCH()
2005-04-13make rcsnum_tostr() return an empty string if the RCSNUM is NULLJean-Francois Brousseau
2005-03-05add RCS error codes and a global variable to hold the last errorJean-Francois Brousseau
and make the code less verbose at the same time
2005-02-25- switch to rcsnum_parse() where appropriateJean-Francois Brousseau
- make rcsnum_parse() fail if it encounters an invalid character
2005-02-25add rcsnum_parse() to simplify the most common caseJean-Francois Brousseau
2005-01-03limit the maximum length of RCS numbers to 64 nums and avoidJean-Francois Brousseau
potential integer overflow in case of ridiculously large RCSNUMs
2004-12-10proper typecast to get rid of another warningJean-Francois Brousseau
2004-12-07less whitespace, more pretty. ok jfbTed Unangst