OpenBSD CVS

CVS log for src/usr.bin/cvs/import.c


[BACK] Up to [local] / src / usr.bin / cvs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.109 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:00 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Jun 1 08:08:24 2017 UTC (6 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.

Instead use cvsroot_is_local() and cvsroot_is_remote().

Revision 1.107 / (download) - annotate - [select for diffs], Sun May 28 17:11:34 2017 UTC (6 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.106: +12 -1 lines
Diff to previous 1.106 (colored)

Let opencvs show ignored files on import, not showing them is just confusing.

ok stsp@

Revision 1.106 / (download) - annotate - [select for diffs], Thu Oct 13 20:51:25 2016 UTC (7 years, 7 months ago) by fcambus
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.105: +5 -5 lines
Diff to previous 1.105 (colored)

rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.

OK millert@

Revision 1.105 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.104: +6 -5 lines
Diff to previous 1.104 (colored)

Remove xfree(), like already done for RCS. From Michael W Bombardieri,
ok mmcc

Revision 1.104 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.103 / (download) - annotate - [select for diffs], Thu Sep 23 18:10:16 2010 UTC (13 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.102: +3 -5 lines
Diff to previous 1.102 (colored)

Add cvs_mkdir() for recursive directory creation on import, based on a
diff from Michael W Bombardieri in PR 6398.

tested by & ok jasper

Revision 1.102 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.101: +27 -27 lines
Diff to previous 1.101 (colored)

Reduce variable/function name and whitespace differences between
cvs/rcs.

OK xsa zinovik

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jun 27 16:55:31 2009 UTC (14 years, 10 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.100: +3 -1 lines
Diff to previous 1.100 (colored)

release storage after asprintf.  ok sthen@

Revision 1.100 / (download) - annotate - [select for diffs], Sun Jun 7 08:39:13 2009 UTC (14 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

More cvs/diff/rcs convergence:
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

Revision 1.99 / (download) - annotate - [select for diffs], Sat Jun 6 14:17:27 2009 UTC (14 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98 (colored)

Sync some rcsdiff changes to cvsdiff.  As a side effect,
cvs diff -t now works.  There should be no functional change
otherwise.

OK millert

Revision 1.98 / (download) - annotate - [select for diffs], Fri Jan 2 00:11:01 2009 UTC (15 years, 4 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.97: +3 -2 lines
Diff to previous 1.97 (colored)

Add format attributes to functions that use variable arguments and
make the code -Wformat=2 clean. ok joris@ xsa@

Revision 1.97 / (download) - annotate - [select for diffs], Sun Jun 15 04:21:26 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

open the RCS file descriptor with O_RDONLY, like all other code does.

ok tobias@

Revision 1.96 / (download) - annotate - [select for diffs], Sat Jun 14 04:34:08 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.95: +4 -1 lines
Diff to previous 1.95 (colored)

Conforming to RCS specification, it is possible but unlikely to encounter
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

Revision 1.95 / (download) - annotate - [select for diffs], Tue Jun 10 20:30:17 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.94: +9 -6 lines
Diff to previous 1.94 (colored)

properly inherit file permissions.

reported & tested by phessler@
input otto@ deraadt@
ok tobias@

Revision 1.94 / (download) - annotate - [select for diffs], Tue Jun 10 02:11:19 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.93: +7 -6 lines
Diff to previous 1.93 (colored)

Don't spawn editor for log message on server-side if no log message has
been supplied as argument by client.

ok joris

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jun 10 01:00:34 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.92: +83 -12 lines
Diff to previous 1.92 (colored)

New trigger framework that allows us to run the required scripts
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@

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jun 8 20:08:43 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

Handle commits on a per-directory basis instead handling all of them at
once in local setup.  Also added '!' to reuse typed log message for all
following directories.

ok joris

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jun 8 13:35:47 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.90: +24 -13 lines
Diff to previous 1.90 (colored)

allow for multiple release tags, noticed by tobias@

Revision 1.90 / (download) - annotate - [select for diffs], Sun Jun 8 13:22:46 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.89: +10 -5 lines
Diff to previous 1.89 (colored)

properly check the passed tags if they are valid before attempting
the import.

Revision 1.89 / (download) - annotate - [select for diffs], Thu May 22 15:45:01 2008 UTC (16 years ago) by tobias
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

expension -> expansion

ok joris, xsa (quite some time ago)

Revision 1.88 / (download) - annotate - [select for diffs], Thu May 22 06:48:27 2008 UTC (16 years ago) by xsa
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

Error messages fixes; Stefan Sperling.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Mar 1 20:49:44 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.86: +15 -17 lines
Diff to previous 1.86 (colored)

import_get_rcsdiff() doesnt need cvs_noexec checks.
it only gets called from import_update() which handles the noexec stuff

Revision 1.86 / (download) - annotate - [select for diffs], Sat Mar 1 20:45:41 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.85: +15 -10 lines
Diff to previous 1.85 (colored)

allow dry-runs (-n) to work properly;

Revision 1.85 / (download) - annotate - [select for diffs], Wed Feb 27 22:34:04 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.84: +8 -4 lines
Diff to previous 1.84 (colored)

prevent file races

ok tobias@

Revision 1.84 / (download) - annotate - [select for diffs], Wed Feb 20 17:29:28 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.83: +4 -5 lines
Diff to previous 1.83 (colored)

With latest buf cleanup, rcs_rev_getbuf won't return NULL anymore.

OK joris@

Revision 1.83 / (download) - annotate - [select for diffs], Mon Feb 11 20:33:11 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.82: +5 -9 lines
Diff to previous 1.82 (colored)

Cleanup buf implementation:

* 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.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Feb 4 15:07:33 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.81: +4 -5 lines
Diff to previous 1.81 (colored)

Added -k flag support for all commands which support it.

OK joris@

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jan 31 21:30:08 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.80: +18 -32 lines
Diff to previous 1.80 (colored)

remove dead and unreachable code

ok tobias@ xsa@

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jan 31 10:15:05 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

Replaced the unused cvs_command variable cmd_req with cmd_flags, which states
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@

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jan 10 09:54:04 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored)

Our keyword expansion had a big flaw, due to this construction:
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.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jan 10 09:37:26 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.77: +4 -1 lines
Diff to previous 1.77 (colored)

RCS files without head keyword mustn't segfault our implementation.  Only
command that supports such files is "cvs status", therefore properly handle
them in all other commands, too.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Sep 22 16:01:22 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

better branching/sticky tag support, no branch commits yet though.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Sep 2 11:31:35 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

Stick at GNU cvs behaviour by writing "Initial revision" in revision 1.1
instead of custom log message (which gets written into 1.1.1.1).

OK joris@

Revision 1.75 / (download) - annotate - [select for diffs], Thu Aug 30 11:07:18 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

properly send our log message to the server using Argumentx, so we
no longer break when the log message has multiple lines.

from Tobias Stoeckmann, thanks for doing my work!

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 28 21:38:09 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

Sync revisions and time buffers size to be consistent with each others.
Simplifies further size tweaks if needed.
OK niallo@ ray@.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Jun 1 17:47:47 2007 UTC (16 years, 11 months ago) by niallo
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

add support for local and remote branch checkout.  for example,
cvs co -rOPENBSD_3_0 works now.
along the way, simplify and rationalise code and fix a few nits.

ok joris@ xsa@ ray@

Revision 1.72 / (download) - annotate - [select for diffs], Thu Feb 22 06:42:09 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.71: +7 -3 lines
Diff to previous 1.71 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.71 / (download) - annotate - [select for diffs], Wed Feb 21 04:18:45 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
Changes since 1.70: +3 -1 lines
Diff to previous 1.70 (colored)

Simplify cvs_buf_differ().  Also cvs_buf_differ(), a comparison
function, should not do any resource freeing.

OK joris@.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Feb 17 18:23:43 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.69: +3 -4 lines
Diff to previous 1.69 (colored)

cvs_path_cat() removal since we can now easily handle that
functionality w/ xsnprintf(); Initial diff started by thib@.
OK thib@ joris@.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Feb 9 03:49:15 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

remove the cvs_file_classify() `loud' argument, it was used
in the old school days and serves no purpose what so ever now.

otto@ mentioned this to me a while ago

Revision 1.68 / (download) - annotate - [select for diffs], Thu Feb 1 11:06:25 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.67: +25 -4 lines
Diff to previous 1.67 (colored)

add support for [-k mode]; tests/ok otto@.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jan 31 21:07:35 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.66: +2 -5 lines
Diff to previous 1.66 (colored)

snprintf() -> xsnprintf()

Revision 1.66 / (download) - annotate - [select for diffs], Sat Jan 20 01:07:51 2007 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored)

sweep opencvs for missing rcs_translate_tag() return checks.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jan 19 08:21:45 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.64: +1 -2 lines
Diff to previous 1.64 (colored)

move cvs_import() proto to the correct place.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Jan 18 16:45:52 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.63: +37 -23 lines
Diff to previous 1.63 (colored)

import improvements:
- 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.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jan 14 23:10:56 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

move things around in rcs_rev_getbuf() and rcs_rev_write_fd()
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@

Revision 1.62 / (download) - annotate - [select for diffs], Sat Jan 13 20:29:46 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.61: +8 -14 lines
Diff to previous 1.61 (colored)

make import and init work again after the small breakage
we had with the rcs changes;

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jan 12 23:32:01 2007 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.60: +8 -14 lines
Diff to previous 1.60 (colored)

major re-work of the RCS api.  this results in 100x performance improvements 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.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Jan 12 17:25:33 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.59: +2 -5 lines
Diff to previous 1.59 (colored)

complete binary support for opencvs,
adding/importing binary files now works too

partially taken from openrcs

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 11 15:41:42 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.58: +4 -1 lines
Diff to previous 1.58 (colored)

revert last commit after discussing w/ joris@; makes sense to remove
the tmp files once we'r done w/ them, not at the very end only..

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jan 11 12:37:29 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.57: +1 -4 lines
Diff to previous 1.57 (colored)

no need to unlink() the tmp files here as they have already been added
to the temp_files walklist anyway..

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jan 7 02:47:57 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.56: +5 -2 lines
Diff to previous 1.56 (colored)

and lets make import work with the new logmsg code too!

Revision 1.56 / (download) - annotate - [select for diffs], Mon Dec 4 09:51:21 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.55: +5 -6 lines
Diff to previous 1.55 (colored)

snprintf() -> cvs_path_cat()

Revision 1.55 / (download) - annotate - [select for diffs], Mon Dec 4 09:46:27 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.54: +17 -1 lines
Diff to previous 1.54 (colored)

- unlink tmp files when finished.
- add missing xfree().

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jul 8 09:25:44 2006 UTC (17 years, 10 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Remove file mode argument from {cvs|rcs}_buf_write_stmp().  We
always set the temporary file to mode 600, which is already done
by mkstemp().

OK joris@ and xsa@ over a month ago.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Jun 19 05:05:17 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.52: +2 -3 lines
Diff to previous 1.52 (colored)

kill local and remote callback and just have one called fileproc.
we let the commands pass the correct function.

all in preparation for remote.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jun 16 14:07:42 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.51: +2 -3 lines
Diff to previous 1.51 (colored)

in preparation for the new remote code, proto.h becomes obsolete.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jun 16 14:02:37 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.50: +21 -5 lines
Diff to previous 1.50 (colored)

add support for -d; OK joris@.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jun 14 14:10:50 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.49: +4 -6 lines
Diff to previous 1.49 (colored)

add cvs_buf_load_fd() which does the same as cvs_buf_load()
except it takes a decriptor as argument instead of a path.

modified cvs_buf_load() to open the descriptor then pass
it to cvs_buf_load_fd().

change all the calls to cvs_buf_load() that have a descriptor
open for the path to cvs_buf_load_fd() to prevent races.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jun 11 17:50:11 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

remove unused variable
from Jasper Lievisse Adriaanse.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jun 4 09:52:56 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.47: +32 -18 lines
Diff to previous 1.47 (colored)

sprinkle -n voodoo over the add, commit and import commands.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 1 20:01:31 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.46: +125 -3 lines
Diff to previous 1.46 (colored)

import work on existing repos:
- make it work (obviously).
- count conflicts and report them at the end of the import.
- add the release tags to the correct revision.

fixes for importing to new repos:
- add the release tags to the correct branch revision
- plug memleak

general import fixes:
- use the correct path in the status messages, this is just
  fluffy output but it does make things nicer.

Revision 1.46 / (download) - annotate - [select for diffs], Tue May 30 21:41:00 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

ugh forgot to change cvs_file_classify here too.
i dont deserve beers tonight.

Revision 1.45 / (download) - annotate - [select for diffs], Tue May 30 07:00:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.44: +134 -290 lines
Diff to previous 1.44 (colored)

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

Revision 1.44, Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.43: +1 -1 lines
FILE REMOVED

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.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Apr 14 02:45:35 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.42: +5 -5 lines
Diff to previous 1.42 (colored)

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

Revision 1.42 / (download) - annotate - [select for diffs], Wed Apr 5 01:38:55 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

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

OK joris@

Revision 1.41 / (download) - annotate - [select for diffs], Sat Apr 1 00:56:54 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.40: +20 -8 lines
Diff to previous 1.40 (colored)

improve import a bit:
- create directory and files with the correct permissions
- correctly add the branch revision to the branch list of the head revision

Revision 1.40 / (download) - annotate - [select for diffs], Mon Mar 27 15:26:11 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.39: +3 -6 lines
Diff to previous 1.39 (colored)

rcs_comment_set() will never return non-zero; change its return type to void.
OK ray@.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Feb 8 18:42:41 2006 UTC (18 years, 3 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

once again, we have to unbreak stuff xsa broke on his own.
seriously xavier, I might be in the carribean but you are drinking
all the rum and commiting shit drunk.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jan 30 17:58:47 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored)

strerror() -> rcs_errstr() when passing rcs_errno as argument;

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jan 27 10:39:49 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.36: +44 -66 lines
Diff to previous 1.36 (colored)

errors handling cleaning;

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jan 25 08:15:05 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.35: +6 -9 lines
Diff to previous 1.35 (colored)

snprintf() cleanup; OK niallo@.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jan 2 08:11:56 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.34: +2 -9 lines
Diff to previous 1.34 (colored)

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

Revision 1.34 / (download) - annotate - [select for diffs], Fri Dec 30 02:03:28 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.33: +13 -18 lines
Diff to previous 1.33 (colored)

major cleanup of the functions handling the remote cvs protocol.
makes the code a lot more readable and understandable.

ok xsa@ and niallo@

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 21 20:06:25 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.32: +3 -4 lines
Diff to previous 1.32 (colored)

cvs_logmsg_open() and cvs_logmsg_get() cannot fail anymore;

Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 20 18:17:01 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.31: +2 -6 lines
Diff to previous 1.31 (colored)

cvs_buf_putc() and cvs_buf_write_*() functions cannot fail anymore;

Revision 1.31 / (download) - annotate - [select for diffs], Sat Dec 10 20:27:45 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.30: +2 -6 lines
Diff to previous 1.30 (colored)

switch to xmalloc stuff, me and xsa@ agreed on this a long
time ago, but we were being held back by jfb. too bad for him.

next step is to use fatal() through out the code for unrecoverable
errors instead of trying to be all nice and fluffy and reach main() again.

ok niallo@ and xsa@

Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 3 01:02:09 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.29: +23 -1 lines
Diff to previous 1.29 (colored)

add very basic support for the following stuff:

- checkout in local mode (example: /cvs)
- update in local and server mode (example: /cvs and user@host:/cvs)
- import in local and server mode (example: /cvs and user@host:/cvs)

what remains to be done:

- not all options are supported yet, and update cannot pick up newly
  added files yet. these things are pending and will be commited
  real soon.

- checkout only works locally right now.

- fix rcs parsing code so that we don't fucking hog 100% cpu
  on really BIG BIG BIG ass trees.

mainly tested by pedro@ and myself, thanks a lot pedro!

"go for it" niallo@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 28 08:49:25 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

consistency in error messages;

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 24 11:17:15 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.27: +11 -5 lines
Diff to previous 1.27 (colored)

minor knf + snprintf() return check;

Revision 1.27 / (download) - annotate - [select for diffs], Sat Oct 15 22:56:02 2005 UTC (18 years, 7 months ago) by niallo
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

- add username parameter to rcs_rev_add(), needed to implement at least
  `ci -wusername'.

ok joris@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 4 12:20:42 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

sync command synopsis w/ man page;

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jul 25 12:05:43 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.24: +9 -9 lines
Diff to previous 1.24 (colored)

KNF;

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jul 15 12:24:50 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.23: +23 -30 lines
Diff to previous 1.23 (colored)

- use cvs_path_cat() where appropriate instead of snprintf()
- handle a -Q case
ok joris@.

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 31 08:58:48 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.22: +3 -4 lines
Diff to previous 1.22 (colored)

headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 26 03:14:21 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.21: +5 -1 lines
Diff to previous 1.21 (colored)

remove the trailing \n from the ctime() timestamp

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 26 03:10:01 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.20: +7 -2 lines
Diff to previous 1.20 (colored)

send the Checkin-time request along with the file's timestamp when
running in client mode with the -d flag.  The timestamp format is
the same as ctime(3), as opposed to GNU CVS, which uses Yet
Another Timestamp Format to make this more complicated...

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 26 02:35:13 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.19: +11 -6 lines
Diff to previous 1.19 (colored)

fix remaining issues with regards to branch numbering and add the
vendor tag to the list of symbols

Revision 1.19 / (download) - annotate - [select for diffs], Thu May 26 00:51:36 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.18: +48 -17 lines
Diff to previous 1.18 (colored)

support the -b option in local mode as well and rearrange the branch
code a bit to get rid of an annoying global.  Also remove a memory
leak by adding a cleanup handler and print the number of conflicts
created while importing

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 25 21:47:19 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.17: +54 -11 lines
Diff to previous 1.17 (colored)

support the -d flag in local mode (GNU CVS ignores that flag and even
kills a linux box regardless of the size of the import)

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 25 09:25:48 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.16: +40 -4 lines
Diff to previous 1.16 (colored)

when importing a file in local mode, add the first two revisions
and set the head to revision 1.1

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 24 04:21:54 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

remove debugging messages

Revision 1.15 / (download) - annotate - [select for diffs], Tue May 24 04:12:25 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.14: +125 -55 lines
Diff to previous 1.14 (colored)

Merge the cvs_cmd and cvs_cmd_info structures and add the necessary
fields to hook local versions of the commands.  This needs to go in
before it gets any bigger

ok joris

Revision 1.14 / (download) - annotate - [select for diffs], Fri May 20 20:00:53 2005 UTC (19 years ago) by joris
Branch: MAIN
Changes since 1.13: +8 -7 lines
Diff to previous 1.13 (colored)



correct wrong error code usage.

ok jfb@, xsa@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 25 16:29:41 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

set the default branch to 1.1.1 upon import, and remove a stray
cvs_connect() call

ok joris, xsa

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 16 20:05:05 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.11: +17 -5 lines
Diff to previous 1.11 (colored)

more snprintf return value check; joris ok

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 12 14:58:40 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.10: +10 -10 lines
Diff to previous 1.10 (colored)



introduce our own set of error codes used by the commands to report
what exactly went wrong in case of an error.

ok jfb@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 11 18:02:58 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)



don't include sysexits.h now we don't use those error codes
anymore.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 11 17:56:27 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)



remove EX_USAGE error codes

ok jfb@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Apr 3 17:32:50 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

first round of EX_* exit codes removal; ok joris@.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 30 17:43:04 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.6: +38 -47 lines
Diff to previous 1.6 (colored)



move all the client commands to the new command framework.
eliminates a lot of duplicate code.

ok jfb@

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 5 18:43:55 2005 UTC (19 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.5: +4 -6 lines
Diff to previous 1.5 (colored)



free bnum when we are done using it, also use rcsnum_parse() instead
of our own combination of rcsnum_alloc() and rcsnum_aton().

ok jfb@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 28 20:18:02 2005 UTC (19 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)



update my email address.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 13 18:47:31 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.3: +6 -2 lines
Diff to previous 1.3 (colored)

more widespread use of cvs_msg, and free it when we are done

diff by Joris Vink and me

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 6 19:56:38 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.2: +80 -149 lines
Diff to previous 1.2 (colored)

Improved and working import code from Joris Vink with modifications
from me (client mode only for the moment)

Revision 1.2 / (download) - annotate - [select for diffs], Tue Dec 7 17:10:56 2004 UTC (19 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.1 / (download) - annotate - [select for diffs], Tue Nov 9 20:46:02 2004 UTC (19 years, 6 months ago) by krapht
Branch: MAIN

import code from Joris Vink <amni at pandora dot be>

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.