OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


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

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

ok florian@ millert@

Revision 1.105 / (download) - annotate - [select for diffs], Mon Aug 28 19:33:20 2017 UTC (6 years, 8 months ago) by otto
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.104: +2 -2 lines
Diff to previous 1.104 (colored)

fix const related warnings; ok millert@

Revision 1.104 / (download) - annotate - [select for diffs], Wed Dec 9 17:55:42 2015 UTC (8 years, 5 months ago) by mmcc
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.103: +2 -3 lines
Diff to previous 1.103 (colored)

Remove NULL-checks before free(). ok tb@

Revision 1.103 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.102: +10 -10 lines
Diff to previous 1.102 (colored)

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

Revision 1.102 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.101: +20 -20 lines
Diff to previous 1.101 (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.101 / (download) - annotate - [select for diffs], Mon Dec 1 21:58:46 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.

Revision 1.100 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.99: +6 -6 lines
Diff to previous 1.99 (colored)

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

OK xsa zinovik

Revision 1.99 / (download) - annotate - [select for diffs], Sat Apr 18 16:26:01 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.98: +8 -6 lines
Diff to previous 1.98 (colored)

bleh, do not force the client to support certain responses.
this fixes annotate on our cvsweb. the cvsweb script does very
funky things in order to get the job done, but hey we should support it.
i'm shocked nobody noticed annotate wasnt working, djees.

found by jacekm@

Revision 1.98 / (download) - annotate - [select for diffs], Fri Apr 10 11:26:10 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.97: +3 -13 lines
Diff to previous 1.97 (colored)

with the recent module-expand changes, we need to use
the correct repository path in Set-sticky and Clear-sticky
otherwise we'll end up with stuff like src/bin/ls/src/bin/ls
in CVS/Repository which pretty much breaks.

noticed & ok sthen@

Revision 1.97 / (download) - annotate - [select for diffs], Sat Apr 4 11:32:48 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.96: +1 -6 lines
Diff to previous 1.96 (colored)

don't try to free stuff we shouldnt free, really.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Apr 4 11:29:57 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.95: +26 -1 lines
Diff to previous 1.95 (colored)

properly expand modules if requested by the client,
this option is needed so gnu cvs clients can play along
properly when running checkout <module> in a remote setup.

if we do not support this, gnu cvs refuses to send us any
existing files already on disk and opencvs will consider everything
as NEEDS_CHECKOUT, instead of running an update on existing stuff.

problem noticed by fgsch@
commited with opencvs, but please everybody else
do not use opencvs to commit yet.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Mar 19 09:56:03 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.94: +1 -3 lines
Diff to previous 1.94 (colored)

kill unused vars

Revision 1.94 / (download) - annotate - [select for diffs], Thu Mar 19 09:53:16 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.93: +15 -1 lines
Diff to previous 1.93 (colored)

properly register Questionable files using CVS/Entries server-side
in order for them to show up as "? foobar" when opencvs is in server mode.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Feb 21 13:39:01 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.92: +11 -9 lines
Diff to previous 1.92 (colored)

correct Set-sticky and Clear-sticky responses to
include the right repository path.

we messed up some cvs implementations by
doing this incorrectly.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jul 8 12:54:13 2008 UTC (15 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

make these compile cleanly

Revision 1.91 / (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.90: +1 -4 lines
Diff to previous 1.90 (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.90 / (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.89: +12 -2 lines
Diff to previous 1.89 (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.89 / (download) - annotate - [select for diffs], Tue Jun 10 05:01:36 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.88: +3 -4 lines
Diff to previous 1.88 (colored)

We have a cvs_buf_puts implementation now, also use cvs_buf_putc instead
of cvs_buf_append where appropiate.

ok joris

Revision 1.88 / (download) - annotate - [select for diffs], Wed May 28 17:12:00 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.87: +7 -6 lines
Diff to previous 1.87 (colored)

Don't limit ourselfs when it comes to arguments on command line or
arguments sent by client.

ok joris

Revision 1.87 / (download) - annotate - [select for diffs], Tue May 6 10:37:30 2008 UTC (16 years ago) by tobias
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

We have to check if server_argc is 1 instead of lesser than 0 to see if
an Argumentx directive has been sent to server without prior Argument.

ok joris, xsa

Revision 1.86 / (download) - annotate - [select for diffs], Thu Apr 24 19:13:56 2008 UTC (16 years ago) by tobias
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

Use a fixed string in case of vasprintf() error instead of relying on
strerror().  Although our vasprintf() sets errno, we cannot rely on it on
other systems.

ok ray (who spotted this issue), xsa

Revision 1.85 / (download) - annotate - [select for diffs], Fri Apr 18 20:26:07 2008 UTC (16 years, 1 month ago) by tobias
Branch: MAIN
Changes since 1.84: +5 -3 lines
Diff to previous 1.84 (colored)

Properly check memory allocation in client code.  While at it, unified
vasprintf() check across OpenCVS code base.

Based on a diff by Jacek Masiulaniec.

ok (and unification requested by) xsa

Revision 1.84 / (download) - annotate - [select for diffs], Mon Feb 11 20:33:11 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (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.83 / (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.82: +7 -4 lines
Diff to previous 1.82 (colored)

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

Revision 1.82 / (download) - annotate - [select for diffs], Sun Feb 3 18:18:44 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.81: +13 -1 lines
Diff to previous 1.81 (colored)

Added rdiff support.  In order to do this, some output and option fixes
had to be done for diff, too.

OK joris@

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

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

OK tobias@

Revision 1.80 / (download) - annotate - [select for diffs], Fri Feb 1 17:18:59 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.79: +13 -1 lines
Diff to previous 1.79 (colored)

Added rannotate support

OK xsa@

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

Zap trailing whitespaces.

Revision 1.78 / (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.77: +20 -2 lines
Diff to previous 1.77 (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.77 / (download) - annotate - [select for diffs], Tue Jan 29 12:01:52 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.76: +7 -5 lines
Diff to previous 1.76 (colored)

Fixed function name in fatal calls.  While at it, adjusted style.

> Diff from Igor Zinovik

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

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

OK xsa@

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jan 10 11:20:29 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.74: +12 -1 lines
Diff to previous 1.74 (colored)

Added support for rtag in local and remote setups (with interoperability
with GNU cvs).  Basically we already had rtag in place as tag is supposed
to work with revisions in working directory, but our implementation was
wrong.  Fixed that on the fly as well.

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

Got cvs_server_rlog back into shape.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Nov 9 16:27:38 2007 UTC (16 years, 6 months ago) by tobias
Branch: MAIN
Changes since 1.72: +5 -1 lines
Diff to previous 1.72 (colored)

Parse CVSROOT/config and set umask on server-side, too.

Revision 1.72 / (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.71: +3 -5 lines
Diff to previous 1.71 (colored)

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

Revision 1.71 / (download) - annotate - [select for diffs], Sat Sep 22 15:57:24 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.70: +13 -16 lines
Diff to previous 1.70 (colored)

we no longer create a 0 sized file in our /tmp/cvs-serv<pid> server
directory when a client sends us info about a file that is up to date.

instead, remember the file is up to date in our CVS/Entries. Saves us a lot
of headaches on very big trees like src/

Revision 1.70 / (download) - annotate - [select for diffs], Fri Sep 7 19:18:41 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.69: +7 -4 lines
Diff to previous 1.69 (colored)

Do not use global option -V (GNU cvs doesn't understand it), be very
verbose per default on server-side instead.

OK joris@

Revision 1.69 / (download) - annotate - [select for diffs], Sun Sep 2 12:16:24 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.68: +9 -3 lines
Diff to previous 1.68 (colored)

OpenCVS server init-support with OpenCVS and GNU cvs clients.

OK joris@

Revision 1.68 / (download) - annotate - [select for diffs], Sun Sep 2 12:13:00 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.67: +21 -2 lines
Diff to previous 1.67 (colored)

Stick at GNU cvs behaviour with Root directive handling: it does not need
to be sent first, can occure multiple times (although this is ignored) but
should be supplied before Directory.

OK joris@

Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 28 19:10:18 2007 UTC (16 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

more typos in error messages; from Igor Zinovik.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Aug 23 13:17:53 2007 UTC (16 years, 9 months ago) by joris
Branch: MAIN
Changes since 1.65: +13 -1 lines
Diff to previous 1.65 (colored)

support ArgumentX - unbreaks more gnu cvs client things.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jul 3 13:22:43 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.64: +34 -3 lines
Diff to previous 1.64 (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.64 / (download) - annotate - [select for diffs], Fri Jun 29 12:42:05 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.63: +12 -1 lines
Diff to previous 1.63 (colored)

Server-side bits for release command.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jun 27 20:42:19 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.62: +5 -1 lines
Diff to previous 1.62 (colored)

have the server be more strict about the requests the client
sends that need a 'Directory' request first, so we do not
end up with very weird and possibly insecure behaviour.

more soon!

ok niallo@ ray@ xsa@

Revision 1.62 / (download) - annotate - [select for diffs], Tue Jun 26 02:24:10 2007 UTC (16 years, 10 months ago) by niallo
Branch: MAIN
Changes since 1.61: +20 -1 lines
Diff to previous 1.61 (colored)

add support for cvs rlog.
from Mickey.

ok joris@ ray@

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jun 6 00:38:37 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored)

Don't double xstrdup.

From mickey.

``i made a booboo'' joris, OK niallo and xsa.

Revision 1.60 / (download) - annotate - [select for diffs], Sun May 27 00:06:42 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.59: +2 -3 lines
Diff to previous 1.59 (colored)

Fix off-by-one, from Tobias Stoeckmann.

OK niallo@

Revision 1.59 / (download) - annotate - [select for diffs], Sat May 26 23:52:04 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.58: +2 -16 lines
Diff to previous 1.58 (colored)

It is not the job of cvs_server_send_response() to do error checking.

Also remove unused variable.

OK niallo@

Revision 1.58 / (download) - annotate - [select for diffs], Sat May 26 23:19:31 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.57: +5 -8 lines
Diff to previous 1.57 (colored)

Remove redundant xsnprintf calls.

OK niallo@

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 25 22:27:02 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.56: +25 -2 lines
Diff to previous 1.56 (colored)

Call fatal() if we are missing an argument.  From Tobias Stoeckmann.

OK niallo@.

Revision 1.56 / (download) - annotate - [select for diffs], Fri May 25 21:58:00 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored)

Check vasprintf for failure.

OK niallo@.

Revision 1.55 / (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.54: +9 -4 lines
Diff to previous 1.54 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.54 / (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.53: +7 -13 lines
Diff to previous 1.53 (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.53 / (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.52: +4 -13 lines
Diff to previous 1.52 (colored)

snprintf() -> xsnprintf()

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

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

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

import improvements:
- add support for remote import in opencvs client and server.
- do not free already free'd buffers in import_update()
- do not append a '\0' to the loaded file buffer, this was bad behaviour

makes import work fine both locally and remotely.

Revision 1.49 / (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.48: +34 -8 lines
Diff to previous 1.48 (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.48 / (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.47: +2 -7 lines
Diff to previous 1.47 (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.47 / (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.46: +24 -1 lines
Diff to previous 1.46 (colored)

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

Revision 1.46 / (download) - annotate - [select for diffs], Tue Dec 19 14:11:21 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

add client-side support for Set-static-directory.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Dec 19 11:46:39 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

add client-side support for Clear-static-directory, Clear-sticky and
Set-sticky requests. Set-sticky needs more work though.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 15 13:12:14 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.43: +13 -1 lines
Diff to previous 1.43 (colored)

dummy support for update-patches request.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Dec 15 09:50:37 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.42: +22 -2 lines
Diff to previous 1.42 (colored)

server-side Static-directory bits.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 15 08:02:53 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.41: +23 -1 lines
Diff to previous 1.41 (colored)

server-side Sticky bits.

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

snprintf() -> cvs_path_cat()

Revision 1.40 / (download) - annotate - [select for diffs], Mon Nov 27 16:04:10 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.39: +11 -1 lines
Diff to previous 1.39 (colored)

hook up annotate server bits.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Nov 14 15:39:42 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.38: +15 -1 lines
Diff to previous 1.38 (colored)

Add support for the "Set" request.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 14 14:45:31 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.37: +12 -3 lines
Diff to previous 1.37 (colored)

Handle global -l, -Q, and -r on the server side too.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Nov 14 09:59:54 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.36: +6 -1 lines
Diff to previous 1.36 (colored)

dummy support for Argumentx request.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Nov 14 09:47:52 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.35: +9 -1 lines
Diff to previous 1.35 (colored)

Bring back version command. Still needs tweaks to make the
gnu cvs client<->opencvs server setup work. Rest works fine.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Nov 13 12:57:03 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.34: +13 -1 lines
Diff to previous 1.34 (colored)

Add server-side bits for admin command.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 9 14:00:14 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.33: +12 -1 lines
Diff to previous 1.33 (colored)

cvs init remote bits.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Nov 9 10:08:33 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

fix pasto..

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 9 09:24:28 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.31: +12 -1 lines
Diff to previous 1.31 (colored)

remote tag command support joins the party!

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

a step ahead in opencvs add|remove remote support.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jul 9 01:47:20 2006 UTC (17 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.29: +2 -24 lines
Diff to previous 1.29 (colored)

more straightforward trace (-t) output, too much is just too noisy.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jul 7 17:37:17 2006 UTC (17 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.28: +421 -88 lines
Diff to previous 1.28 (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.28, Sat May 27 03:30:31 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.27: +1 -1 lines
FILE REMOVED

commit the new opencvs code, i have been hacking on
this for the past 2 weeks now and it should go in at
the start of the hackathon so others can help out.

this code is a lot safer, smarter, faster and best of
all it is actually doing what it is suppose to do!

basic checkout, update, status, diff and commit are
working in local mode only.
there is no support for any remote setups now.

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

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

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 24 19:07:52 2005 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.25: +2 -5 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 20 16:55:21 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.24: +13 -17 lines
Diff to previous 1.24 (colored)

use fatal(); OK joris@ niallo@.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Oct 14 13:46:36 2005 UTC (18 years, 7 months ago) by moritz
Branch: MAIN
Changes since 1.23: +8 -3 lines
Diff to previous 1.23 (colored)

remove temporary cvs directory in error cases too. ok joris@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Aug 14 19:49:18 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

missing casts; ok joris

Revision 1.22 / (download) - annotate - [select for diffs], Wed Aug 10 14:49:20 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

fgets() expects the 2nd arg to be an int. OK jfb@ joris@.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Aug 8 14:28:59 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)

use cvs_tmpdir; OK jfb@ joris@.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 27 10:36:14 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

rename cvs_remove_dir() to cvs_rmdir() because it might be confusing
with the `remove' command local functions. ok joris@.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 23 10:59:47 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.18: +2 -5 lines
Diff to previous 1.18 (colored)

use cvs_chdir();

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

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

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



correct wrong error code usage.

ok jfb@, xsa@

Revision 1.15 / (download) - annotate - [select for diffs], Wed May 18 21:39:25 2005 UTC (19 years ago) by alek
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Style

ok joris@

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 18 20:24:19 2005 UTC (19 years ago) by joris
Branch: MAIN
Changes since 1.13: +30 -2 lines
Diff to previous 1.13 (colored)



build a local copy of the client's source tree when acting as a server.
more server stuff coming soon!

ok jfb@, xsa@

Revision 1.13 / (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.12: +4 -4 lines
Diff to previous 1.12 (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.12 / (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.11: +1 -2 lines
Diff to previous 1.11 (colored)



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

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



remove EX_USAGE error codes

ok jfb@

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

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

Revision 1.9 / (download) - annotate - [select for diffs], Fri Apr 1 09:52:39 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)



crank up buffersize to get rid of truncated requests.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 31 17:18:24 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)



make sure the server command can still be reached with the
new framework.

ok xsa@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 28 23:08:24 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.6: +1 -10 lines
Diff to previous 1.6 (colored)

dead code

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 7 17:10:56 2004 UTC (19 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.5: +10 -15 lines
Diff to previous 1.5 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 2 17:35:37 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.4: +26 -9 lines
Diff to previous 1.4 (colored)

Get a step closer to reality

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

Remove remaining references to cvs_root

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 29 18:23:25 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.2: +0 -3 lines
Diff to previous 1.2 (colored)

No need to import the `cvs_root' symbol anymore, it is done in cvs.h

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

Fix $OpenBSD$ tag

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.