OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.172 / (download) - annotate - [select for diffs], Mon Oct 19 19:51:20 2020 UTC (3 years, 6 months ago) by naddy
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, HEAD
Changes since 1.171: +25 -9 lines
Diff to previous 1.171 (colored)

Accommodate POSIX basename(3) that takes a non-const parameter and
may modify the string buffer.

ok florian@ millert@

Revision 1.171 / (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_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, 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.170: +2 -2 lines
Diff to previous 1.170 (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.170 / (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_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.169: +7 -8 lines
Diff to previous 1.169 (colored)

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

Revision 1.169 / (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.168: +6 -6 lines
Diff to previous 1.168 (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.168 / (download) - annotate - [select for diffs], Tue Dec 27 13:59:01 2011 UTC (12 years, 4 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
Changes since 1.167: +2 -2 lines
Diff to previous 1.167 (colored)

Move some global variables/statics to locals, from Michael W
Bombardieri.

Revision 1.167 / (download) - annotate - [select for diffs], Fri Jul 30 21:47:18 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.166: +3 -2 lines
Diff to previous 1.166 (colored)

Check date_parse return values.

OK xsa

Revision 1.166 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.165: +2 -2 lines
Diff to previous 1.165 (colored)

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

OK xsa zinovik

Revision 1.165 / (download) - annotate - [select for diffs], Sun Jun 21 20:23:01 2009 UTC (14 years, 11 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.164: +3 -3 lines
Diff to previous 1.164 (colored)

Use correct synopses for checkout and export when an invalid -k option
is specified. From Dawe in user/6177.

Revision 1.164 / (download) - annotate - [select for diffs], Mon Apr 6 06:45:56 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.163: +3 -1 lines
Diff to previous 1.163 (colored)

make sure we handle allowed options in cvs_export() instead
of ignoring them, even if they are just stubs.
unbreaks export with gnu cvs clients.

Revision 1.163 / (download) - annotate - [select for diffs], Fri Mar 27 07:28:57 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.162: +5 -3 lines
Diff to previous 1.162 (colored)

make sure that when we try to send a Set-sticky to the client,
we only do so if the file we're checking out was not supplied
on the command-line. Otherwise we'll end up setting CVS/Tag
for the entire directory instead of slapping a sticky tag
only on the file supplied.

Revision 1.162 / (download) - annotate - [select for diffs], Wed Mar 25 21:50:33 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.161: +11 -9 lines
Diff to previous 1.161 (colored)

switch our file and directory lists to RB trees (see tree(3)),
so we can benefit from faster lookup times while recursing.

Revision 1.161 / (download) - annotate - [select for diffs], Wed Mar 18 09:14:09 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.160: +2 -2 lines
Diff to previous 1.160 (colored)

be carefull when trying to access cf->file_rcs in cvs_checkout_file()
as it could be NULL under certain conditions.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Feb 23 21:32:08 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.159: +11 -1 lines
Diff to previous 1.159 (colored)

we no longer push out Set-sticky to the client when writing
our Tag file on the server or in cvs_mkpath(), this caused
problems for the "fast checkout" mechanism when a tag was supplied.

instead, write out any directory sticky tag when we are checking
out a file in that directory, this way we can use our "fast checkout"
mechanism (no /tmp required) even for -r and -d without breaking
working copies because they were missing CVS/Tag files.

"looks good" tobias@

Revision 1.159 / (download) - annotate - [select for diffs], Sat Feb 21 14:50:53 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.158: +3 -2 lines
Diff to previous 1.158 (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.158 / (download) - annotate - [select for diffs], Sat Feb 21 13:44:18 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.157: +2 -2 lines
Diff to previous 1.157 (colored)

use file_flags for 2 more reasons:
- mark a file as being inside the Attic/
- mark a file as existing in the working copy
  (both in local and remote mode)

this way we no longer will need to check if cf->fd == -1 and
think about wether or not we are in local or remote mode.

Revision 1.157 / (download) - annotate - [select for diffs], Wed Jan 28 17:40:13 2009 UTC (15 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.156: +10 -1 lines
Diff to previous 1.156 (colored)

enable -d for the export command.
ok joris@

Revision 1.156 / (download) - annotate - [select for diffs], Tue Jul 8 12:29:58 2008 UTC (15 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.155: +3 -4 lines
Diff to previous 1.155 (colored)

use cf->fd in cvs_remote_sendfile() instead of using a local
variable that is only used once, which is in this case.

Revision 1.155 / (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.154: +3 -1 lines
Diff to previous 1.154 (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.154 / (download) - annotate - [select for diffs], Sat Jun 14 03:58:29 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.153: +11 -4 lines
Diff to previous 1.153 (colored)

Added support for sticky date set in CVS/Tag and CVS/Entries per directory.

ok joris

Revision 1.153 / (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.152: +1 -2 lines
Diff to previous 1.152 (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.152 / (download) - annotate - [select for diffs], Thu Jun 12 16:55:48 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored)

Fixed a memory leak in export noticed by joris.

ok joris

Revision 1.151 / (download) - annotate - [select for diffs], Thu Jun 12 07:16:14 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.150: +29 -27 lines
Diff to previous 1.150 (colored)

completely kill the need for TMP_DIR when running checkout,
which gives us better performance among other things.

this is however disabled in a few cases:
1) whenever you run checkout over an existing tree (which acts as update)
2) whenever you specify -d or a module alias

we're planning on enabling this behaviour for case 2 in the future.

anoncvs sysadmins now love us even more.

ok tobias@

Revision 1.150 / (download) - annotate - [select for diffs], Wed Jun 11 21:24:50 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.149: +2 -2 lines
Diff to previous 1.149 (colored)

always enter cvs_update_leavedir()

Revision 1.149 / (download) - annotate - [select for diffs], Wed Jun 11 02:19:13 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.148: +7 -5 lines
Diff to previous 1.148 (colored)

Avoid possible NULL pointer dereferences by using reentrant versions
of time functions.

ok joris

Revision 1.148 / (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.147: +16 -2 lines
Diff to previous 1.147 (colored)

properly inherit file permissions.

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

Revision 1.147 / (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.146: +2 -2 lines
Diff to previous 1.146 (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.146 / (download) - annotate - [select for diffs], Sun Jun 8 21:48:56 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.145: +1 -3 lines
Diff to previous 1.145 (colored)

simplification from igor

Revision 1.145 / (download) - annotate - [select for diffs], Sun Jun 8 03:03:07 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.144: +1 -3 lines
Diff to previous 1.144 (colored)

Avoid memory leaks in directory tag handling by always allocating and
always freeing dirtag.

ok joris

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

expension -> expansion

ok joris, xsa (quite some time ago)

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

proper repository locking:
- all read operations now look for a lock, and wait if present but never
  try to lock the tree themselfs anymore.
- all write operations lock the tree where needed.
- commit locks all relevant directories before even attempting to start.

Revision 1.142 / (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.141: +13 -4 lines
Diff to previous 1.141 (colored)

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

Revision 1.141 / (download) - annotate - [select for diffs], Fri Feb 29 21:43:57 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.140: +7 -6 lines
Diff to previous 1.140 (colored)

handle file permissions and owners properly.
matches what gnu cvs does.

fixes the fact that we couldnt update group writable files.

problem report & diff testing by David Crawshaw.

Revision 1.140 / (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.139: +6 -4 lines
Diff to previous 1.139 (colored)

prevent file races

ok tobias@

Revision 1.139 / (download) - annotate - [select for diffs], Sun Feb 24 20:04:05 2008 UTC (16 years, 2 months ago) by tobias
Branch: MAIN
Changes since 1.138: +8 -3 lines
Diff to previous 1.138 (colored)

Properly handle return value of dirname().

OK joris@

Revision 1.138 / (download) - annotate - [select for diffs], Sun Feb 10 14:08:52 2008 UTC (16 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.137: +4 -4 lines
Diff to previous 1.137 (colored)

+ #define CVS_DATE_FMT   "%Y.%m.%d.%H.%M.%S"
...and use it.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Feb 10 13:01:08 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored)

Respond with "Updated" instead of "Checked-in" on server-side if a client
committed files, so keywords are expanded properly.

On client-side, we have to be careful about Directory ./ when it comes
to commits, so add a test for CVS_OP_COMMIT.

OK and help from joris@

Revision 1.136 / (download) - annotate - [select for diffs], Sun Feb 10 10:21:42 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored)

properly initialize cvs_specified_date so we dont end up with
random stuff going on

Revision 1.135 / (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.134: +9 -5 lines
Diff to previous 1.134 (colored)

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

Revision 1.134 / (download) - annotate - [select for diffs], Sat Feb 9 17:01:43 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.133: +7 -2 lines
Diff to previous 1.133 (colored)

Support for checkout -D extended:
Properly write CVS/Tag and CVS/Entries on various combinations of -r and -D.

OK joris@

Revision 1.133 / (download) - annotate - [select for diffs], Sat Feb 9 12:48:23 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.132: +9 -2 lines
Diff to previous 1.132 (colored)

remote improvements:

- make sure the client creates the correct CVS/Repository when running
  checkout if there was no -d targetdir specified.
- allow -D to work remotely for both checkout and update.

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

Get in proper support for checkout/update -A when it comes to keyword
expansion options.

OK joris@

Revision 1.131 / (download) - annotate - [select for diffs], Sat Feb 9 11:17:02 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.130: +6 -1 lines
Diff to previous 1.130 (colored)

Get in initial support for checkout -D.  Works fine with -r support right
now.

OK joris@

Revision 1.130 / (download) - annotate - [select for diffs], Thu Feb 7 07:50:00 2008 UTC (16 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.129: +1 -0 lines
Diff to previous 1.129 (colored)

exit() needs stdlib.h

Revision 1.129 / (download) - annotate - [select for diffs], Wed Feb 6 22:43:22 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.128: +4 -1 lines
Diff to previous 1.128 (colored)

lets do co -c as well (list available modules) and do it in 1/6th of the
lines GNU cvs does it in, without actually fucking up on bad lines,
like gnucvs.

ok tobias@

Revision 1.128 / (download) - annotate - [select for diffs], Mon Feb 4 22:36:40 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

CVSROOT/modules:

correct -i and -o usage

-i runs the program specified on commit
-o runs the program specified on checkout

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

implement -n for checkout:
	"Do not execute programs listed in the CVSROOT/modules file."

ok tobias@, pleasekeepthingssortedktnx xsa@

Revision 1.126 / (download) - annotate - [select for diffs], Mon Feb 4 19:08:32 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.125: +5 -1 lines
Diff to previous 1.125 (colored)

more CVSROOT/modules stuff:

- support for -i flag:
	Run "prog" on "cvs commit" from top-level of module.
- fix some memory leaks in modules.c
- pass the line number from cvs_read_config() towards the callbacks
  so its easier to print out where it's going wrong, if it ever does.

OK tobias@

Revision 1.125 / (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.124: +30 -8 lines
Diff to previous 1.124 (colored)

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

OK joris@

Revision 1.124 / (download) - annotate - [select for diffs], Sun Feb 3 23:34:41 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.123: +4 -3 lines
Diff to previous 1.123 (colored)

shuffle some stuff around so we dont end up doing the same things
twice in cvs_module_lookup() and checkout_check_directory();

allow single files to be ignored with ! as well;

Revision 1.123 / (download) - annotate - [select for diffs], Sun Feb 3 22:50:28 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.122: +68 -36 lines
Diff to previous 1.122 (colored)

more CVSROOT/module stuff:

- allow more then 1 module to be specified per definition
- respect the "!" sign which means: "hey ignore this dir when checking out"
- non alias definitions can now contain files

ok tobias@

Revision 1.122 / (download) - annotate - [select for diffs], Sun Feb 3 20:01:37 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.121: +4 -1 lines
Diff to previous 1.121 (colored)

dont forget to send the -d flag to our server as well if it
was specified;

Revision 1.121 / (download) - annotate - [select for diffs], Sun Feb 3 19:57:44 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.120: +4 -1 lines
Diff to previous 1.120 (colored)

respect any -l option that might have been set in CVSROOT/modules;

Revision 1.120 / (download) - annotate - [select for diffs], Sun Feb 3 18:42:32 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.119: +17 -5 lines
Diff to previous 1.119 (colored)

with the recent changes for CVSROOT/modules we can now support the
basics of checkout -d. Multiple modules with -d is still "not supported".

example:

$ opencvs -d /cvs co -d kernel_source_3_0 -rOPENBSD_3_0 ksrc

yes, it rocks.

ok tobias@

Revision 1.119 / (download) - annotate - [select for diffs], Sun Feb 3 17:20:14 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.118: +18 -9 lines
Diff to previous 1.118 (colored)

better CVSROOT/module support, includes remote support and modules
that are not aliases (-a);

OK tobias@

Revision 1.118 / (download) - annotate - [select for diffs], Sun Feb 3 15:20:10 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.117: +2 -2 lines
Diff to previous 1.117 (colored)

cvs_update_leavedir is only useful if dirs have to be pruned.

OK joris@

Revision 1.117 / (download) - annotate - [select for diffs], Sun Feb 3 15:08:04 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.116: +2 -1 lines
Diff to previous 1.116 (colored)

(f)utimes takes sys/time.h

Revision 1.116 / (download) - annotate - [select for diffs], Sat Feb 2 19:32:28 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.115: +10 -7 lines
Diff to previous 1.115 (colored)

initial CVSROOT/modules support, only does aliases at the moment (-a).
"modules.c, hurray!" xsa@, ok tobias@

Revision 1.115 / (download) - annotate - [select for diffs], Thu Jan 31 19:51:40 2008 UTC (16 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.114: +2 -2 lines
Diff to previous 1.114 (colored)

Make use of CVS_REV_BUFSZ everywhere for `sticky'.

Revision 1.114 / (download) - annotate - [select for diffs], Thu Jan 31 19:49:05 2008 UTC (16 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.113: +7 -9 lines
Diff to previous 1.113 (colored)

Rename `stickytag' variable to `sticky' for consistency with rest of the code.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Jan 31 19:38:59 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.112: +50 -17 lines
Diff to previous 1.112 (colored)

We have to carefully check if a checkout command is run with a valid
directory or file.  When it comes to files, check if there is a file
available ending in ,v or if it is in Attic.  Everything else in invalid.

OK joris@, xsa@

Revision 1.112 / (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.111: +11 -5 lines
Diff to previous 1.111 (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.111 / (download) - annotate - [select for diffs], Mon Jan 28 21:35:09 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.110: +3 -2 lines
Diff to previous 1.110 (colored)

Actually support checkout's -l.

OK xsa@

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jan 28 20:31:07 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.109: +3 -1 lines
Diff to previous 1.109 (colored)

Properly handle -R -- although it is default, it may be overwritten mit -l
in front of it.

OK joris@, xsa@

> Diff from Igor Zinovik

Revision 1.109 / (download) - annotate - [select for diffs], Wed Jan 23 09:34:08 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.108: +5 -1 lines
Diff to previous 1.108 (colored)

Don't reset the sticky tag of a file in CVS/Entries if it is not requested.

OK niallo@, xsa@

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jan 21 16:36:46 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.107: +7 -3 lines
Diff to previous 1.107 (colored)

Fixed export to be fully functional and compliant to GNU cvs in local and
remote setups.

OK xsa@

Revision 1.107 / (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.106: +2 -3 lines
Diff to previous 1.106 (colored)

another strcspn() round

Revision 1.106 / (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.105: +3 -3 lines
Diff to previous 1.105 (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.105 / (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.104: +4 -4 lines
Diff to previous 1.104 (colored)

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

Revision 1.104 / (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.103: +10 -4 lines
Diff to previous 1.103 (colored)

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

Revision 1.103 / (download) - annotate - [select for diffs], Sat Sep 22 15:30:29 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.102: +7 -2 lines
Diff to previous 1.102 (colored)

Support for checkout with a local repository already in place.

OK joris@

Revision 1.102 / (download) - annotate - [select for diffs], Sun Sep 9 20:24:06 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.101: +9 -5 lines
Diff to previous 1.101 (colored)

Added support for checkout -p with local repository.

OK joris@

Revision 1.101 / (download) - annotate - [select for diffs], Fri Sep 7 23:05:04 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.100: +10 -8 lines
Diff to previous 1.100 (colored)

Sprinkle some magic so checkout/update -p works
in both local and server mode.

OK tobias@

Revision 1.100 / (download) - annotate - [select for diffs], Fri Sep 7 19:36:05 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.99: +17 -3 lines
Diff to previous 1.99 (colored)

Added support for single file checkout.

OK joris@

Revision 1.99 / (download) - annotate - [select for diffs], Wed Jul 25 08:45:24 2007 UTC (16 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.98: +3 -2 lines
Diff to previous 1.98 (colored)

Correctly handle the export command when writing to history file.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Jul 18 08:17:27 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.97: +4 -1 lines
Diff to previous 1.97 (colored)

Support -r for the export command.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jul 3 13:22:42 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.96: +10 -16 lines
Diff to previous 1.96 (colored)

Rework the way opencvs works in relation to files in the Attic/:

Previously, files in the 'Attic/' were linked into our filelist as being
'Attic/filename,v' this caused unneeded stress on certain functions
like cvs_file_classify() who had to do pointer voodoo to split out
the 'Attic/' part and do other very weird stuff to normalize the pathname
of these files.

Instead, we handle these files early in the start when we
build the fileslist in cvs_repository_getdir(). When encountering
the 'Attic/' directory, we recurse in it if required but instead of
using the 'Attic/' directory component as our base directory we stick
with the directory name where 'Attic/' resides in, resulting in the
correct filename while maintaining the correct RCSpath for the file.

This made the following things a lot easier:
(and in most cases actually fixed the below points)

- status with files in Attic/.
- checking out HEAD repositories with files in Attic/.
- checking out repositories with -rTAG.
- updating with -rTAG.

and as an added bonus the following now also works:

- correctly creating CVS/Tag in both local and remote mode thus
  allowing update/status/and more to work correctly with the tagged tree.
  (thanks to the correct handling of -rTAG cases).
- resetting tags with opencvs -A properly works too now.

This is a major step forward into the usability
of OpenCVS when it comes to maintaining multiple tagged trees, the next
logical step would be to fix commiting to branches.

enjoy you -stable cowards.

tested by myself, xsa, niallo and ckuethe
thanks guys!

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

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

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jun 27 03:58:16 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.94: +11 -6 lines
Diff to previous 1.94 (colored)

We were missing the needed clue/magic to have our remote setup
handle files that have been removed from the repository
correctly, which resulted in them still being in the working copy
after doing an update.

noticed and diff tested by ckuethe@.

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jun 18 17:54:13 2007 UTC (16 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.93: +3 -1 lines
Diff to previous 1.93 (colored)

first stab at history stuff for opencvs, currently only writes
to CVSROOT/history but cannot parse it yet with the 'history' command.

"Commit it." ray@

Revision 1.93 / (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.92: +13 -2 lines
Diff to previous 1.92 (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.92 / (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.91: +9 -3 lines
Diff to previous 1.91 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.91 / (download) - annotate - [select for diffs], Sun Feb 18 10:30:45 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.90: +1 -2 lines
Diff to previous 1.90 (colored)

an erroneous free() crept in due to a merge error

Revision 1.90 / (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.89: +3 -4 lines
Diff to previous 1.89 (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.89 / (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.88: +10 -16 lines
Diff to previous 1.88 (colored)

snprintf() -> xsnprintf()

Revision 1.88 / (download) - annotate - [select for diffs], Sun Jan 28 23:39:42 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.87: +1 -4 lines
Diff to previous 1.87 (colored)

hey look, i found another debug printf from my merging stuff!
kill-zap-nuke-remove-delete it.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Jan 28 02:04:45 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.86: +51 -24 lines
Diff to previous 1.86 (colored)

add merging support in both local and remote sides.
tested by many, thanks.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Jan 26 21:59:11 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.85: +6 -8 lines
Diff to previous 1.85 (colored)

more fixe size buffers on the stack. ok xsa@ joris@

Revision 1.85 / (download) - annotate - [select for diffs], Fri Jan 26 21:48:17 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.84: +16 -5 lines
Diff to previous 1.84 (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.84 / (download) - annotate - [select for diffs], Fri Jan 26 11:19:44 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.83: +4 -8 lines
Diff to previous 1.83 (colored)

Handle CVS/Entries and file timestamp correctly so we do
not mistakenly see a file as Modified while it is not.

As a result, we can remove the very hackish cvs_hack_time() and
GNU cvs and opencvs should almost get along now.

lotsa help and okay The otto@

Revision 1.83 / (download) - annotate - [select for diffs], Thu Jan 25 23:22:32 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

when acting as a server - immediatly after we checkout a file
remove its temp copy so our worklist doesnt contain a
bazillion entries when checking out src.

as a result, we now use very little memory in server mode.

found and tested by otto@
ok cool and the gang.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jan 18 08:49:08 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.81: +1 -4 lines
Diff to previous 1.81 (colored)

put functions protos at the right place.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jan 17 22:39:50 2007 UTC (17 years, 4 months ago) by thib
Branch: MAIN
Changes since 1.80: +3 -5 lines
Diff to previous 1.80 (colored)

on checkout, only create the module path if we find the module.
Also make error ouput match GNU CVS.

ok joris@

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jan 17 20:38:50 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.79: +4 -1 lines
Diff to previous 1.79 (colored)

send -l Argument to server when appropriate.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jan 17 17:54:50 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.78: +29 -1 lines
Diff to previous 1.78 (colored)

add support for remote checkout in both our client and server,
with this the last real dependency to actually be able to use opencvs
in a remote setup has been added.

based upon an initial diff from xsa@
'kay niallo@

Revision 1.78 / (download) - annotate - [select for diffs], Tue Jan 16 08:33:46 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.77: +13 -14 lines
Diff to previous 1.77 (colored)

better, share -l and -R flags between checkout and export cmds.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Jan 16 08:17:27 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.76: +10 -3 lines
Diff to previous 1.76 (colored)

handle -l and -R for checkout too.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Jan 14 22:20:46 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.75: +5 -1 lines
Diff to previous 1.75 (colored)

reset sticky tags with -A; OK joris@.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jan 14 18:44:55 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.74: +2 -16 lines
Diff to previous 1.74 (colored)

replace checkout_write_revision() with rcs_rev_write_stmp()
they do exactly the same anyway.

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

plug 3 memleaks

Revision 1.73 / (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.72: +2 -2 lines
Diff to previous 1.72 (colored)

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

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jan 13 15:29:34 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.71: +24 -11 lines
Diff to previous 1.71 (colored)

- remote update now works again, with new rcs api
- we no longer hold the entire file in memory when sending or receiving it

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 12 23:56:11 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.70: +6 -19 lines
Diff to previous 1.70 (colored)

simplify after recent rcs API changes.
kay niallo@

Revision 1.70 / (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.69: +17 -9 lines
Diff to previous 1.69 (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.69 / (download) - annotate - [select for diffs], Wed Jan 3 22:28:30 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.68: +5 -8 lines
Diff to previous 1.68 (colored)

add support for 'remove' in a remote setup.
testing appriciated, as always.

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

if we are commiting a file, do not let the server resend it
with an 'Updated' response, seeing as the client will already have the
latest version. Instead, send the correct 'Checked-in' response.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Dec 22 11:51:50 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.66: +5 -6 lines
Diff to previous 1.66 (colored)

snprintf() -> cvs_path_cat();

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jul 7 17:37:17 2006 UTC (17 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.65: +71 -39 lines
Diff to previous 1.65 (colored)

first part of opencvs remote, fairly useable on existing trees
although i advise against using it on real development trees for now.

only a few commands work right so far:
- commit
- diff
- status
- log
- update (partially working)

if you feel like testing remote and run into bugs feel free to
contact me, and please include a full trace (-t).

Revision 1.65 / (download) - annotate - [select for diffs], Sat Jul 1 20:30:46 2006 UTC (17 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.64: +8 -1 lines
Diff to previous 1.64 (colored)

implement the -p (dump) flag for cvs update

ok joris@

Revision 1.64 / (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.63: +2 -3 lines
Diff to previous 1.63 (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.63 / (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.62: +3 -4 lines
Diff to previous 1.62 (colored)

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

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 14 20:28:53 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.61: +3 -5 lines
Diff to previous 1.61 (colored)

simplify cvs_hack_time() and the way it is called;

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 6 06:58:46 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.60: +51 -10 lines
Diff to previous 1.60 (colored)

more bits for the export command to work correctly. OK joris@.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jun 3 19:07:13 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.59: +12 -4 lines
Diff to previous 1.59 (colored)

add support for update -A and update -r<rev>.
hacking on the plane from toronto to barbados.

i will probably hack some more since im stuck in barbados
for 12 lovely hours over night cause the carribean airlines dont understand
the meaning over 'more than one flight a day'.

Revision 1.59 / (download) - annotate - [select for diffs], Wed May 31 22:25:59 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.58: +11 -1 lines
Diff to previous 1.58 (colored)

add support for the export command.

export does exactly the same as checkout except it does
not create any administrative (CVS/) directories.

Revision 1.58 / (download) - annotate - [select for diffs], Sun May 28 01:24:28 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.57: +20 -19 lines
Diff to previous 1.57 (colored)

enable merging on update. if your file in your working copy
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.

Revision 1.57 / (download) - annotate - [select for diffs], Sat May 27 16:10:01 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.56: +3 -1 lines
Diff to previous 1.56 (colored)

support the -d flag for update.

if you specify -d when running update new directories will be build,
otherwise they will be skipped.

Revision 1.56 / (download) - annotate - [select for diffs], Sat May 27 15:14:27 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored)

allow commands to respect the -l flag, if the -l flag is
specified certain commands will not recurse into directories.

at the same time introduce a method of specifying wether or not
a command should look in the repository for files.

Revision 1.55 / (download) - annotate - [select for diffs], Sat May 27 05:59:32 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.54: +3 -1 lines
Diff to previous 1.54 (colored)

correctly expand keywords when checking out files

Revision 1.54 / (download) - annotate - [select for diffs], Sat May 27 05:20:25 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.53: +7 -2 lines
Diff to previous 1.53 (colored)

pruning (-P) support for both the update and checkout commands;

Revision 1.53 / (download) - annotate - [select for diffs], Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.52: +115 -273 lines
Diff to previous 1.52 (colored)

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.52 / (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.51: +6 -6 lines
Diff to previous 1.51 (colored)

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

Revision 1.51 / (download) - annotate - [select for diffs], Fri Mar 24 13:34:27 2006 UTC (18 years, 2 months ago) by ray
Branch: MAIN
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (colored)

Remove unused variables, better integer types, prevent fallthroughs.
Found by lint.

Compare char * variables against NULL for consistency and add
parentheses around complicated comparisons, suggested by xsa@.

OK xsa@

Revision 1.50 / (download) - annotate - [select for diffs], Tue Jan 31 13:55:20 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.49: +9 -20 lines
Diff to previous 1.49 (colored)

errors in cvs_checkout_init() are definitly fatal.

Revision 1.49 / (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.48: +2 -2 lines
Diff to previous 1.48 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jan 27 12:56:28 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.47: +3 -5 lines
Diff to previous 1.47 (colored)

cvs_mkadmin() cannot return < 0 anymore;

Revision 1.47 / (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.46: +4 -6 lines
Diff to previous 1.46 (colored)

errors handling cleaning here too;

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jan 27 10:53:23 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.45: +16 -24 lines
Diff to previous 1.45 (colored)

errors handling cleaning here too;

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 25 12:16:13 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.44: +10 -6 lines
Diff to previous 1.44 (colored)

use cvs_rcs_getpath() here too + some strings cleanup whilst here.

Revision 1.44 / (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.43: +2 -9 lines
Diff to previous 1.43 (colored)

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

Revision 1.43 / (download) - annotate - [select for diffs], Fri Dec 30 17:51:01 2005 UTC (18 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

knf

Revision 1.42 / (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.41: +36 -41 lines
Diff to previous 1.41 (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.41 / (download) - annotate - [select for diffs], Sat Dec 3 01:02:08 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.40: +103 -4 lines
Diff to previous 1.40 (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.40 / (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.39: +3 -2 lines
Diff to previous 1.39 (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.39 / (download) - annotate - [select for diffs], Mon Jul 25 12:05:43 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)

KNF;

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jul 24 17:48:05 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

some more `if (!var)' cleanup;

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jul 8 08:54:43 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.36: +11 -2 lines
Diff to previous 1.36 (colored)



- revert previous commit a bit, those arguments belonged to expand-modules.
- send -N by default, to match GNU's behaviour.

ok xsa@

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 8 08:24:09 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.35: +1 -4 lines
Diff to previous 1.35 (colored)



do not send the Arguments to the server twice.

ok xsa@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 7 14:27:57 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)



remove trailing whitespaces

from deraadt@

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jun 28 08:54:54 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.33: +5 -1 lines
Diff to previous 1.33 (colored)

send date;

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 13 07:40:39 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.32: +43 -5 lines
Diff to previous 1.32 (colored)

`export' command first bits .. ok joris

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 9 09:01:50 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

-D implies pruning directories, as already does -r; ok joris

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 9 07:24:39 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

LP_ERR -> LP_ABORT to match gnu/usr.bin/cvs output; okay joris@.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jun 7 15:34:24 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

silly me. do not abuse the copy/paste skills i have ...

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jun 7 15:13:25 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.28: +5 -1 lines
Diff to previous 1.28 (colored)

enable -P option .. joris@ ok

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

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

Revision 1.27 / (download) - annotate - [select for diffs], Tue May 31 08:26:40 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

remove LP_ERROR log priority level and rather use LP_ERR as they are both
the same...

ok jfb joris

Revision 1.26 / (download) - annotate - [select for diffs], Mon May 30 07:39:21 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

dont return CVS_EX_USAGE when not needed; ok joris@

Revision 1.25 / (download) - annotate - [select for diffs], Sun May 29 17:48:44 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

-r implies -P (Prune empty directories);

Revision 1.24 / (download) - annotate - [select for diffs], Thu May 26 03:07:20 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)



first part of real pruning support

okay jfb@

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 24 20:04:43 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.22: +20 -4 lines
Diff to previous 1.22 (colored)



- simplify cvs_mkadmin().
- create the correct base paths in checkout.
- remove the CVS_CMD_SENDARGS2 flag for checkout, it doesn't need it.

okay jfb@

Revision 1.22 / (download) - annotate - [select for diffs], Tue May 24 04:12:25 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.21: +76 -41 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Mon May 23 17:30:35 2005 UTC (19 years ago) by xsa
Branch: MAIN
Changes since 1.20: +7 -1 lines
Diff to previous 1.20 (colored)

add -f flag; ok joris@

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 20 18:26:49 2005 UTC (19 years ago) by xsa
Branch: MAIN
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

first bits of the `cvs -n' option; ok jfb joris

Revision 1.19 / (download) - annotate - [select for diffs], Fri May 20 05:13:44 2005 UTC (19 years ago) by joris
Branch: MAIN
Changes since 1.18: +7 -2 lines
Diff to previous 1.18 (colored)



execute the command callback at the same time we are building
the in-memory filelist. cuts down on execution time for larger trees.

"put it in!" jfb@

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



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

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



remove EX_USAGE error codes

ok jfb@

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

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

Revision 1.14 / (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.13: +43 -62 lines
Diff to previous 1.13 (colored)



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

ok jfb@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 22 22:12:00 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.12: +61 -6 lines
Diff to previous 1.12 (colored)

- support -c and -s to retrieve the module list
- silently accept most of the other options supported by checkout
- do not abandon all hope if the `expand-modules' request fails

Revision 1.12 / (download) - annotate - [select for diffs], Tue Dec 14 01:11:51 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.11: +7 -7 lines
Diff to previous 1.11 (colored)

cleaner error handling on connection setup and in case of connection
failure

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

less whitespace, more pretty.  ok jfb

Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 26 16:05:13 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.9: +30 -10 lines
Diff to previous 1.9 (colored)

Match more closely the data sent by GNU CVS when dealing with multiple
modules.  Our checkout command can now perform the checkout of several
modules at once.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 12 21:03:46 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.8: +15 -10 lines
Diff to previous 1.8 (colored)

Add error checking and move the protocol calls so we only send them if
the cvs server is remote

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 6 13:08:39 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.7: +4 -5 lines
Diff to previous 1.7 (colored)

Start using the global files list

Revision 1.7 / (download) - annotate - [select for diffs], Tue Aug 3 04:56:27 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

Don't MKADMIN on cvs_file_get()

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 30 18:14:07 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.5: +8 -3 lines
Diff to previous 1.5 (colored)

Fix

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 30 01:49:22 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.4: +12 -10 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Thu Jul 29 18:32:45 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.3: +0 -4 lines
Diff to previous 1.3 (colored)

Don't export `cvs_root'

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 28 02:01:29 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Pass the appropriate argument to cvs_client_connect()

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 26 17:30:30 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.1: +10 -3 lines
Diff to previous 1.1 (colored)

* make checkout work in remote mode (almost)

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
Branch point for: OpenCVS

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.