Age | Commit message (Collapse) | Author |
|
ok joris@ ray@
|
|
ok joris@ ray@
|
|
ok joris@ ray@
|
|
ok ray@
|
|
Add missing checks for EOF when parsing rcs file sections.
by millert@
|
|
OK niallo@
|
|
|
|
always set the temporary file to mode 600, which is already done
by mkstemp().
OK joris@ and xsa@ over a month ago.
|
|
|
|
-D allows you to update a file to matching a specified date:
opencvs up -D "1 hour ago" foobar will take the first matching
revision that was commited 1 hour ago.
|
|
on the branches list does not match the one we are
looking for, it might be further down.
|
|
|
|
- rework rcs_getrev() to correctly support branches
- rework rcs_translate_tag() to correctly translate given symbols or
branches into their matching revisions
- rework rcs_rev_add() to correctly update its 'next' pointers
and insert the new revision in the correct place on the list.
- rework rcs_head_get() to return the latest revision on the default
branch if it has been set or the normal HEAD revision otherwise.
- no longer access the rf_head member of the RCSFILE struct manually,
use the rcs_head_get() function which correctly returns the HEAD
revision, there might be a default branch that has to be used.
- for now, when commiting a new revision reset the default branch.
|
|
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@
|