summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.h
AgeCommit message (Collapse)Author
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
2007-06-30Sync revisions and time buffers size to be consistent with each others.Xavier Santolaria
Simplifies further size tweaks if needed. OK ray@.
2006-08-11correctly handle merge(1) and rcsmerge(1) -e and -E flags; tests and OK ray@.Xavier Santolaria
2006-05-15missing bits for a working merge(1). Built and enabled.Xavier Santolaria
OK joris@ ray@.
2006-04-27zap util.[ch] and move the content into rcsutil.[ch].Xavier Santolaria
discussed with joris@.
2006-04-26remove dup of <err.h>Xavier Santolaria
2006-04-26fork our code we shared between openrcs/cvs into the openrcs dir.Joris Vink
this was starting to become inhuman to maintain without ugly ugly hacks in the shared code, and it will be easier to make specific changes for openrcs without touching the soon-to-be-replaced opencvs code.
2006-04-24o Better match GNU behavior (a bare -t does NOT read from stdin,Ray Lai
unlike rcs). o Share code with rcs by moving rcs_set_description() to rcsutil.c. o Change description prompt from #define to const char *. OK xsa@
2006-04-21move shared functions into rcsutil.[ch]; this makes rcsprog.c cleaner;Xavier Santolaria
"the voices in my head say OK!" joris@.
2006-04-21remove overkill cvs_log() and rather use warn()/warnx().Xavier Santolaria
OK ray@ and discussed with joris@.
2006-04-21switch -p handling to bitwise flags; OK ray@.Xavier Santolaria
2006-04-19switch -q handling to bitwise flags; OK ray@ niallo@.Xavier Santolaria
2006-04-18Combine code to prompt user for input into a shared function,Ray Lai
reducing some complex fats from ci.c. OK joris@
2006-04-16- fix description handling.Niall O'Higgins
ok joris@ xsa@
2006-04-15dont stupidly duplicate code. make rlog use rcs_rev_select() and thusXavier Santolaria
nuke rlog_rev_select(). OK niallo@.
2006-04-13*** empty log message ***Ray Lai
2006-04-12spacesTheo de Raadt
2006-04-12Clean up <rev> handling. Whenever a revision is specified after aRay Lai
flag, it calls one of two new functions: rcs_setrevstr() or rcs_setrevstr2(). rcs_setrevstr() sets a string to another string, and complains if it was set more than once. rcs_setrevstr2() takes two strings, sets one after the other, and fatal()s if more than two strings were given. All <rev> handling is now done in the loop that goes through each argv. This is necessary for parsing symbols, which will be much easier after this. Along the way a lot of memory leaks were cleaned up. There is one area where rcs_set_rev() is called, which allocates a RCSNUM and stores it in pb.newrev, but it segfaults whenever I try to rcsnum_free() it. I put an /* XXX */ comment there for now. Passes regression tests and the code is less complicated in some ways (to me). Suggestions and OK xsa@
2006-04-09- don't print out warnings about locking when they are actually wrong andNiall O'Higgins
just confuse the user. ok and input joris@
2006-04-07change rcs_set_mtime() return type to void.Xavier Santolaria
2006-04-01Add rcs -l, rcs -u, and regression tests.Ray Lai
``put it all in'' joris@
2006-04-01Keep cvs flags in `flags', rcs flags in `rcsflags' in rcsprog.h.Ray Lai
Prevents bitfield pollution between the two. ``This is how it should be.'' niallo@
2006-03-15- add util.h, reorganising a bunch of things and exposing cvs_yesno()Niall O'Higgins
function to be used by rcs.
2006-03-15Move and rename checkin_choose_rcsfile() to rcs_choosefile().Ray Lai
ok joris
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-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-02-16- finally add proper support for `ci -k`. this little-used option requiresNiall O'Higgins
quite a lot of parsing code.
2006-01-06typos;Xavier Santolaria
2006-01-05cleanup, move log.h and rcs.h inclusion into rcsprog.h;Xavier Santolaria
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-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-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-06knf; spaces vs. tabs;Xavier Santolaria
2005-12-05hrmz..Xavier Santolaria
2005-12-05ooops, missed that in previous commit; unbreak;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-25indent;Xavier Santolaria
2005-11-23initial bits for -T support;Xavier Santolaria
2005-11-22cleanup;Xavier Santolaria
2005-11-21enable `-xsuffixes' support as it has been added a few days agoXavier Santolaria
in rcs_statfile(); niallo ok
2005-11-16nuke trailing whitespace;Xavier Santolaria
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-08nuke trailing whitespaces;Xavier Santolaria
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-27TMPDIR support; joris okXavier Santolaria
2005-10-19add co -p support;Joris Vink
input from xsa@ and niallo@;
2005-10-18more rcsmerge(1) bits;Xavier Santolaria
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-17support -f flag for co;Joris Vink
'fine' niallo@
2005-10-15RCSINIT support;Joris Vink
ok niallo@