Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/Tools/scripts/treesync.pyo
Ñò
§ÚêLc@sÊdZddkZddkZddkZddkZdZdZdadada	d„Z
d„Zd„ZdZ
d„Zd„Zd
„Zdddd„Zdd„Zedjoe
ƒndS(s†Script to synchronize two source trees.

Invoke with two arguments:

python treesync.py slave master

The assumption is that "master" contains CVS administration while
slave doesn't.  All files in the slave tree that have a CVS/Entries
entry in the master tree are synchronized.  This means:

    If the files differ:
        if the slave file is newer:
            normalize the slave file
            if the files still differ:
                copy the slave to the master
        else (the master is newer):
            copy the master to the slave

    normalizing the slave means replacing CRLF with LF when the master
    doesn't use CRLF

iÿÿÿÿNtasktyestnoc	Cs:titiddƒ\}}xÁ|D]¹\}}|djo
d}n|djo
d}n|djo
|an|djo
|an|d	jo
|an|d
jo
|}n|djo|}aaaq&q&Wy|\}}Wn3tj
o'dGtid
pdGdGdGHdSXt||ƒdS(Nisnym:s:d:f:a:s-yRs-nRs-ss-ms-ds-fs-as
usage: pythonistreesync.pys5[-n] [-y] [-m y|n|a] [-s y|n|a] [-d y|n|a] [-f n|y|a]sslavedir masterdir(tgetopttsystargvtwrite_slavetwrite_mastertcreate_directoriest
ValueErrortprocess(toptstargstotatdefault_answertcreate_filestslavetmaster((s./usr/lib64/python2.6/Tools/scripts/treesync.pytmain#s2












cCsktii|dƒ}tii|ƒpdG|GHdGHdSddGHdG|GHdG|GHtii|ƒp‚td|d	tƒpdG|GHd
G|GHdSdG|GHyti|ƒWn*tij
o}dG|Gd
G|GHdSXdG|GHnd}g}ti	|ƒ}x|D]…}tii||ƒ}tii||ƒ}|djo
|}q
tii|ƒo+tii
|ƒo|i||fƒq
q
W|o¦tii|dƒ}	xŽt|	ƒi
ƒD]v}
|
idƒ}|ddjoP|doE|d}tii||ƒ}tii||ƒ}
t||
ƒqÅqÅWnx!|D]\}}
t||
ƒqJWdS(NtCVSsskipping master subdirectorys-- not under CVSt-i(sslave Rscreate slave directory %s?tanswers-- no corresponding slavescreating slave directoryscan't make slave directoryt:smade slave directorytEntriest/iti(tostpathtjointisdirtokayRtmkdirterrortNonetlistdirtislinktappendtopent	readlinestsplittcompareR
(RRtcvsdirtmsgtsubdirstnamestnamet
masternamet	slavenametentriestetwordststm((s./usr/lib64/python2.6/Tools/scripts/treesync.pyR
?sZ				

			


'
cCs½yt|dƒ}Wntj
o
d}nXyt|dƒ}Wntj
o
d}nX|p6|pdG|GHdSdG|GHt||dtƒdS|pdG|GHdS|o |ot||ƒodSnt|ƒ}t|ƒ}||jo>|iƒ|iƒdG|GHdG|GHt||dtƒdSd	G||Gd
GH|i	dƒt
|ƒ}|iƒ|iƒ|odGHt||ddtƒnd
GHt||ddtƒdS(NtrtrbsNeither master nor slave existssCreating missing slaveRsNot updating missing mastersMaster             sis newer than slavesSlave issseconds newer than masteris#***UPDATING MASTER (BINARY COPY)***s***UPDATING MASTER***(R&tIOErrorR"tcopyRt	identicaltmtimetcloseRtseekt
funnycharsR(RRtsftmftsfttmfttfun((s./usr/lib64/python2.6/Tools/scripts/treesync.pyR)msP				


		


iicCsFx?|itƒ}|itƒ}||jodS|pPqqdS(Nii(treadtBUFSIZE(R?R@tsdtmd((s./usr/lib64/python2.6/Tools/scripts/treesync.pyR:s
cCs ti|iƒƒ}|tiS(N(RtfstattfilenotstattST_MTIME(tftst((s./usr/lib64/python2.6/Tools/scripts/treesync.pyR;¥scCsDx=|itƒ}|pPnd|jp
d|jodSqdS(Ns
tii(RDRE(RLtbuf((s./usr/lib64/python2.6/Tools/scripts/treesync.pyR>©sR7twbcCs‹dG|GHdG|GHtd|ƒpdSt||ƒ}t||ƒ}x+|itƒ}|pPn|i|ƒqH|iƒ|iƒdS(Ntcopyings     tosokay to copy? (RR&RDREtwriteR<(tsrctdsttrmodetwmodeRRLtgRO((s./usr/lib64/python2.6/Tools/scripts/treesync.pyR9°s		
cCs™|iƒiƒ}|p|ddjo3t|ƒ}|iƒiƒ}|p
t}q^n|d djodS|d djodSdGHt|ƒS(NitnyitytnsYes or No please -- try again:(tstriptlowert	raw_inputRR(tpromptR((s./usr/lib64/python2.6/Tools/scripts/treesync.pyR¾st__main__i@(t__doc__RRRJRRRRRRRR
R)RER:R;R>R9Rt__name__(((s./usr/lib64/python2.6/Tools/scripts/treesync.pyt<module>s"0		.	.			


haha - 2025