diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-10-31 15:23:41 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-10-31 15:23:41 +0000 |
commit | 6b639b79a75b1008f80dc46d346769d66ea5d9d9 (patch) | |
tree | 34a5d5efee320683eb1daff337b45250c9d9a20e /usr.bin/cvs/server.c | |
parent | 3448b5f8fe160f08b3a81478b57cc347464d6745 (diff) |
a step ahead in opencvs add|remove remote support.
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r-- | usr.bin/cvs/server.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c index 4c209842314..5bc1cc06381 100644 --- a/usr.bin/cvs/server.c +++ b/usr.bin/cvs/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.30 2006/07/09 01:47:20 joris Exp $ */ +/* $OpenBSD: server.c,v 1.31 2006/10/31 15:23:40 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -378,6 +378,17 @@ cvs_server_argument(char *data) } void +cvs_server_add(char *data) +{ + if (chdir(server_currentdir) == -1) + fatal("cvs_server_add: %s", strerror(errno)); + + cvs_cmdop = CVS_OP_ADD; + cvs_add(server_argc, server_argv); + cvs_server_send_response("ok"); +} + +void cvs_server_commit(char *data) { if (chdir(server_currentdir) == -1) @@ -400,6 +411,17 @@ cvs_server_diff(char *data) } void +cvs_server_remove(char *data) +{ + if (chdir(server_currentdir) == -1) + fatal("cvs_server_remove: %s", strerror(errno)); + + cvs_cmdop = CVS_OP_REMOVE; + cvs_remove(server_argc, server_argv); + cvs_server_send_response("ok"); +} + +void cvs_server_status(char *data) { if (chdir(server_currentdir) == -1) |