OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.115 / (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.114: +2 -2 lines
Diff to previous 1.114 (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.114 / (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.113: +4 -4 lines
Diff to previous 1.113 (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.113 / (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.112: +2 -3 lines
Diff to previous 1.112 (colored)

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

OK millert@

Revision 1.112 / (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.111: +10 -12 lines
Diff to previous 1.111 (colored)

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

Revision 1.111 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:06 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.110: +16 -16 lines
Diff to previous 1.110 (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.110 / (download) - annotate - [select for diffs], Thu Nov 11 21:00:59 2010 UTC (13 years, 6 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.109: +2 -3 lines
Diff to previous 1.109 (colored)

Nuke dead assignments and a dead function, from Michael W Bombardieri
using lint.

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

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

OK xsa zinovik

Revision 1.108 / (download) - annotate - [select for diffs], Sun Apr 4 17:11:11 2010 UTC (14 years, 1 month ago) by zinovik
Branch: MAIN
Changes since 1.107: +12 -11 lines
Diff to previous 1.107 (colored)

OpenCVS is very annoying and incorrect when user tries to add several
files at a time.

OpenCVS does the following:
# touch a b c
# opencvs add a b c
opencvs add: scheduling file 'a' for addition
opencvs add: use 'opencvs commit' to add this file permanently
opencvs add: scheduling file 'b' for addition
opencvs add: use 'opencvs commit' to add this file permanently
opencvs add: scheduling file 'c' for addition
opencvs add: use 'opencvs commit' to add this file permanently

This behaviour was added in -r 1.48 of add.c file.

This commit makes OpenCVS behave like GNU cvs:
# touch a b c
# opencvs add a b c
opencvs add: scheduling file 'a' for addition
opencvs add: scheduling file 'b' for addition
opencvs add: scheduling file 'c' for addition
opencvs add: use 'opencvs commit' to add these files permanently

ok deraadt@, xsa@

Revision 1.107 / (download) - annotate - [select for diffs], Sat Feb 21 14:50:53 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

use FILE_ON_DISK flags when we need to verify if a file
exists in the working copy or not instead of checking fd being -1
since this can differ in server or local mode.

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

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

Revision 1.105 / (download) - annotate - [select for diffs], Sun Jun 15 04:38:52 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.104: +73 -1 lines
Diff to previous 1.104 (colored)

Support the addition of new files in branches.

ok joris

Revision 1.104 / (download) - annotate - [select for diffs], Sat Jun 14 04:34:07 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.103: +9 -11 lines
Diff to previous 1.103 (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.103 / (download) - annotate - [select for diffs], Sat Jun 14 03:19:15 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.102: +1 -4 lines
Diff to previous 1.102 (colored)

don't always re-open the same CVS/Entries file, instead keep the
last opened CVS/Entries around to operate on and close it whenever
we switch directory. gives us a small performance boost, obviously.

while doing this, switch the way we write revisions to disk by
using fwrite(3) so stuff can get written to disk in chunks
instead of writing everything line by line, another win.

with help from otto@
ok tobias@

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jun 14 02:34:27 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored)

No need to add \n at the end of format string for a fatal call.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jun 14 00:55:31 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.100: +2 -1 lines
Diff to previous 1.100 (colored)

Don't trick user into believing that it's actually possible to add a file
to repository which is even ready to be checked out.

"probably right" joris

Revision 1.100 / (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.99: +52 -2 lines
Diff to previous 1.99 (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.99 / (download) - annotate - [select for diffs], Sun Jun 8 02:54:08 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.98: +4 -3 lines
Diff to previous 1.98 (colored)

Properly build up path to description files (descr entry in RCS files if
you add a file with -m message).

ok joris

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

expension -> expansion

ok joris, xsa (quite some time ago)

Revision 1.97 / (download) - annotate - [select for diffs], Sun Mar 9 03:41:55 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.96: +2 -1 lines
Diff to previous 1.96 (colored)

do not use CR_REPO in a remote setup, that will obviously fail.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Mar 8 20:26:34 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

add checkout/update -j support.
still has some rough edges.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Mar 1 21:29:36 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.94: +1 -2 lines
Diff to previous 1.94 (colored)

spacing

Revision 1.94 / (download) - annotate - [select for diffs], Sat Feb 9 20:04:00 2008 UTC (16 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.93: +19 -13 lines
Diff to previous 1.93 (colored)

Introduce cvs_ent_line_str() - formats CVS/Entries lines.
OK tobias@.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Feb 6 18:12:28 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.92: +29 -6 lines
Diff to previous 1.92 (colored)

Improve add command:

* fix server-side add
* support add in branches
* do not add files in N-tagged directories

OK joris@

Revision 1.92 / (download) - annotate - [select for diffs], Mon Feb 4 19:54:21 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

unbreak add in a remote setup.
bad tobias, no cookie.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Feb 4 18:23:58 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

Stripped off 'nb', which was (or was supposed to be) used to distinguish
between a named branch and a revision number supplied by -r.  This can
be done easier in cvs_write_tagfile directly.

OK joris@

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

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

OK joris@

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

Our directory entries in CVS/Entries had one slash too much -- zapped.

OK xsa@

Revision 1.88 / (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.87: +2 -2 lines
Diff to previous 1.87 (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.87 / (download) - annotate - [select for diffs], Tue Jan 29 12:22:59 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

There is no need to xstrdup() optarg.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jan 10 10:08:22 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.85: +2 -3 lines
Diff to previous 1.85 (colored)

another strcspn() round

Revision 1.85 / (download) - annotate - [select for diffs], Thu Jan 10 09:44:32 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.84: +36 -6 lines
Diff to previous 1.84 (colored)

Handle the addition of directories right, especially in remote setups with
GNU cvs as a server.

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

Properly handle "cvs add" on a client/server setup with GNU cvs as a client.

Revision 1.83 / (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.82: +7 -1 lines
Diff to previous 1.82 (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.82 / (download) - annotate - [select for diffs], Sun Sep 23 11:19:24 2007 UTC (16 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

make sure when running update -r on existing files to overwrite
the sticky directory tag with it. since -r gets priority.

Revision 1.81 / (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.80: +2 -2 lines
Diff to previous 1.80 (colored)

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

Revision 1.80 / (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.79: +2 -2 lines
Diff to previous 1.79 (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.79 / (download) - annotate - [select for diffs], Wed Aug 29 09:32:13 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

missing xfree();
from Igor Zinovik, thanks.

Revision 1.78 / (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.77: +4 -3 lines
Diff to previous 1.77 (colored)

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

Revision 1.77 / (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.76: +6 -4 lines
Diff to previous 1.76 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.76 / (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.75: +5 -7 lines
Diff to previous 1.75 (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.75 / (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.74: +2 -2 lines
Diff to previous 1.74 (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.74 / (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.73: +12 -23 lines
Diff to previous 1.73 (colored)

snprintf() -> xsnprintf()

Revision 1.73 / (download) - annotate - [select for diffs], Sat Jan 27 21:18:17 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.72: +8 -5 lines
Diff to previous 1.72 (colored)

- do not try to add non-existing files
- do not overwrite the contents of the file when the file was removed
and you try to re-add it.

ok otto@

Revision 1.72 / (download) - annotate - [select for diffs], Fri Jan 26 21:48:16 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.71: +24 -6 lines
Diff to previous 1.71 (colored)

- support [-k mode] for the add command
- do not let the file keyword expension options (-k) disappear
from the Entries file when doing a commit/update/checkout
- be sure the expension mode gets written to the RCS file when a file
is added/committed in the first place
problems raised by otto@; tests/ok otto@ and joris@.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 26 06:21:51 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored)

extra xfree leftover; from tbert.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Jan 25 18:56:33 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.69: +7 -21 lines
Diff to previous 1.69 (colored)

use more stack allocations for fixed size buffers. ok xsa@ joris@

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jan 13 15:45:59 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.68: +2 -7 lines
Diff to previous 1.68 (colored)

remove BUF * argument from cvs_checkout_file() it will
no longer be used, ever.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jan 12 19:28:12 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.67: +8 -4 lines
Diff to previous 1.67 (colored)

do not leak memory from rcs_head_get()

ok niallo@

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jan 12 03:34:50 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.66: +4 -5 lines
Diff to previous 1.66 (colored)

fix incorrect output which was driving me more then crazy

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jan 11 02:35:55 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored)

in a remote setup:
do not connect to the remote server until we are sure all the options
passed to the commands are valid.

noticed by xsa@

Revision 1.65 / (download) - annotate - [select for diffs], Wed Dec 20 16:40:27 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

missing xfree();

Revision 1.64 / (download) - annotate - [select for diffs], Tue Dec 19 15:15:14 2006 UTC (17 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.63: +4 -1 lines
Diff to previous 1.63 (colored)

correctly check snprintf(), noticed by ray@

Revision 1.63 / (download) - annotate - [select for diffs], Tue Dec 19 15:12:59 2006 UTC (17 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.62: +26 -1 lines
Diff to previous 1.62 (colored)

- Introduce a way for the command code to recognize what the server replied.
- Modify the add command so it uses the above method to correctly enter
  added files in CVS/Entries if in a remote setup.

ok xsa@

... And no a shark didnt eat me.

Revision 1.62 / (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.61: +7 -7 lines
Diff to previous 1.61 (colored)

snprintf() -> cvs_path_cat()

Revision 1.61 / (download) - annotate - [select for diffs], Tue Oct 31 15:23:40 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.60: +20 -3 lines
Diff to previous 1.60 (colored)

a step ahead in opencvs add|remove remote support.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jul 1 12:02:06 2006 UTC (17 years, 10 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

fix a possible bug of pathname concatenation when adding subdirectories.

ok joris@

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jun 28 18:52:05 2006 UTC (17 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

print less verbose messages for cvs commit and add if the -q/-Q flag
has been specified.

ok joris@

Revision 1.58 / (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.57: +2 -3 lines
Diff to previous 1.57 (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.57 / (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.56: +2 -3 lines
Diff to previous 1.56 (colored)

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

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jun 14 15:14:47 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.55: +28 -6 lines
Diff to previous 1.55 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Wed Jun 7 07:01:12 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.54: +69 -42 lines
Diff to previous 1.54 (colored)

add support for <name>,t file:
- add: creates <name>,t file with initial description if -m option was used.
- commit: uses <name>,t content (if it exists) to set the file description
OK joris@.

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

allow the re-adding of files with previous revisions

Revision 1.53 / (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.52: +27 -16 lines
Diff to previous 1.52 (colored)

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

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jun 1 20:00:52 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.51: +6 -3 lines
Diff to previous 1.51 (colored)

major rewrite of some rcs parsing stuff:

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

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

fill in the correct revision number we will want in file_rcsrev
for each cvs_file struct, this will help us with sticky tags,
commiting to branches and importing into existing repositories.

Revision 1.50 / (download) - annotate - [select for diffs], Tue May 30 09:11:24 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored)

handle lost files, modified files and files with conflicts; OK joris@.

Revision 1.49 / (download) - annotate - [select for diffs], Tue May 30 08:23:31 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.48: +12 -1 lines
Diff to previous 1.48 (colored)

handle special files when doing `cvs add *'; input+OK joris@.

Revision 1.48 / (download) - annotate - [select for diffs], Tue May 30 07:09:38 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.47: +59 -8 lines
Diff to previous 1.47 (colored)

handle removed files; OK joris@.

Revision 1.47 / (download) - annotate - [select for diffs], Mon May 29 17:55:39 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

fix option string

Revision 1.46 / (download) - annotate - [select for diffs], Mon May 29 06:25:06 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.45: +5 -7 lines
Diff to previous 1.45 (colored)

add needs to be passed arguments on the command line, and
isnt supposed to just run over our parent directory if none are
specified.

found by reyk@

Revision 1.45 / (download) - annotate - [select for diffs], Sun May 28 17:26:12 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.44: +87 -6 lines
Diff to previous 1.44 (colored)

our add command can now add directories to the repository as well.

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 28 10:15:35 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.43: +40 -3 lines
Diff to previous 1.43 (colored)

enable basic add command, only works on files right now.

Revision 1.43 / (download) - annotate - [select for diffs], Sun May 28 07:56:44 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.42: +56 -307 lines
Diff to previous 1.42 (colored)

allow commands to shut up the output from cvs_file_classify
if the commands want to output certain stuff themselfs

Revision 1.42, Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.41: +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.41 / (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.40: +11 -11 lines
Diff to previous 1.40 (colored)

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

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jan 27 12:56:28 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.39: +2 -3 lines
Diff to previous 1.39 (colored)

cvs_mkadmin() cannot return < 0 anymore;

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 27 12:45:21 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.38: +23 -41 lines
Diff to previous 1.38 (colored)

errors handling cleaning here too;

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 25 11:19:51 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.37: +23 -29 lines
Diff to previous 1.37 (colored)

strings cleanup; OK niallo@.

Revision 1.37 / (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.36: +2 -9 lines
Diff to previous 1.36 (colored)

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

Revision 1.36 / (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.35: +7 -17 lines
Diff to previous 1.35 (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.35 / (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.34: +2 -5 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Fri Oct 7 21:47:32 2005 UTC (18 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

knf and spacing, ok joris@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 30 15:40:22 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.32: +12 -2 lines
Diff to previous 1.32 (colored)

avoid using `cvs add *' idiom wrt special files; joris ok

Revision 1.32 / (download) - annotate - [select for diffs], Sun Sep 25 17:38:44 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.31: +8 -9 lines
Diff to previous 1.31 (colored)

use cvs_add_build_entry(); joris ok

Revision 1.31 / (download) - annotate - [select for diffs], Wed Sep 21 16:30:03 2005 UTC (18 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.30: +12 -15 lines
Diff to previous 1.30 (colored)

use correct return codes in cvs_add_directory(); joris ok

Revision 1.30 / (download) - annotate - [select for diffs], Thu Sep 15 17:01:10 2005 UTC (18 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored)

check in cvs_mkadmin() wether we need to create or not the
CVS/Tag file. Sync the rest of the code accordingly; OK joris@.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Sep 13 17:35:00 2005 UTC (18 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.28: +110 -1 lines
Diff to previous 1.28 (colored)

let's add directories too; testing+ok joris@.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 5 19:49:31 2005 UTC (18 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.27: +136 -13 lines
Diff to previous 1.27 (colored)

let's move forward with the local add command;

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jul 30 00:01:50 2005 UTC (18 years, 9 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

we actually want CVS_FST_UNKNOWN here.

problem reported by Nuno once more.
ok from an enthousiastic xsa@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jul 27 17:53:54 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

use LP_NOTICE here too;

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

missed that one too...

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jul 23 11:19:46 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

rewrite of the file code. the previous one was just
a mess and not clean.
this code is much cleaner, faster, and uses less memory overall.

tested by xsa@, brad@, Michael Knudsen, and myself.
okay xsa@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 10 21:55:30 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)



if cvs_sendreq() returns -1 we have to translate it into CVS_EX_PROTO,
so the user will know what is going on.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 8 16:03:38 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.21: +19 -18 lines
Diff to previous 1.21 (colored)

split local and remote function handlers from each other.

Revision 1.21 / (download) - annotate - [select for diffs], Tue May 24 04:12:25 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.20: +28 -20 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Fri May 20 20:00:53 2005 UTC (19 years ago) by joris
Branch: MAIN
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)



correct wrong error code usage.

ok jfb@, xsa@

Revision 1.19 / (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.18: +5 -5 lines
Diff to previous 1.18 (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.18 / (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.17: +1 -2 lines
Diff to previous 1.17 (colored)



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

Revision 1.17 / (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.16: +3 -3 lines
Diff to previous 1.16 (colored)



remove EX_USAGE error codes

ok jfb@

Revision 1.16 / (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.15: +3 -3 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (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.14: +30 -52 lines
Diff to previous 1.14 (colored)



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

ok jfb@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jan 24 18:30:25 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

get rid of a debugging printf() that slipped through the cracks

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 24 17:42:26 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.12: +28 -9 lines
Diff to previous 1.12 (colored)

* use the global cvs_msg instead of our own
* support the use of RCS keyword expansion flags in client mode

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 30 20:37:56 2004 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.11: +6 -9 lines
Diff to previous 1.11 (colored)

Send files to add using `Is-Modified' instead of `add', and send
directories regardless of whether they are known or not, in case
they are part of the files to add.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Dec 21 17:50:40 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.10: +9 -3 lines
Diff to previous 1.10 (colored)

Check to make sure we have a valid CVSROOT, and check the return value
when sending the add request

Revision 1.10 / (download) - annotate - [select for diffs], Tue Dec 21 16:48:39 2004 UTC (19 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.9: +32 -24 lines
Diff to previous 1.9 (colored)

on the way to `cvs add'; ok jfb

Revision 1.9 / (download) - annotate - [select for diffs], Wed Dec 8 20:23:06 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

minor simplification in if () statement from Joris Vink

Revision 1.8 / (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.7: +9 -10 lines
Diff to previous 1.7 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 6 21:03:12 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +3 -5 lines
Diff to previous 1.6 (colored)

tighten vertical spacing for else; jfb ok

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 6 02:19:54 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Pass the proper type for the third argument to cvs_sendreq()

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 9 20:59:07 2004 UTC (19 years, 6 months ago) by krapht
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

a bit more sense

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 13 13:27:52 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Remove unused variables

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 13 12:59:28 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.2: +53 -12 lines
Diff to previous 1.2 (colored)

Make add work in client mode

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 30 01:49:21 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.1: +7 -12 lines
Diff to previous 1.1 (colored)

Move to the new API for the client-server protocol.  All functions now
take a cvs root structure as parameter.  This will allow for much easier
management of CVS trees that make use of multiple roots.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: OpenCVS
CVS Tags: OpenCVS_0_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

* initial import from the cvs-tools module

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN

Initial revision

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.