diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-10 10:53:07 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-10 10:53:07 +0000 |
commit | 92aeaf6a620fc317da8c80640986887fe71333e5 (patch) | |
tree | 00a3cc6cb62b4dc80cc8724ad0cf56fbcf611b56 /usr.bin/cvs/client.c | |
parent | f7c87d554b4db554cfb621940889d5e19ccd3123 (diff) |
send Global options -n -Q -r to the server.
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r-- | usr.bin/cvs/client.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index c78ecf61f1a..0be78ffa2df 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.18 2006/11/09 14:00:14 xsa Exp $ */ +/* $OpenBSD: client.c,v 1.19 2006/11/10 10:53:06 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -246,7 +246,16 @@ cvs_client_connect_to_server(void) cvs_client_send_request("valid-requests"); cvs_client_get_responses(); - if (cvs_trace) + if (cvs_noexec == 1) + cvs_client_send_request("Global_option -n"); + + if (verbosity == 0) + cvs_client_send_request("Global_option -Q"); + + if (cvs_readonly == 1) + cvs_client_send_request("Global_option -r"); + + if (cvs_trace == 1) cvs_client_send_request("Global_option -t"); if (verbosity == 2) |