History log of /openbsd/usr.bin/cvs/util.c (Results 76 – 100 of 162)
Revision Date Author Comments
# 890ecb5a 14-Jun-2006 xsa <xsa@openbsd.org>

handle existing CVS/Tag file when adding new directories. OK joris@.


# 98f46772 07-Jun-2006 reyk <reyk@openbsd.org>

a bug in cvs_mkpath() prevented to create the CVS admin directory and
files under some special circumstances. remove a bogus stat() check to
fix it.

ok joris@


# 4462ebc9 30-May-2006 joris <joris@openbsd.org>

make sure cvs_get_repository_path returns a valid repo name
for the import command.


# 1dd2d57e 30-May-2006 joris <joris@openbsd.org>

hello import, only works for non-existing repositories right now,
but work is in progress for importing stuff into existing repositories.


# fc236367 29-May-2006 joris <joris@openbsd.org>

make the log command use rcs_translate_tag


# 7fbffbd7 28-May-2006 joris <joris@openbsd.org>

add code which allows us to select revisions based upon
a string given by the user on the command line, much like
rcs_revision_select in OpenRCS.

this will be usefull for some commands.


# 6ac6a1c7 28-May-2006 joris <joris@openbsd.org>

several fixes to the file api:
- default to CVS_FILE when something is totally unknown
- cvs_get_repository_path() now returns the full repository path for
the given argument.
- cvs_get_repository_

several fixes to the file api:
- default to CVS_FILE when something is totally unknown
- cvs_get_repository_path() now returns the full repository path for
the given argument.
- cvs_get_repository_name() returns the contents of CVS/Repository
to the caller.
- allow command callbacks to specify if our recursion code needs
to skip the directory or not.
- when checking for a admin directory, make sure it is in fact
a directory. if it is not we dont want to recurse inside.

show more ...


# 8ea49322 27-May-2006 joris <joris@openbsd.org>

boogie cvs_yesno() down the removal hatch, it is not used.


# 3ad3fb45 27-May-2006 joris <joris@openbsd.org>

commit the new opencvs code, i have been hacking on
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

commit the new opencvs code, i have been hacking on
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.

show more ...


# d593696f 14-Apr-2006 deraadt <deraadt@openbsd.org>

remove a metric buttload of excessive ()
no binary change; ok ray


# 3b4c5c25 05-Apr-2006 ray <ray@openbsd.org>

Use variable names for sizeof, remove casts in front of xmalloc,
use xcalloc and xstrdup where appropriate, and other stuff.

OK joris@


# f240ac99 29-Mar-2006 ray <ray@openbsd.org>

Yet more lint:
- 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.

Yet more lint:
- 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@

show more ...


# b39d2e28 28-Mar-2006 ray <ray@openbsd.org>

xmalloc(num * size) -> xcalloc(num, size)
asprintf -> xasprintf
Remove asprintf check, which was non-portable anyway.

``okidoki'' xsa@


# 2e0e138c 28-Mar-2006 ray <ray@openbsd.org>

Today is Integer Overflow Prevention Day:
- Sync xmalloc.? with ssh versions.
- Change all xrealloc() calls to new API.

``I really like this.'' niallo@


# 948d9c85 27-Mar-2006 pat <pat@openbsd.org>

Plug a memory leak for all cvs_strsplit call sites; ok xsa@


# cc2fc038 17-Mar-2006 niallo <niallo@openbsd.org>

- Lint says cvs_hacktime() is not used in rcs, so move it into !RCSPROG.

ok xsa@


# 477497b8 17-Mar-2006 xsa <xsa@openbsd.org>

rlog_strsplit() -> cvs_strsplit() and move it to util.c so it can be reused
by `cvs log' and some other RCS utilities. "Looks good" ray@.


# c6d0517e 15-Mar-2006 niallo <niallo@openbsd.org>

- add util.h, reorganising a bunch of things and exposing cvs_yesno()
function to be used by rcs.


# 43710b4a 27-Jan-2006 xsa <xsa@openbsd.org>

cvs_mkadmin() cannot return < 0 anymore;


# f182b925 25-Jan-2006 xsa <xsa@openbsd.org>

strings cleanup; OK niallo@.


# b453b25e 02-Jan-2006 xsa <xsa@openbsd.org>

rename variable to fix shadow warning;


# ac41f80c 02-Jan-2006 xsa <xsa@openbsd.org>

#include's cleanup; ok joris@ niallo@.


# 02899e3b 01-Jan-2006 joris <joris@openbsd.org>

more code cleanup;
ok xsa@

i'm commiting only hours after newyear,
ah the joys of being a true geek.


# f06855e2 30-Dec-2005 joris <joris@openbsd.org>

more code cleanup, ok niallo@ and xsa@


# 31864001 24-Dec-2005 xsa <xsa@openbsd.org>

add an argument to cvs_chdir() which enables or not the removal
of the directory we just chdir'd to.
Useful when the function fails especially for the server mode and
its temporary directory. This wa

add an argument to cvs_chdir() which enables or not the removal
of the directory we just chdir'd to.
Useful when the function fails especially for the server mode and
its temporary directory. This way it's not left behind on exit.
ok joris@.

show more ...


1234567