-"Customize this file to change the default client etc."
+"""Customize this file to change the default client etc.
+
+(In general, it is probably be better to make local operation the
+default and to require something like an RCSSERVER environment
+variable to enable remote operation.)
+
+"""
import string
HOST = 'voorn.cwi.nl'
PORT = 4127
VERBOSE = 1
-
+LOCAL = 0
import client
host = HOST
port = PORT
verbose = VERBOSE
+ local = LOCAL
directory = None
for o, a in opts:
if o == '-h':
verbose = verbose + 1
if o == '-q':
verbose = 0
- address = (host, port)
- # XXX For local operation, instantiate RCSProxy.RCSProxyLocal() here
- x = RCSProxyClient(address, verbose)
+ if o == '-L':
+ local = 1
+ if local:
+ import RCSProxy
+ x = RCSProxy.RCSProxyLocal()
+ else:
+ address = (host, port)
+ x = RCSProxyClient(address, verbose)
if not directory:
try:
directory = open("CVS/Repository").readline()