Age | Commit message (Collapse) | Author |
|
export does exactly the same as checkout except it does
not create any administrative (CVS/) directories.
|
|
allows us to completely use branches for diffing, logging,
updating, etc..
more branches support coming up!
|
|
in the normal repository, and a way to identify an RCS file in
the Attic in the RCSFILE struct.
will come in handy later on.
|
|
revision or symbol given to us on the command line into
the matching revision in the RCS file (if any);
|
|
if an RCSFILE is dead, will come in usefull later in commands.
|
|
'umask' keyword right now.
|
|
|
|
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.
|
|
increased and thus no progress could be made in the loop.
bug noticed in rcsdiff(1) by sturm@
ok joris@
|
|
|
|
|
|
no binary change; ok ray
|
|
Remove unused variables found by lint.
Some parts OK xsa@, ``throw it in :)'' joris@
|
|
-o allows users to delete revisions in the specified RCS files.
example:
rcs -o1.4:1.6 foo deletes revisions 1.4 - 1.6
rcs -o1.3 foo deletes revision 1.3
joint work with niallo@
okay niallo@
|
|
when he yanked the code out of rcs.c and placed it in rcstime.c.
struct tm ltb, *tb;
tb = <b;
return (tb);
isn't really the most perfect idiom to return a value to the caller, now is it?
as a bonus -z for rlog now works too.
okay niallo@
|
|
Save 2 bytes of newlines.
OK joris@
|
|
|
|
|
|
use xcalloc and xstrdup where appropriate, and other stuff.
OK joris@
|
|
out when we encounter them, but handle them correctly.
fixes an issue i ran into when running opencvs update on my local tree;
|
|
mode_t. doing it the other way around isn't portable as mode_t may
vary from int on some systems to short on others.
noticed by deraadt@
|
|
so the caller can identify the branch is not there and take correct action.
|
|
|
|
check them out. commit is not working yet, but will be soon.
tested by myself and ray@
okay ray@
|
|
- Explicitly test for -1 from read(2) and write(2).
- Change negative parameters to 0 for rcsnum_cmp(). (I think xsa@ had
a patch for this earlier.)
- Remove unused variables.
- Changed return types to void if we only return one value.
- Fix possible one-character truncation in rcs_deltatext_set().
- Use memcpy() to copy u_char arrays.
- Use ptrdiff_t to hold pointer differences.
- int -> size_t for sizeof/strlen
``looks fine'' xsa@
|
|
sometimes there are no revisions, and that it is not an error. This
makes it so that if rcs_parse_delta is called and the only thing
that is found is the description, we know that there are no more
revisions.
Fixes ``rcs -i file; rlog file''.
OK xsa@
|
|
- Sync xmalloc.? with ssh versions.
- Change all xrealloc() calls to new API.
``I really like this.'' niallo@
|
|
permissions from rcs file and initial checkin will inherit permissions from
working file.
problem spotted by uwe@
ok ray@ xsa@
|
|
|
|
OK ray@.
|
|
OK niallo@.
|
|
|
|
changed to division, KNF, replace unreachable code with goto fail,
et cetera. Found by lint.
The free() -> xfree() as well.
OK niallo@
|
|
to void as they never return non-zero. OK ray@.
|
|
|
|
|
|
digits. e.g. ci -l4 or ci -u5 will work like GNU now.
ok joris@
|
|
it will not write out a blank RCS file if there is no data in the backing
structure.
ok joris@
|
|
Also prevents rfp->rf_desc[-1] from happening.
ok joris, niallo, otto, and xsa
|
|
OK joris@.
|
|
|
|
|
|
niallo agrees;
|
|
|
|
|
|
|
|
leave the dlp pointing at a non-existant line, but instead point it to
the last one in our TAILQ.
this fixes an annoying bug in rcs_patch_lines() where dlp would be
sometimes set to NULL when really it shouldn't be, resulting in an
"invalid line specification in RCS patch" error.
ok xsa@ joris@
|
|
ed_patch_lines() and rcs_patch_lines(). this can avoid segfault in certain
circumstances.
From: Ray Lai <ray@cyth.net>
discussed with xsa@ and joris@
|
|
unconditionally doing keyword expansion, even when this wasn't what we
wanted e.g. in checkout_rev() and cvs_checkout_rev(). so:
- change semantics of rcs_getrev() to not do keyword expansion
- add an rcs.c api function rcs_kwexp_buf() which does this
- change both checkout_rev() and cvs_checkout_rev() to use this function.
eyeballed by xsa, joris and Ray Lai
|
|
fixes PR#5037
From Ray Lai <ray at cyth.net>
"somebody please commit" joris@
|