summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.c
AgeCommit message (Collapse)Author
2006-03-22Clean up xfree() usage in rcs_choosefile().Ray Lai
OK xsa@
2006-03-21add support for `rcs -e[logins]'; "Looks good" ray@.Xavier Santolaria
2006-03-21Instead of duplicating rcs_suffixes and running strsep on it again,Ray Lai
just use the previous suffixes. Since all slashes were replaced with NULs, reading `suffixes' will give the first extension. OK xsa@
2006-03-21Allow creation of an RCS file if RCS_CREATE flag set.Ray Lai
OK xsa@
2006-03-20make `rcs -a' use cvs_strsplit() for easiness; OK joris@.Xavier Santolaria
2006-03-18+/* ARGSUSED */Ray Lai
void sighdlr(int sig) OK niallo@
2006-03-18strdup() -> xstrdup()Ray Lai
Okay xsa@
2006-03-16Follow exit() with /* NOTREACHED*/ for lint.Ray Lai
``OK niallo@'' niallo@
2006-03-16Simplify rcs_statfile() by having it call rcs_choosefile().Ray Lai
ok xsa and niallo
2006-03-15Move and rename checkin_choose_rcsfile() to rcs_choosefile().Ray Lai
ok joris
2006-03-15Don't assume there is an RCS directory just because the filenameRay Lai
contains the letters `RCS'. ok niallo
2006-03-14ci currently doesn't parse the -x flag at all, defaulting to ",v/" everyRay Lai
time. I rewrote checkin_choose_rcsfile() to handle it using these rules: - If a directory structure is given (ci -x,abcd dir/dir2/file) then all RCS files are under dir/dir2. - If the RCS/ directory exists, use it. Otherwise use current directory. - If the -x flag is specified, use those slash-separated extensions. Otherwise, use the default (",v/"). - Look in the rcs directory (RCS/ or current directory) for a file with a matching extension, for each extension. Each extension is tried in order. If a file exists, it is used. If no file exists with any extension, the first one is used. - The empty extension is treated as no extension, because I can't figure out what its special meaning is. It sounds complicated, and the code is kinda complicated as well, but it makes sense if you think about it. ok niallo
2006-03-14OpenRCS currently strips any text in a filename up to and includingRay Lai
the last comma, assuming that it is a `,v' extension. GNU RCS does not do this. This removes that check. ok niallo
2006-03-12plug a memleak in rcs_set_description()Joris Vink
okidoki niallo@
2006-03-11Now that the last diff went in, we just have to remove some checks inNiall O'Higgins
rcs_set_rev() to get the GNU-like behaviour for ci -l0, ci -u0 etc (admittedly its weird behaviour...but hey, we should support it) ok joris@
2006-03-08make openrcs use the worklist framework to keep track of temporary filesJoris Vink
and remove them in case it gets interrupted. suggested by deraadt@, ok niallo@
2006-03-08spacing in usage();Xavier Santolaria
2006-03-06update usage();Jason McIntyre
2006-03-06move compat flags into a STANDARDS section;Jason McIntyre
ok niallo xsa
2006-03-06many spacing cleanupsTheo de Raadt
2006-02-21- fix some bugs when handling strange revision numbers (0 and 1). found byNiall O'Higgins
my automatic tool. ok xsa@
2006-01-25snprintf() cleanup; OK niallo@.Xavier Santolaria
2006-01-06typos;Xavier Santolaria
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-24error message consistency in fatal();Xavier Santolaria
2005-12-24- support for -n -N and -t;Joris Vink
- check for path truncation; - do not pollute flags being passed to rcs_open() with local flags; - fix rcs initialization stuff;
2005-12-21use fatal();Xavier Santolaria
2005-12-14correct usage();Xavier Santolaria
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-09don't complain too often about 'redefinition of revision number',Joris Vink
specially when rev is actually NULL.
2005-11-30`-ztz' is only here for compatibility;Xavier Santolaria
2005-11-28sync usage() for `-xsuffixes';Xavier Santolaria
2005-11-27- fix really stupid bug introduced in the last xsa commit.Niall O'Higgins
problem found by me, joris' eyes spotted the semi colon.
2005-11-25add `-T' support for rcsclean(1) and rcs(1);Xavier Santolaria
2005-11-25add support for `-T' and enable it for co(1);Xavier Santolaria
tested and OK niallo@. "Looks good" joris@.
2005-11-23initial bits for -T support;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-21tweaks;Xavier Santolaria
2005-11-20rcs_statfile() improvements; initial work from joris + some bits from me;Xavier Santolaria
niallo ok
2005-11-12- fix xsa breakage. char arrays on the stack are not NULL if empty. useNiall O'Higgins
flags instead. - add a few more flags defines while i'm here.
2005-11-12- remove strtab stuff. serves no useful purpose.Niall O'Higgins
diff is from joris@, committing on his behalf because his net connection is very dodgy right now.
2005-11-12support for `-Aoldfile'; joris okXavier Santolaria
2005-11-04kill spaces in usage() to match Reality;Xavier Santolaria
2005-11-03- minor KNFNiall O'Higgins
2005-10-27TMPDIR support; joris okXavier 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-19add co -p support;Joris Vink
input from xsa@ and niallo@;