Age | Commit message (Collapse) | Author |
|
which was a bogus limit. Spotted by naddy.
horribly prodded by and ok joris
|
|
Simplifies further size tweaks if needed.
OK ray@.
|
|
|
|
OK joris@ ray@.
|
|
discussed with joris@.
|
|
|
|
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.
|
|
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@
|
|
"the voices in my head say OK!" joris@.
|
|
OK ray@ and discussed with joris@.
|
|
|
|
|
|
reducing some complex fats from ci.c.
OK joris@
|
|
ok joris@ xsa@
|
|
nuke rlog_rev_select(). OK niallo@.
|
|
|
|
|
|
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@
|
|
just confuse the user.
ok and input joris@
|
|
|
|
``put it all in'' joris@
|
|
Prevents bitfield pollution between the two.
``This is how it should be.'' niallo@
|
|
function to be used by rcs.
|
|
ok joris
|
|
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
|
|
and remove them in case it gets interrupted.
suggested by deraadt@, ok niallo@
|
|
quite a lot of parsing code.
|
|
|
|
|
|
date is less than or equal to the given date.
|
|
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@
|
|
it was only done partially and as a bonus, completely wrong.
seriously guys what was up with that?
|
|
|
|
|
|
|
|
tested and OK niallo@. "Looks good" joris@.
|
|
|
|
|
|
|
|
in rcs_statfile();
niallo ok
|
|
|
|
flags instead.
- add a few more flags defines while i'm here.
|
|
|
|
- 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@
|
|
|
|
input from xsa@ and niallo@;
|
|
|
|
place to set a variable to the given revision number;
|
|
'fine' niallo@
|
|
ok niallo@
|