OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.176 / (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_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, 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, HEAD
Changes since 1.175: +3 -3 lines
Diff to previous 1.175 (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.175 / (download) - annotate - [select for diffs], Mon May 29 17:18:56 2017 UTC (6 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.174: +1 -3 lines
Diff to previous 1.174 (colored)

cvs_file_classify() was making the mistake of only taking over a sticky
tag from Entries for a given file if the sticky tag is present.

while changing this we can simplify some logic in update.c on how it
decides what tag to use for file classification.

Revision 1.174 / (download) - annotate - [select for diffs], Sat Oct 15 22:20:17 2016 UTC (7 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.173: +4 -6 lines
Diff to previous 1.173 (colored)

Quiet compiler warnings.  OK tomc@ tb@

Revision 1.173 / (download) - annotate - [select for diffs], Fri Oct 14 20:37:07 2016 UTC (7 years, 7 months ago) by fcambus
Branch: MAIN
Changes since 1.172: +3 -5 lines
Diff to previous 1.172 (colored)

Fix update -r and -A.

In certain cases update -r and update -A would not properly set or reset
the sticky tag for file(s).

From Joris Vink.

OK millert@

Revision 1.172 / (download) - annotate - [select for diffs], Thu Oct 13 20:51:25 2016 UTC (7 years, 7 months ago) by fcambus
Branch: MAIN
Changes since 1.171: +3 -6 lines
Diff to previous 1.171 (colored)

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

OK millert@

Revision 1.171 / (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.170: +9 -11 lines
Diff to previous 1.170 (colored)

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

Revision 1.170 / (download) - annotate - [select for diffs], Thu Feb 5 12:59:57 2015 UTC (9 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.169: +2 -1 lines
Diff to previous 1.169 (colored)

Include stdint.h, not limits.h to get SIZE_MAX.  OK guenther@

Revision 1.169 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
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], Fri Dec 13 15:19:41 2013 UTC (10 years, 5 months ago) by zhuk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored)

Make it compile again. And there is a time_t fix as a bonus!

Input and okay jca@.

Revision 1.167 / (download) - annotate - [select for diffs], Mon Jul 2 21:56:25 2012 UTC (11 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.166: +4 -4 lines
Diff to previous 1.166 (colored)

simplify rcsnum parsing by using a fixed array without all the realloc
ok stsp

Revision 1.166 / (download) - annotate - [select for diffs], Thu Oct 28 15:02:41 2010 UTC (13 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.165: +2 -2 lines
Diff to previous 1.165 (colored)

Change basep parameter of getdirentries() to be off_t *, not long *
so it works correctly with large offsets (and matches other systems).
This requires adding a new getdirentries syscall, with the old one
renamed to ogetdirentries.  All in-tree consumers of getdirentries()
have been updated.  Bump libc and libpthread major numbers.
OK and with deraadt@

Revision 1.165 / (download) - annotate - [select for diffs], Wed Oct 27 08:35:45 2010 UTC (13 years, 6 months ago) by tobias
Branch: MAIN
Changes since 1.164: +2 -4 lines
Diff to previous 1.164 (colored)

Merge -k and expand @@ parsing code between OpenCVS and OpenRCS, resulting
in a performance gain in OpenCVS in some "cvs update" scenarios.

ok zinovik

Revision 1.164 / (download) - annotate - [select for diffs], Wed Sep 29 18:14:52 2010 UTC (13 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.163: +38 -7 lines
Diff to previous 1.163 (colored)

Support for update -C, from zinovik.

ok tobias xsa

Revision 1.163 / (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_4_8_BASE, OPENBSD_4_8
Changes since 1.162: +11 -4 lines
Diff to previous 1.162 (colored)

Check date_parse return values.

OK xsa

Revision 1.162 / (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.161: +10 -10 lines
Diff to previous 1.161 (colored)

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

OK xsa zinovik

Revision 1.161 / (download) - annotate - [select for diffs], Tue Jul 13 21:33:44 2010 UTC (13 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.160: +11 -4 lines
Diff to previous 1.160 (colored)

Don't silently overwrite untracked local files with newly-added
repository files.

slightly earlier version ok zinovik xsa

Revision 1.160 / (download) - annotate - [select for diffs], Tue Mar 24 17:03:32 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.159: +4 -3 lines
Diff to previous 1.159 (colored)

shuffle code a bit so FILE_REMOVE_ENTRY also calls
cvs_checkout_file() with CO_REMOVE set otherwise our server
would never inform the client the entry should be removed.

Revision 1.159 / (download) - annotate - [select for diffs], Mon Mar 23 07:40:30 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.158: +2 -2 lines
Diff to previous 1.158 (colored)

LP_NOTICE should be LP_ERR when showing directory messages.

Revision 1.158 / (download) - annotate - [select for diffs], Sat Mar 21 11:16:28 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.157: +9 -7 lines
Diff to previous 1.157 (colored)

be smarter when checking if a directory is empty by looking at
CVS/Entries early on in cvs_update_leavedir()

Revision 1.157 / (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_5_BASE, OPENBSD_4_5
Changes since 1.156: +4 -4 lines
Diff to previous 1.156 (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.156 / (download) - annotate - [select for diffs], Sat Jun 28 13:10:02 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 -5 lines
Diff to previous 1.155 (colored)

if the user supplied -A only checkout files again if a sticky tag
was in fact set, instead of ALWAYS checking them out no matter what.

spotted & diff tested by naddy@

Revision 1.155 / (download) - annotate - [select for diffs], Thu Jun 19 19:04:59 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.154: +3 -2 lines
Diff to previous 1.154 (colored)

If checkout/update -p is requested with a specific tag for a file which
doesn't contain this tag, don't print head.

ok joris

Revision 1.154 / (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.153: +24 -13 lines
Diff to previous 1.153 (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.153 / (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.152: +8 -5 lines
Diff to previous 1.152 (colored)

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

ok joris

Revision 1.152 / (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.151: +3 -7 lines
Diff to previous 1.151 (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.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: +5 -4 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 19:10:02 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.149: +3 -2 lines
Diff to previous 1.149 (colored)

cleanup our junk when in server mode and running as checkout every
time we descend into another directory, leaves even less crap in /tmp
while running.

Revision 1.149 / (download) - annotate - [select for diffs], Mon Jun 9 23:54:27 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.148: +1 -2 lines
Diff to previous 1.148 (colored)

unused var

Revision 1.148 / (download) - annotate - [select for diffs], Mon Jun 9 22:31:24 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.147: +3 -7 lines
Diff to previous 1.147 (colored)

Properly handle merged files and conflicts which may arrise while merge.
Instead of ignoring all files which contain possible conflict markers,
only watch out for files which have actually been merged.

With input by and ok joris.

Revision 1.147 / (download) - annotate - [select for diffs], Sun Jun 8 16:32:34 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.146: +2 -2 lines
Diff to previous 1.146 (colored)

Don't check a file for conflict markers if it has no CVS/Entries entry.

ok joris

Revision 1.146 / (download) - annotate - [select for diffs], Fri May 30 16:14:34 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.145: +2 -2 lines
Diff to previous 1.145 (colored)

Keyword expansion must not be set if no RCS file is available, for example
a newly added but not yet committed file.  Fixes segfault.

ok joris

Revision 1.145 / (download) - annotate - [select for diffs], Fri May 23 09:46:45 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.144: +9 -4 lines
Diff to previous 1.144 (colored)

Properly pass the directory tag of parent directory into new subdirectories.

Spotted by and ok joris.

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

Wrong function names in fatal messages fixed.

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

expension -> expansion

ok joris, xsa (quite some time ago)

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

locate the first occurance of ':' in the given -j arguments
instead of the last one, otherwise we cannot properly separate
the tag from the given date (if any).

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

simplify logic in cvs_update_leavedir()

Revision 1.140 / (download) - annotate - [select for diffs], Sun Mar 9 13:01:22 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.139: +4 -1 lines
Diff to previous 1.139 (colored)

when in server mode, be sure the client picks up any new directories
if they are available if we run with -d, however do not send the
stuff when running a checkout so empty directories do not even appear
in our working copy, saves us the whole pruning trouble at the end with co.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Mar 9 01:02:38 2008 UTC (16 years, 2 months ago) by tobias
Branch: MAIN
Changes since 1.138: +4 -1 lines
Diff to previous 1.138 (colored)

While allocation memory, make sure that file sizes are smaller than SIZE_MAX.

ok joris

Revision 1.138 / (download) - annotate - [select for diffs], Sat Mar 8 22:54:58 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.137: +2 -4 lines
Diff to previous 1.137 (colored)

do not log successfull merges in CVSROOT/history when joining.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Mar 8 22:33:03 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.136: +10 -3 lines
Diff to previous 1.136 (colored)

better -j support

Revision 1.136 / (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.135: +154 -7 lines
Diff to previous 1.135 (colored)

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

Revision 1.135 / (download) - annotate - [select for diffs], Sun Mar 2 19:05:34 2008 UTC (16 years, 2 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.134: +2 -2 lines
Diff to previous 1.134 (colored)

Print the right synopsis for commands on error (especially if commands
share the same function: (r)tag, etc.).

ok joris

Revision 1.134 / (download) - annotate - [select for diffs], Sat Mar 1 22:35:44 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.133: +2 -2 lines
Diff to previous 1.133 (colored)

use file_rcsrev in update_clear_conflict() - this way
we will always pick up the correct revision.

Revision 1.133 / (download) - annotate - [select for diffs], Thu Feb 28 21:55:48 2008 UTC (16 years, 2 months ago) by tobias
Branch: MAIN
Changes since 1.132: +12 -10 lines
Diff to previous 1.132 (colored)

RCS files can have a default expansion mode, keep this in mind for
update -A and -k.

spotted by and ok joris

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

Cleanup buf implementation:

* Don't check for NULL on buffer creation, because it calls fatal() when
  something's wrong.
* All buffers are supposed to expand if there is no space left in them,
  so zap flags as well.
* Remove code that is now dead.

OK joris@

> Inspired by a diff from Igor Zinovik about unchecked return value.

Revision 1.131 / (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.130: +4 -4 lines
Diff to previous 1.130 (colored)

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

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

parse any date tags set in CVS/Tag or CVS/Entries properly, and use
them for commands;

with tobias@

Revision 1.129 / (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.128: +4 -4 lines
Diff to previous 1.128 (colored)

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

Revision 1.128 / (download) - annotate - [select for diffs], Sat Feb 9 17:52:32 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

in cvs_update_enterdir() write the CVS/Tag file if the
cvs_specified_date is != 0 as well;

Revision 1.127 / (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.126: +4 -4 lines
Diff to previous 1.126 (colored)

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

OK joris@

Revision 1.126 / (download) - annotate - [select for diffs], Sat Feb 9 13:09:33 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.125: +2 -1 lines
Diff to previous 1.125 (colored)

missing break

spotted by tobias@

Revision 1.125 / (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.124: +6 -2 lines
Diff to previous 1.124 (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.124 / (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.123: +17 -9 lines
Diff to previous 1.123 (colored)

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

OK joris@

Revision 1.123 / (download) - annotate - [select for diffs], Sat Feb 9 11:40:43 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

lets do -D for update as well

Revision 1.122 / (download) - annotate - [select for diffs], Fri Feb 8 21:44:32 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.121: +3 -4 lines
Diff to previous 1.121 (colored)

do not override a specified (-r) tag with the tag in the Entries file

Revision 1.121 / (download) - annotate - [select for diffs], Wed Feb 6 12:42:46 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.120: +8 -2 lines
Diff to previous 1.120 (colored)

Sticky tags must have a 'T' in front of them in CVS/Entries.

OK joris@

Revision 1.120 / (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.119: +2 -2 lines
Diff to previous 1.119 (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.119 / (download) - annotate - [select for diffs], Mon Feb 4 15:07:33 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.118: +35 -4 lines
Diff to previous 1.118 (colored)

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

OK joris@

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], Thu Jan 31 18:09:40 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.116: +3 -2 lines
Diff to previous 1.116 (colored)

During checkout -p don't print files which are in Attic if they are not
requested with -r.

OK joris@

Revision 1.116 / (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.115: +2 -2 lines
Diff to previous 1.115 (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.115 / (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.114: +2 -1 lines
Diff to previous 1.114 (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.114 / (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.113: +13 -21 lines
Diff to previous 1.113 (colored)

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

OK xsa@

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

another strcspn() round

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

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

Revision 1.111 / (download) - annotate - [select for diffs], Sun Sep 23 10:49:49 2007 UTC (16 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.110: +3 -2 lines
Diff to previous 1.110 (colored)

pass FILE_HAS_FLAG towards the update code so it can identify
if a given tag is present in the RCSfile or not.

Revision 1.110 / (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.109: +18 -7 lines
Diff to previous 1.109 (colored)

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

Revision 1.109 / (download) - annotate - [select for diffs], Fri Sep 7 23:59:01 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.108: +8 -5 lines
Diff to previous 1.108 (colored)

Properly send out rcs info header with "E " in server mode (stderr in
local mode). Format style change also enables opencvs to be used with
cvsweb (+ adjustment).

OK joris@

Revision 1.108 / (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.107: +5 -5 lines
Diff to previous 1.107 (colored)

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

OK tobias@

Revision 1.107 / (download) - annotate - [select for diffs], Tue Sep 4 17:57:41 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

Replaced strlen() with sizeof() - 1 when #define'd strings are used.

OK ray@

Revision 1.106 / (download) - annotate - [select for diffs], Thu Aug 23 13:11:14 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.105: +4 -2 lines
Diff to previous 1.105 (colored)

missing 'u' option for update caused gnu cvs client to not function
with our server mode. Unfortunatly we dont really support rcs diffs
for update just yet.

Revision 1.105 / (download) - annotate - [select for diffs], Thu Jul 5 23:03:32 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.104: +4 -1 lines
Diff to previous 1.104 (colored)

fix a "Device busy" error in server mode. found by ckuethe@

Revision 1.104 / (download) - annotate - [select for diffs], Tue Jul 3 13:22:43 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.103: +23 -8 lines
Diff to previous 1.103 (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.103 / (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.102: +3 -3 lines
Diff to previous 1.102 (colored)

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

Revision 1.102 / (download) - annotate - [select for diffs], Thu Jun 28 04:54:11 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.101: +3 -2 lines
Diff to previous 1.101 (colored)

do not call cvs_checkout_file() for file removals in local mode,
only required in server mode due to the fact we need to let the client
now its been removed, found this the hard way.

Revision 1.101 / (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.100: +2 -1 lines
Diff to previous 1.100 (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.100 / (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.99: +6 -1 lines
Diff to previous 1.99 (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.99 / (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.98: +2 -2 lines
Diff to previous 1.98 (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.98 / (download) - annotate - [select for diffs], Sun May 27 21:02:23 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.97: +2 -4 lines
Diff to previous 1.97 (colored)

Replace xmalloc/xsnprintf combo with xasprintf.

OK niallo@

Revision 1.97 / (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.96: +7 -3 lines
Diff to previous 1.96 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.96 / (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.95: +3 -4 lines
Diff to previous 1.95 (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.95 / (download) - annotate - [select for diffs], Fri Feb 9 16:46:26 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored)

correctly skip invalid entries when using
getdirentries(2).

ok otto@

Revision 1.94 / (download) - annotate - [select for diffs], Fri Feb 9 08:00:37 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored)

if a directory exists in the working dir but not in the
repository, mark it as to be skipped so we do not try to
lock it on update and miserably fail... OK joris@.

Revision 1.93 / (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.92: +3 -3 lines
Diff to previous 1.92 (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.92 / (download) - annotate - [select for diffs], Wed Jan 31 21:07:36 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.91: +3 -9 lines
Diff to previous 1.91 (colored)

snprintf() -> xsnprintf()

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jan 28 23:37:29 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.90: +7 -3 lines
Diff to previous 1.90 (colored)

do not overwrite a file that is modified but has a sticky tag set
when running update -A, instead merge in the changes.

'kay xsa@

Revision 1.90 / (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.89: +1 -6 lines
Diff to previous 1.89 (colored)

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

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

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

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jan 23 16:42:19 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.87: +6 -9 lines
Diff to previous 1.87 (colored)

When acting as a server do not blindly remove
directories in cvs_update_leavedir().

fixes the "Device busy" error some people have been seeing.
problem initially reported by Frank Denis.

ok xsa@

Revision 1.87 / (download) - annotate - [select for diffs], Thu Jan 18 09:26:19 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.86: +3 -2 lines
Diff to previous 1.86 (colored)

more informative error msg.

Revision 1.86 / (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.85: +6 -1 lines
Diff to previous 1.85 (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.85 / (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.84: +6 -12 lines
Diff to previous 1.84 (colored)

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

Revision 1.84 / (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.83: +4 -11 lines
Diff to previous 1.83 (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.83 / (download) - annotate - [select for diffs], Thu Jan 11 17:44:18 2007 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.82: +5 -4 lines
Diff to previous 1.82 (colored)

rework opencvs so that we can deal with binary files.  previously we assumed all files were ascii,
which broke things in real-world usage.  now a checkout of src should work, albeit using lots of
memory and cpu.  fixing this is the next step.

testing by many.
ok & some input joris@

Revision 1.82 / (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.81: +2 -1 lines
Diff to previous 1.81 (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.81 / (download) - annotate - [select for diffs], Thu Dec 7 09:14:16 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.80: +5 -6 lines
Diff to previous 1.80 (colored)

snprintf() -> cvs_path_cat()

Revision 1.80 / (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.79: +32 -6 lines
Diff to previous 1.79 (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.79 / (download) - annotate - [select for diffs], Mon Jul 3 07:09:35 2006 UTC (17 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

-p implies -n...

Revision 1.78 / (download) - annotate - [select for diffs], Sun Jul 2 21:01:48 2006 UTC (17 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.77: +4 -1 lines
Diff to previous 1.77 (colored)

- abort the commit when files are not correctly up to date.
- do not try to attempt to check for conflict markers when the file is not on disk.

found by and okay reyk@

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jul 1 21:09:36 2006 UTC (17 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

to be correct, cvs update -p is the "print" and not the "dump" flag.

suggested by deraadt@, ok joris@

Revision 1.76 / (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.75: +17 -1 lines
Diff to previous 1.75 (colored)

implement the -p (dump) flag for cvs update

ok joris@

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

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

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jun 14 15:17:54 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

i mixed up the offset and whence variables for lseek(2)

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

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

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

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

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jun 6 05:13:39 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

add support for the -D option of update,
-D allows you to update a file to matching a specified date:

opencvs up -D "1 hour ago" foobar will take the first matching
revision that was commited 1 hour ago.

Revision 1.70 / (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.69: +18 -4 lines
Diff to previous 1.69 (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.69 / (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.68: +20 -2 lines
Diff to previous 1.68 (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.68 / (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.67: +7 -7 lines
Diff to previous 1.67 (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.67 / (download) - annotate - [select for diffs], Sun May 28 17:25:18 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored)

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

Revision 1.66 / (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.65: +3 -3 lines
Diff to previous 1.65 (colored)

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

Revision 1.65 / (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.64: +111 -6 lines
Diff to previous 1.64 (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.64 / (download) - annotate - [select for diffs], Sat May 27 21:20:52 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.63: +1 -3 lines
Diff to previous 1.63 (colored)

do not close the same entries list twice, this caused a double free;

Revision 1.63 / (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.62: +11 -2 lines
Diff to previous 1.62 (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.62 / (download) - annotate - [select for diffs], Sat May 27 15:53:01 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

update needs the CR_REPO flag to, otherwise it will forget
about any new files or directories inside the repository

Revision 1.61 / (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.60: +6 -1 lines
Diff to previous 1.60 (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.60 / (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.59: +86 -2 lines
Diff to previous 1.59 (colored)

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

Revision 1.59 / (download) - annotate - [select for diffs], Sat May 27 03:30:31 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.58: +97 -250 lines
Diff to previous 1.58 (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.58 / (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.57: +2 -2 lines
Diff to previous 1.57 (colored)

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

Revision 1.57 / (download) - annotate - [select for diffs], Mon Apr 10 08:08:00 2006 UTC (18 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.56: +2 -3 lines
Diff to previous 1.56 (colored)

change rcs_kwexp_set() return type to void and simplify its use. OK niallo@.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Mar 16 09:06:19 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.55: +3 -7 lines
Diff to previous 1.55 (colored)

zap more unused variables.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Mar 14 15:59:06 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

add an argument to cvs_diff3() to be able to handle verbosity of
commands; fixes rcsmerge -q  behaviour. OK niallo@ ray@.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jan 27 15:26:38 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.53: +7 -12 lines
Diff to previous 1.53 (colored)

more errors handling cleanup;

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 6 16:41:15 2006 UTC (18 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.52: +9 -11 lines
Diff to previous 1.52 (colored)

ingore local update of newly added files. this fixes some possible
NULL pointer conditions and also removes some obsolete extra checks.

ok joris@

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jan 6 16:34:47 2006 UTC (18 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

uninitialized pointer could confuse the cleanup check

ok joris@

Revision 1.51 / (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.50: +2 -9 lines
Diff to previous 1.50 (colored)

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

Revision 1.50 / (download) - annotate - [select for diffs], Fri Dec 30 16:42:13 2005 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

minor style nits;

Revision 1.49 / (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.48: +28 -37 lines
Diff to previous 1.48 (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.48 / (download) - annotate - [select for diffs], Thu Dec 22 14:59:54 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.47: +2 -4 lines
Diff to previous 1.47 (colored)

cvs_rcs_getpath() cannot fail anymore;

Revision 1.47 / (download) - annotate - [select for diffs], Sat Dec 3 15:31:53 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

todd@ reminds me:

If you 'vi file.c' and change stuff, then 'make depend && make' you'll
have a file.o file most definately more recent than the latest committed
version of file.c.

Then, if you rm file.c, and cvs update file.c, if 'file.c' is set to the
timestamp of the last committed version, a subsequent 'make' will not
rebuild the .o file.

to fix this we simply use the current timestamp when updating files.
thanks todd@!

Revision 1.46 / (download) - annotate - [select for diffs], Sat Dec 3 13:00:00 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored)

respect Q flag in output;

Revision 1.45 / (download) - annotate - [select for diffs], Sat Dec 3 01:02:09 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.44: +117 -11 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Mon Aug 8 11:37:41 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored)

zap unused vars;

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jul 27 16:42:19 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

use LP_NOTICE instead of LP_INFO where appropriate;

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

KNF;

Revision 1.41 / (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.40: +4 -1 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Thu Jul 21 11:42:24 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

<sys/param.h> is already included in "cvs.h", no need to duplicate;

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 14 06:50:50 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.38: +4 -12 lines
Diff to previous 1.38 (colored)

use cvs_rcs_getpath();

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



remove trailing whitespaces

from deraadt@

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 30 16:47:19 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored)



remove CF_KNOWN flag and move the CVS_FST_UNKNOWN check above the
one that looks if CVSFILE is a directory, so we get a correct output
of unknown files in server mode.

discussed with and ok xsa@

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jun 30 16:37:29 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.35: +15 -13 lines
Diff to previous 1.35 (colored)



missing method checks in pre_exec handler.

ok xsa@

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 17 08:40:42 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.34: +25 -7 lines
Diff to previous 1.34 (colored)

- add missing option in the command usage
- handle -k
- handle -D and send it to server

ok joris

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

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

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 30 08:27:03 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored)

-D and -r can be used simultaneously, pointed out by marc@ and thus
backout my previous change + spotted another case in the annotate
command...

ok joris@

Revision 1.32 / (download) - annotate - [select for diffs], Sun May 29 16:36:54 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.31: +13 -1 lines
Diff to previous 1.31 (colored)

-D and -r are mutually exclusive ...

Revision 1.31 / (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.30: +6 -5 lines
Diff to previous 1.30 (colored)



first part of real pruning support

okay jfb@

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

remove debugging messages

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



correct wrong error code usage.

ok jfb@, xsa@

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

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

Revision 1.26 / (download) - annotate - [select for diffs], Wed Apr 27 04:42:40 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.25: +74 -70 lines
Diff to previous 1.25 (colored)

cleanup and initial split between remote and local update code

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 19 00:55:07 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)



send the correct argument, -A not -a

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 19 00:38:39 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.23: +24 -2 lines
Diff to previous 1.23 (colored)



support -P -A -d flags

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 18 21:02:50 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.22: +2 -10 lines
Diff to previous 1.22 (colored)

Modify the CVSFILE structure using a union to keep information about
both files and directories.  We can now keep the revision number for
regular files, and don't need to fetch the appropriate entry in the
command callbacks.  This saves a huge amount of parsing on Entries
files.

ok joris@

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 16 20:31:18 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.21: +10 -3 lines
Diff to previous 1.21 (colored)

thought i had committed that earlier;snprintf return value check; joris ok

Revision 1.21 / (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.20: +4 -4 lines
Diff to previous 1.20 (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.20 / (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.19: +1 -2 lines
Diff to previous 1.19 (colored)



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

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



remove EX_USAGE error codes

ok jfb@

Revision 1.18 / (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.17: +20 -55 lines
Diff to previous 1.17 (colored)



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

ok jfb@

Revision 1.17 / (download) - annotate - [select for diffs], Sun Feb 27 00:22:08 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Many improvements to the RCS support:

- make it possible to specify creation and the file mode
  in rcs_open()
- implicitly write the contents to disk on rcs_close() if the
  RCS handle has been changed
- fix a bug in the output of the `expand' keyword
- add functions to retrieve and modify the expansion mode
- rcs_parse() shouldn't be available to the outside
- empty string instead of `(null)' if there is no description

ok Joris

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 22 23:31:13 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

use the file's name, and not its full path, when building the path to
the RCS file in the repository

spotted by pvalchev@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 4 17:50:20 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

remove duplicate trace message which gets output in cvs_sendfile()

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 13 07:04:16 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.13: +7 -8 lines
Diff to previous 1.13 (colored)

prettier

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 21 18:32:10 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.12: +10 -7 lines
Diff to previous 1.12 (colored)

modify the directory handling portion to behave like the one in add.c,
which does not attempt to send data when running on a local
repository.  This will be needed to support local repository access

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

First attempt at syncing the command code and doing a lot more error
checking on all the protocol calls

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 -14 lines
Diff to previous 1.10 (colored)

less whitespace, more pretty.  ok jfb

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

tighten vertical spacing for else; jfb ok

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 26 16:23:50 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.8: +12 -11 lines
Diff to previous 1.8 (colored)

Rewrite the internals of the file management code so that we do not keep
a full path to each file we load, and cache file names so we can have
multiple references to a single name.  This saves a lot of memory on large
trees such as /usr/src, especially on 'Makefile', 'README' and such.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 27 15:55:31 2004 UTC (19 years, 8 months ago) by jfb
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

Add CF_NOSYMS to the flags so we skip symbolic links

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 12 18:02:18 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.6: +9 -12 lines
Diff to previous 1.6 (colored)

Use cvs_files to build the file hierarchy and handle explicit arguments
correctly

Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 12 17:48:18 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.5: +13 -6 lines
Diff to previous 1.5 (colored)

If the directory we are updating is unknown, send a Questionable request
instead of attempting to connect to an invalid root specification

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 30 20:55:35 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.4: +0 -2 lines
Diff to previous 1.4 (colored)

fix diffing by sending the base directory just before sending the 'diff'
command, and remove some debugging messages

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

Don't export `cvs_root'

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 29 17:39:12 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.1: +142 -4 lines
Diff to previous 1.1 (colored)

update meat

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.