OpenBSD CVS

CVS log for src/usr.bin/cvs/Attic/req.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45, Sat May 27 03:30:31 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: HEAD
Changes since 1.44: +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.44 / (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.43: +4 -4 lines
Diff to previous 1.43 (colored)

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

Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 28 07:17:17 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.42: +2 -4 lines
Diff to previous 1.42 (colored)

xmalloc(num * size) -> xcalloc(num, size)
asprintf -> xasprintf
Remove asprintf check, which was non-portable anyway.

``okidoki'' xsa@

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

cvs_mkadmin() cannot return < 0 anymore;

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jan 4 14:58:12 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.40: +8 -20 lines
Diff to previous 1.40 (colored)

make cvs_sendresp() return type void; ok joris@.

Revision 1.40 / (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.39: +2 -12 lines
Diff to previous 1.39 (colored)

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

Revision 1.39 / (download) - annotate - [select for diffs], Fri Dec 30 16:47:36 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.38: +2 -3 lines
Diff to previous 1.38 (colored)

more code cleanup, ok niallo@ and xsa@

Revision 1.38 / (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.37: +3 -3 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Thu Dec 22 14:31:44 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.36: +4 -7 lines
Diff to previous 1.36 (colored)

cvs_chdir() cannot fail anymore;

Revision 1.36 / (download) - annotate - [select for diffs], Wed Dec 21 20:04:36 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.35: +29 -80 lines
Diff to previous 1.35 (colored)

fatal()ization! OK joris@.

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

cvs_buf_write() cannot fail here;

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

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

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

ok niallo@ and xsa@

Revision 1.33 / (download) - annotate - [select for diffs], Sat Dec 3 20:27:35 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

strip any trailing slashes in the received Directory
request, to make sure we are compatible with gnu;

Revision 1.32 / (download) - annotate - [select for diffs], Fri Oct 7 21:47:32 2005 UTC (18 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored)

knf and spacing, ok joris@

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

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

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 29 10:38:55 2005 UTC (18 years, 9 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.29: +9 -6 lines
Diff to previous 1.29 (colored)

don't try to skip over the rootpath in the received directory if the
rootpath is larger.

tested by xsa@ a long time ago.

Revision 1.29 / (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.28: +16 -16 lines
Diff to previous 1.28 (colored)

KNF;

Revision 1.28 / (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.27: +3 -7 lines
Diff to previous 1.27 (colored)

use cvs_chdir();

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jul 22 17:55:35 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.26: +11 -11 lines
Diff to previous 1.26 (colored)

be sure we accept request for _all_ of our commands on the server side;

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jul 21 12:32:38 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

show questionable files as '? foo' on the server side.

ok xsa@, jfb@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 19 15:30:37 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

make the init command work;
tested aanriot@ joris@; Ok joris@.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 18 08:13:03 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

add cvs_noexec in cvs_req_globalopt() swtich case 'n';

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 10 13:59:52 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

nuke verbosity declaration here too;

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 17 15:09:55 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.21: +156 -40 lines
Diff to previous 1.21 (colored)



correctly build a temporary copy of the client its repository
localy, so the server can execute the local commands on it
and pipe the output to the client.

with this diff in, our server is now working, please note
that we currently don't have support for all commands yet,
but you can expect this soon.

ok xsa@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 10 21:14:47 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.20: +1 -3 lines
Diff to previous 1.20 (colored)



unused variable.

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

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

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

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

ok jfb joris

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 30 08:13:15 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)



zap an unused variable

Revision 1.17 / (download) - annotate - [select for diffs], Fri May 27 22:33:56 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)



missing handler for the diff command

ok jfb@

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

check the return value of cvs_startcmd() in cvs_req_command() so we
send the OK response if it went through, instead of grabbing a random
value from the stack

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

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

ok joris

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 18 20:24:19 2005 UTC (19 years ago) by joris
Branch: MAIN
Changes since 1.13: +57 -1 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], Mon Apr 18 21:33:34 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.12: +41 -6 lines
Diff to previous 1.12 (colored)

dummy handlers for the Entry, Modified, Is-Modified, Updated and
Questionable requests.

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

give the `noop' request its own handler, it definitely does not need
to be in the generic command handler, and add a dummy handler for the
`expand-modules' request

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 13 06:09:14 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.10: +174 -105 lines
Diff to previous 1.10 (colored)

* get rid of useless headers
* fix the handlers for Root, valid-requests, Directory and Set
* add a generic request handler for most of the requests expecting
  a response

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 13 05:39:07 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

when warning about unimplemented handlers, do not attempt to print
the errno message string

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 28 20:46:13 2004 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.8: +21 -2 lines
Diff to previous 1.8 (colored)

handler for the Set request

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 19 17:32:55 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.7: +32 -2 lines
Diff to previous 1.7 (colored)

add a handler for the Gzip-stream request.  The handler parses the
requested compression level but does not enable compression yet.

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

less whitespace, more pretty.  ok jfb

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

tighten vertical spacing for else; jfb ok

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 6 14:49:03 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.4: +15 -1 lines
Diff to previous 1.4 (colored)

Handle the '-b' and '-x' global options even if we don't support them,
and add support for case insensitivity

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 4 13:55:24 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.3: +40 -2 lines
Diff to previous 1.3 (colored)

Handlers for the `valid-requests' and `Valid-responses' requests

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

Handler for the `Global_opt' request

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 4 12:41:58 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.1: +52 -2 lines
Diff to previous 1.1 (colored)

Handler for the `Argument' and `Argumentx' requests

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 3 04:58:45 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN

Move all of the request- and response-specific handlers into separate
files and have only the generic function of each type available to
the outside

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.