cvsserver: Respond to the 'editors' and 'watchers' commands
These commands list users editing and watching locked files. This trivial implementation always returns an empty response, since git-cvsserver does not implement file locking. Without this, TkCVS hangs at startup, waiting forever for a response. Signed-off-by: Damien Diederen <dash@foobox.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Damien Diederen committed
Mar 27, 2008 at 23:17 UTC
38bcd31a5879847d259a75fbcab9a7977ff63f1e
1 file changed
+7
-2
git-cvsserver.perl
+7
-2
@@ -73,8 +73,8 @@ my $methods = {
73
'status' => \&req_status,
74
'admin' => \&req_CATCHALL,
75
'history' => \&req_CATCHALL,
76
- 'watchers' => \&req_CATCHALL,
77
- 'editors' => \&req_CATCHALL,
76
+ 'watchers' => \&req_EMPTY,
77
+ 'editors' => \&req_EMPTY,
78
'annotate' => \&req_annotate,
79
'Global_option' => \&req_Globaloption,
80
#'annotate' => \&req_CATCHALL,
@@ -199,6 +199,11 @@ sub req_CATCHALL
199
$log->warn("Unhandled command : req_$cmd : $data");
200
}
201
202
+# This method invariably succeeds with an empty response.
203
+sub req_EMPTY
204
+{
205
+ print "ok\n";
206
+}
207
208
# Root pathname \n
209
# Response expected: no. Tell the server which CVSROOT to use. Note that