1 """Customize this file to change the default client etc.
3 (In general, it is probably be better to make local operation the
4 default and to require something like an RCSSERVER environment
5 variable to enable remote operation.)
12 # These defaults don't belong here -- they should be taken from the
13 # environment or from a hidden file in the current directory
23 class RCSProxyClient(client
.SecureClient
):
25 def __init__(self
, address
, verbose
= client
.VERBOSE
):
26 client
.SecureClient
.__init
__(self
, address
, verbose
)
29 def openrcsclient(opts
= []):
30 "open an RCSProxy client based on a list of options returned by getopt"
41 i
= string
.find(host
, ':')
42 host
, p
= host
[:i
], host
[i
+1:]
57 x
= RCSProxy
.RCSProxyLocal()
59 address
= (host
, port
)
60 x
= RCSProxyClient(address
, verbose
)
63 directory
= open(os
.path
.join("CVS", "Repository")).readline()
67 if directory
[-1] == '\n':
68 directory
= directory
[:-1]