[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reset Global_option
From: |
Tanaka Akira |
Subject: |
reset Global_option |
Date: |
15 Nov 2000 11:33:28 +0900 |
User-agent: |
T-gnus/6.14.5 (based on Gnus v5.8.7) (revision 03) REMI/1.14.3 (Matsudai) Deisui/1.14.0 (Kikuhime) APEL/10.2 Emacs/20.7 (i386-unknown-openbsd2.7) MULE/4.0 (HANANOEN) |
This patch resets modifications for static variables by Global_option
after doing cvs commands in server mode.
I'm not sure that they should be reset or not. But I think it's
reasonable because it seems that there is no way to reset them.
Especially resetting `noexec' is important. Because `cvs update -p'
set it and make following commands non-executing mode. Is there
better way to reset `noexec' in this case?
This patch shouldn't affect usual command line client because it
connects a server for each cvs command. But it affects me because I'm
tring to do multiple cvs commands with single connection.
Index: server.c
===================================================================
RCS file: /home/akr/.cvsroot/ccvs/src/server.c,v
retrieving revision 1.246
diff -u -r1.246 server.c
--- server.c 2000/10/20 20:48:00 1.246
+++ server.c 2000/11/15 02:17:13
@@ -3232,6 +3232,13 @@
argument_count = 1;
}
+ quiet = 0;
+ cvswrite = !CVSREAD_DFLT;
+ really_quiet = 0;
+ trace = 0;
+ noexec = 0;
+ logoff = 0;
+
/* Flush out any data not yet sent. */
set_block (buf_to_net);
buf_flush (buf_to_net, 1);
--
Tanaka Akira
- reset Global_option,
Tanaka Akira <=