MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.145.176.228
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /../usr/lib64/audit/../python2.7/curses/../Demo/pdist/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //../usr/lib64/audit/../python2.7/curses/../Demo/pdist/rrcs.pyo
�
V
�Qc@s�dZddlZddlZddlZddlZddlZddlZddlmZd�Z	d�Z
d�Zd�Zd�Z
d	�Zd
�Zd�Zd�Zd
�Zdd�Zd�Zd�Zide
fd6de
fd6defd6defd6defd6defd6defd6defd6de
fd6defd6defd6Zedkr�e	�ndS( s$Remote RCS -- command line interfacei����N(t
openrcsclientc
Csntjt_y�tjtjdd�\}}|s=d}n|d|d}}tj|�sptjd�nt|\}}tj||�\}}WnZtjk
r�}|GHdGHdGHdGHd	GHd
GHdGHdGHd
GHdGHdGHtjd�nXt	|�}|s|j
�}nxP|D]H}	y||||	�Wqttjfk
re}d|	|fGHqXqWdS(Nis	h:p:d:qvLtheadisunknown commands2usage: rrcs [options] command [options] [file] ...swhere 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 files7if no files are given, all remote rcs files are assumedis%s: %s(
tsyststderrtstdouttgetopttargvtcommandsthas_keyterrortexitRt	listfilestIOErrortos(
toptstresttcmdtcoptsettfunctcoptstfilestmsgtxtfn((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pytmain
s>	
cCs�t|�}|j�}|j�|j|�}|r[t||||�r[d|GHdSdG|GdGHt|�}|j|||�}|r�|GHndS(Ns %s: unchanged since last checkinsChecking ins...(topentreadtclosetisvalidtsamet
asklogmessagetput(RRRtftdatatnewtmessagetmessages((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pytcheckin/s
	
cCs9|j|�}t|d�}|j|�|j�dS(Ntw(tgetRtwriteR(RRRR!R ((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pytcheckout=s
cCs|j|�dS(N(tlock(RRR((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyR*CscCs|j|�dS(N(tunlock(RRR((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyR+FscCsT|j|�}|j�}|j�x|D]}|dG||GHq,WddGHdS(Nt:t=iF(tinfotkeystsort(RRRtdictR/tkey((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyR.Is

cCs|j|�}|G|GHdS(N(R(RRRR((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyRQscCs|j|�r|GHndS(N(R(RRR((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pytlistUscCsTd}x&|D]\}}|d||}q
W|d}|j||�}|GHdS(Ntt i(tlog(RRRtflagstotaR$((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyR6Ys
c	Cs�t|||�rdSd}x&|D]\}}|d||}q#W|d}|j|�}tj�}|j|�|j�d||j|�|fGHtjd||j	|f�}|r�ddGHndS(NR4R5isdiff %s -r%s %ss
diff %s %s %sR-iF(
RR'ttempfiletNamedTemporaryFileR(tflushRR
tsystemtname(	RRRR7R8R9R!ttftsts((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pytdiffas


cCs_|dkr1t|�}|j�}|j�ntj|�j�}|j|�}||kS(N(tNoneRRRtmd5R"tdigesttsum(RRRR!R tlsumtrsum((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyRqs
cCs�|r
dGndGdGH|r$dGHnd}xPtjjd�tjj�tjj�}|sl|dkrpPn||}q-|S(Nsenter description,senter log message,s)terminate with single '.' or end of file:s"NOTE: This is NOT the log message!R4s>> s.
(RRR(R<tstdintreadline(R"R#tline((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyRzs

cCs,ytj|�Wntjk
r'nXdS(N(R
tunlinkR	(R((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pytremove�sR4tciRtcoR'R.RR3R*R+sbhLRtd:l:r:s:w:V:R6tcRAt__main__(t__doc__RR
RtstringRCR:t	rcsclientRRR%R)R*R+R.RR3R6RARBRRRLRt__name__(((s'/usr/lib64/python2.7/Demo/pdist/rrcs.pyt<module>sD	"												











MMCT - 2023