Age | Commit message (Collapse) | Author |
|
ok joris
|
|
|
|
ok joris
|
|
|
|
ok tobias@
|
|
running the log command.
- change getlog.c so it will add any .0 for magic branches in its output
if required
less confusing for rcs_translate_tag();
|
|
OK joris@
|
|
from Pierre Riteau;
|
|
|
|
if (!(mode & RCS_KWEXP_NONE))
RCS_KWEXP_NONE is defined to 0, so expansion happened always.
Left shifted all RCS_KWEXP defines and looked carefully at hard-coded values
throughout the code.
|
|
as of now.
|
|
enough for OpenBSD's src/.
|
|
OK niallo@, twice :)
|
|
|
|
GNU cvs but is a little faster.
OK joris@, ray@, xsa@
|
|
cvs co -rOPENBSD_3_0 works now.
along the way, simplify and rationalise code and fix a few nits.
ok joris@ xsa@ ray@
|
|
also add check for strftime return in date keyword parsing while here.
requested by jmc@, ok ray@
|
|
things. now gcc -Wall and lint are more happy. ok joris@ xsa@
|
|
|
|
so that we do keyword expansion on-the-fly if required instead
of obtaining the revision in memory first, running over the revision
lines while expanding keywords and only then writing them to the fd
or memory buffer.
this drasticly decreases cpu usage by opencvs on very large trees (like src).
OK niallo@
|
|
|
|
in some places and much
reduced memory usage. note that only checkout has been fully converted to use the new high-performance
functions. other codepaths (e.g. update) still use the old method which is provided for backwards
compatibility. we can convert the remaining slow bits over to the new api piece-by-piece.
"commit this, now" joris@
brad@ tested, too.
|
|
adding/importing binary files now works too
partially taken from openrcs
|
|
|
|
- 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.
|
|
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.
|
|
has been modified by yourself and there is a newer revision
we try and merge them together.
if the merge fails and has conflicts it will mark them inside
the file, you will need to resolve these by hand first before
you will be able to commit your modified file.
works transparent with gnu cvs, as it is suppose to.
|
|
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.
|
|
adding a really nasty hack to make some upcoming rlog fixes from joris work.
ok 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@
|
|
|
|
check them out. commit is not working yet, but will be soon.
tested by myself and ray@
okay ray@
|
|
From Pierre-Yves Ritschard.
OK niallo@
|
|
- int rcsnum_cpy() -> void rcsnum_cpy().
- Check for overflow in rcsnum_cpy().
OK 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@.
|
|
Pointed out by Theo.
Okay xsa@.
|
|
From Pierre-Yves Ritschard.
OK xsa@
|
|
OK 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
|
|
allows access from outside rcs.c and will be needed for upcoming features
in ci(1).
ok joris@ xsa@
|
|
|
|
spotted by joris@
|
|
need. this can save us much work, particularly with very large rcs files.
first of a few important performance improvements.
ok joris@
|