Age | Commit message (Collapse) | Author |
|
|
|
1. Mostly variable/function renaming, SIZE_T_MAX->SIZE_MAX, and
spacing.
2. One strchr -> strncspn.
3. diff had a weird thing where it set file[12] = ofile[12] but
never updated file or ofile, then if file and ofile were different
it freed it. I removed it.
OK millert
|
|
cvs diff -t now works. There should be no functional change
otherwise.
OK millert
|
|
make the code -Wformat=2 clean. ok joris@ xsa@
|
|
ok tobias@
|
|
an RCS file which has no head revision set. Some commands actually can
work with them (log, status) so support these files. Fixes A LOT of
possible segmentation faults.
ok joris
|
|
reported & tested by phessler@
input otto@ deraadt@
ok tobias@
|
|
been supplied as argument by client.
ok joris
|
|
defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.
This enables the use of log_accum2 and all that other nice stuff we like.
This was mostly written by Jonathan Armani with help from tobias@ and myself.
ok tobias@
|
|
once in local setup. Also added '!' to reuse typed log message for all
following directories.
ok joris
|
|
|
|
the import.
|
|
ok joris, xsa (quite some time ago)
|
|
|
|
it only gets called from import_update() which handles the noexec stuff
|
|
|
|
ok tobias@
|
|
OK joris@
|
|
* Don't check for NULL on buffer creation, because it calls fatal() when
something's wrong.
* All buffers are supposed to expand if there is no space left in them,
so zap flags as well.
* Remove code that is now dead.
OK joris@
> Inspired by a diff from Igor Zinovik about unchecked return value.
|
|
OK joris@
|
|
ok tobias@ xsa@
|
|
if the current command is supposed to use a working directory or if it is a
repository-only command (as of now checkout -p, rtag, rlog).
Makes the code simpler, easier to read and automagically fixes some issues
we encountered with these commands (for example if a working directory
exists, or "." operations are performed).
OK joris@, niallo@
|
|
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.
|
|
command that supports such files is "cvs status", therefore properly handle
them in all other commands, too.
|
|
|
|
instead of custom log message (which gets written into 1.1.1.1).
OK joris@
|
|
no longer break when the log message has multiple lines.
from Tobias Stoeckmann, thanks for doing my work!
|
|
Simplifies further size tweaks if needed.
OK niallo@ ray@.
|
|
cvs co -rOPENBSD_3_0 works now.
along the way, simplify and rationalise code and fix a few nits.
ok joris@ xsa@ ray@
|
|
|
|
function, should not do any resource freeing.
OK joris@.
|
|
functionality w/ xsnprintf(); Initial diff started by thib@.
OK thib@ joris@.
|
|
in the old school days and serves no purpose what so ever now.
otto@ mentioned this to me a while ago
|
|
|
|
|
|
|
|
|
|
- add support for remote import in opencvs client and server.
- do not free already free'd buffers in import_update()
- do not append a '\0' to the loaded file buffer, this was bad behaviour
makes import work fine both locally and remotely.
|
|
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@
|
|
we had with the rcs changes;
|
|
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
|
|
the tmp files once we'r done w/ them, not at the very end only..
|
|
to the temp_files walklist anyway..
|
|
|
|
|
|
- add missing xfree().
|
|
always set the temporary file to mode 600, which is already done
by mkstemp().
OK joris@ and xsa@ over a month ago.
|
|
we let the commands pass the correct function.
all in preparation for remote.
|
|
|