summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.c
AgeCommit message (Collapse)Author
2006-01-05cleanup, move log.h and rcs.h inclusion into rcsprog.h;Xavier Santolaria
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-27- implement lazy-parsing of rcs files, that is only parse as much as weNiall O'Higgins
need. this can save us much work, particularly with very large rcs files. first of a few important performance improvements. ok joris@
2005-12-23support co -d, which checks out the first revision who'sJoris Vink
date is less than or equal to the given date.
2005-12-21Initialize basepath right after xmalloc()ing it so we won't end up withAleksander Piotrowski
not NUL-terminated buffer passed to strlcat() ok joris@
2005-12-20spread the use of fatal();Xavier Santolaria
2005-12-19use fatal() if getlogin() fails;Xavier Santolaria
2005-12-12- sync usage() for `-tfile|str'Xavier Santolaria
- nuke trailing whitespace
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-12-09unused vars, my bad;Joris Vink
2005-12-08complete and correct rcs locking functionality,Joris Vink
it was only done partially and as a bonus, completely wrong. seriously guys what was up with that?
2005-12-03- whoops, its -t-string or -tfile, not the other way aroundNiall O'Higgins
- sync checkin_usage() with reality
2005-12-03- add support for -t[description] and -t-[file containing description]Niall O'Higgins
2005-12-02in checkin_checklock()Xavier Santolaria
- make it work as expected (e.g. when no lock set at all too) - add missing word in error message - minor knf
2005-12-02better..Xavier Santolaria
2005-12-02in checkin_update():Xavier Santolaria
- move up the lock check - better error message if a specified rev is too low OK niallo@.
2005-12-02- fix up checkin_choose_rcsfile() to give us a path like the one GNU print,Niall O'Higgins
instead of always returning an absolute path. ok joris@
2005-12-02- fix a typo in a commentNiall O'Higgins
2005-11-28sync usage() for `-xsuffixes';Xavier Santolaria
2005-11-28shrink some multi-lines comments;Xavier Santolaria
2005-11-28consistency in error messages;Xavier Santolaria
2005-11-27- only do one rcs_statfile() instead of two; simplify some logic.Niall O'Higgins
2005-11-27- checkin_init() IS now implemented; update comment with this happyNiall O'Higgins
new reality.
2005-11-24memset();Xavier Santolaria
2005-11-23knf;Xavier Santolaria
2005-11-23initial bits for -T support;Xavier Santolaria
2005-11-22- ci(1) can intialise RCS files now!Niall O'Higgins
- support for -j added - support for -i added ok joris@ xsa@
2005-11-22nuke trailing whitespaces; no cookie for niallo.Xavier Santolaria
2005-11-21enable `-xsuffixes' support as it has been added a few days agoXavier Santolaria
in rcs_statfile(); niallo ok
2005-11-21- modularisation; split the two major checkin operations into functions.Niall O'Higgins
- modularisation; split the revert code into checkin_revert() - a few steps closer to rcsfile initialisation, but things need to be fixed in the rcs.c api first (currently we segfault). - add a new checkin_choose_rcsfile() function to decide where the rcsfile should go. - add a special case for ci to rcs_statfile() so that we don't print out an error if the rcsfile doesn't exist.
2005-11-17- "revdate" is something else - function should be calledNiall O'Higgins
checkin_mtimedate() for clarity.
2005-11-17- split -d handling into function checkin_setrevdate()Niall O'Higgins
2005-11-17- spelling fixNiall O'Higgins
- minor KNF
2005-11-16- add comments for functions.Niall O'Higgins
2005-11-16lots of changes to allow greater code re-use and modularisation, along withNiall O'Higgins
some support code for rcs file initialisation and -i and -j options (not yet implemented though). no functional changes.
2005-11-08missing casts;Xavier Santolaria
2005-11-02- kill two unused constant definitions.Niall O'Higgins
2005-11-02- sync checkin_usage()Niall O'Higgins
2005-11-02changes from Venice:Niall O'Higgins
- instead of using lots of individual flag variables, use a single int and bitwise operations on it. while this saves memory, really it saves code space and reduces complexity. checkout_rev() and checkout_state() in particular benefit from these changes since their parameters where growing really long. - implement `-s' option in co - implement `-M' option in ci "I like this, go for it" joris@
2005-10-30string fix;Xavier Santolaria
2005-10-29- sync checkin_usage()Niall O'Higgins
2005-10-29- add two new functions to RCS api: rcs_state_set() and rcs_state_check()Niall O'Higgins
- use these two new functions to implement -s<state> option in ci ok joris@
2005-10-27TMPDIR support; joris okXavier Santolaria
2005-10-25minor knf;Xavier Santolaria
2005-10-25nuke trailing whitespaces;Xavier Santolaria
2005-10-19- make a bunch of changes to how we handle verbose output. this brings usNiall O'Higgins
much closer in line with GNU RCS and cleans things up in general. ok joris@, "looks fine to me" xsa@
2005-10-18- no point in using cvs_printf() in openrcs;Joris Vink
- only output info messages if -q flag isn't given;
2005-10-18use rcs_set_rev() instead of duplicating code all over theJoris Vink
place to set a variable to the given revision number;
2005-10-18correctly handle locks when commiting something;Joris Vink
2005-10-17- remove a printf which kept in by accident.Niall O'Higgins