V Qc@skdZddlZddlZdZdZdZdZddlZdejfdYZ gd Z dS( sCustomize 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.) iNs voorn.cwi.nliiitRCSProxyClientcBseZejdZRS(cCstjj|||dS(N(tclientt SecureClientt__init__(tselftaddresstverbose((s,/usr/lib64/python2.7/Demo/pdist/rcsclient.pyRs(t__name__t __module__RtVERBOSER(((s,/usr/lib64/python2.7/Demo/pdist/rcsclient.pyRsc Csddl}t}t}t}t}d}x|D]\}}|dkr|}d|krtj|d} || || d}} | rtj| }qqn|dkrtj|}n|dkr|}n|dkr|d}n|d krd }n|d kr1d}q1q1W|r?ddl}|j } n||f} t | |} |sy%t t j jd d j}Wntk rqX|ddkr|d }qn|r| j|n| S(sEopen an RCSProxy client based on a list of options returned by getoptiNs-ht:is-ps-ds-vs-qis-LtCVSt Repositorys (tRCSProxytHOSTtPORTR tLOCALtNonetstringtfindtatoit RCSProxyLocalRtopentostpathtjointreadlinetIOErrortcd( toptsR thosttportRtlocalt directorytotatitptxR((s,/usr/lib64/python2.7/Demo/pdist/rcsclient.pyt openrcsclientsN              % ( t__doc__RRRRR RRRRR'(((s,/usr/lib64/python2.7/Demo/pdist/rcsclient.pyts