//usr/lib64/lib64//python2.7/Demo//ó
V
Qc @ s… d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d „ Z d „ Z
d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z d „ Z d
„ Z d d „ Z d „ Z d „ Z i d e
f d 6d e
f d 6d e f d 6d e f d 6d e f d 6d e f d 6d e f d 6d e f d 6d e
f d 6d e f d 6d e f d 6Z e d k re ƒ n d S( s$ Remote RCS -- command line interfaceiÿÿÿÿN( t
openrcsclientc
C sn t j t _ y t j t j d d ƒ \ } } | s= d } n | d | d } } t j | ƒ sp t j d ‚ n t | \ } } t j | | ƒ \ } } WnZ t j k
rõ } | GHd GHd GHd GHd GHd
GHd GHd GHd
GHd GHd GHt j d ƒ n Xt | ƒ } | s| j
ƒ } n xP | D]H } y | | | | ƒ Wqt t j f k
re} d | | f GHqXqWd S( Ni s h:p:d:qvLt headi s unknown commands2 usage: rrcs [options] command [options] [file] ...s where command can be:s+ ci|put # checkin the given filess co|get # checkouts% info # print header infos1 head # print revision of head branchs* list # list filename if valids" log # print full logs/ diff # diff rcs file and work files7 if no files are given, all remote rcs files are assumedi s %s: %s(
t syst stderrt stdoutt getoptt argvt commandst has_keyt errort exitR t listfilest IOErrort os(
t optst restt cmdt coptsett funct coptst filest msgt xt fn( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyt main
s>
c C s› t | ƒ } | j ƒ } | j ƒ | j | ƒ } | r[ t | | | | ƒ r[ d | GHd Sd G| Gd GHt | ƒ } | j | | | ƒ } | r— | GHn d S( Ns %s: unchanged since last checkins Checking ins ...( t opent readt closet isvalidt samet
asklogmessaget put( R R R t ft datat newt messaget messages( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyt checkin/ s
c C s9 | j | ƒ } t | d ƒ } | j | ƒ | j ƒ d S( Nt w( t getR t writeR ( R R R R! R ( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyt checkout= s
c C s | j | ƒ d S( N( t lock( R R R ( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyR* C s c C s | j | ƒ d S( N( t unlock( R R R ( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyR+ F s c C sT | j | ƒ } | j ƒ } | j ƒ x | D] } | d G| | GHq, Wd d GHd S( Nt :t =iF ( t infot keyst sort( R R R t dictR/ t key( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyR. I s
c C s | j | ƒ } | G| GHd S( N( R ( R R R R ( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyR Q s c C s | j | ƒ r | GHn d S( N( R ( R R R ( ( s' /usr/lib64/python2.7/Demo/pdist/rrcs.pyt listU s c C sT d } x&