File: //proc/3/root/proc/2/task/2/root/proc/self/root/usr/lib/python2.4/Demo/pdist/RCSProxy.pyo
mò
‚=5Dc @ s¾ d Z d k Z d k Z d k Z d k Z d k Z d k Z d k Z d f d „ ƒ YZ d e i e f d „ ƒ YZ
d e
e i f d „ ƒ YZ d „ Z
d „ Z e d
j o e ƒ n d S( s RCS Proxy.
Provide a simplified interface on RCS files, locally or remotely.
The functionality is geared towards implementing some sort of
remote CVS like utility. It is modeled after the similar module
FSProxy.
The module defines two classes:
RCSProxyLocal -- used for local access
RCSProxyServer -- used on the server side of remote access
The corresponding client class, RCSProxyClient, is defined in module
rcsclient.
The remote classes are instantiated with an IP address and an optional
verbosity flag.
Nt
DirSupportc B se t Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z d „ Z
d „ Z d
„ Z RS( Nc C s
g | _ d S( N( t selft _dirstack( R ( ( t) /usr/lib/python2.4/Demo/pdist/RCSProxy.pyt __init__! s c C s | i ƒ d S( N( R t _close( R ( ( R t __del__$ s c C s x | i o | i ƒ q Wd S( N( R R t back( R ( ( R R ' s
c C s
t i ƒ S( N( t ost getcwd( R ( ( R t pwd+ s c C s- t i ƒ } t i | ƒ | i i | ƒ d S( N( R R t savet chdirt nameR R t append( R R
R ( ( R t cd. s
c C sB | i p t i d ‚ n | i d } t i | ƒ | i d =d S( Ns empty directory stackiÿÿÿÿ( R R R t errort dirR ( R R ( ( R R 3 s
c C s7 t i t i ƒ } t t i i | ƒ } | i | | ƒ S( N(
R t listdirt curdirt filest filtert patht isdirR t _filtert pat( R R R ( ( R t listsubdirs: s c C s t i i | ƒ S( N( R R R R
( R R
( ( R R ? s c C s t i | d ƒ d S( Niÿ ( R t mkdirR
( R R
( ( R R B s c C s t i | ƒ d S( N( R t rmdirR
( R R
( ( R R E s (
t __name__t
__module__R R R R
R R t NoneR R R R ( ( ( R R s t
RCSProxyLocalc B sh t Z d „ Z d „ Z d d „ Z d d „ Z d „ Z d „ Z d d „ Z d d „ Z
d d „ Z RS(
Nc C s! t i i | ƒ t i | ƒ d S( N( t rcslibt RCSR R R ( R ( ( R R K s c C s! t i | ƒ t i i | ƒ d S( N( R R R R! R"