-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/hook.pyc

ó
Ì\,Tc@s’ddlmZddlZddlZddlZddlZddlZddlZd„Zd„Z	d„Z
ead„Z
ed„ZdS(iÿÿÿÿ(t_Nc	Cs?t|ƒr)|}|jd|j}nh|jdƒ}|dkrftjtdƒ||fƒ‚n|| }	tj}
tj	ƒrÉt
jj|	ƒ\}}|rÉ|rÉtj|gt_|}	qÉntj
ƒ}
|
rètjƒnz÷yt|	ƒ}Wnàtk
rÝtjtjtjf}ytd|	ƒ}WqÞtk
rÙtjtjtjf}|jr~|jtdƒƒn|j|ƒ|jrª|jtdƒƒn|j|ƒtjtdƒ||	fƒ‚qÞXnXWd|
rõtjƒnX|
t_y1x*|jdƒd	D]}t||ƒ}qWWn0tk
rbtjtd
ƒ||fƒ‚nXt|ƒs‘tjtdƒ||fƒ‚n|jtdƒ||fƒtjƒ}zúy`tjtjtjf}|j|j |j!t_t_t_|d
|d|d||}Wn“t"k
r3‚n€t#k
r²}t$|tjƒr{|jtdƒ||j%dfƒn|jtdƒ||fƒ|r¤‚n|jƒt&SXWd|\t_t_t_tjƒ|}|j'dd|||ƒX|r;|r!tjtdƒ|ƒ‚n|jtdƒ|ƒn|S(sŸcall python hook. hook is callable object, looked up as
    name in python module. if callable returns "true", hook
    fails, else passes. if hook raises exception, treated as
    hook failure. exception propagates if throw is "true".

    reason for "true" meaning "hook failed" is so that
    unmodified commands (e.g. mercurial.commands.update) can
    be run as hooks without wrappers to convert return values.t.iÿÿÿÿs)%s hook is invalid ("%s" not in a module)shgext_%ss,exception from first failed import attempt:
s-exception from second failed import attempt:
s*%s hook is invalid (import of "%s" failed)Nis(%s hook is invalid ("%s" is not defined)s)%s hook is invalid ("%s" is not callable)scalling hook %s: %s
tuitrepothooktypeserror: %s hook failed: %s
is'error: %s hook raised an exception: %s
t
pythonhooks,pythonhook-%s: %s finished in %0.2f seconds
s%s hook failedswarning: %s hook failed
((tcallablet
__module__t__name__trfindtutiltAbortRtsystpatht
mainfrozentostsplittdemandimportt	isenabledtdisablet
__import__tImportErrortexc_typet	exc_valuet
exc_tracebackt
tracebackflagtwarnt	tracebacktenabletgetattrtAttributeErrortnotettimetstdouttstderrtstdintfouttferrtfintKeyboardInterruptt	Exceptiont
isinstancetargstTruetlog(RRtnamethnametfuncnameR*tthrowtobjtdtmodnametoldpathstmodpathtmodfiletdemandimportenabledte1te2tpt	starttimetoldtrtexctduration((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt_pythonhooks”

	


	
	
	
&"

	cCsÌ|jtdƒ||fƒtjƒ}i}x…|jƒD]w\}}	t|	ƒr`|	ƒ}	nt|	tƒrŸddjd„t|	jƒƒDƒƒd}	n|	|d|j	ƒ<q<W|rÉ|j
}
ntjƒ}
d|kr|dj
dƒrtj|d	|d
|
d|ƒ}n$tj|d	|d
|
d|jƒ}tjƒ|}|jdd
|||ƒ|rÈtj|ƒ\}
}|r¨tjtdƒ||
fƒ‚n|jtdƒ||
fƒn|S(Nsrunning hook %s: %s
t{s, css|]}d|VqdS(s%r: %rN((t.0ti((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pys	<genexpr>~st}tHG_tHG_URLsremote:httptenvirontcwdtouttexthooks)exthook-%s: %s finished in %0.2f seconds
s
%s hook %sswarning: %s hook %s
(RRR t	iteritemsRR)tdicttjointsortedtuppertrootRtgetcwdt
startswithR
tsystemR$R,texplainexitRR(RRR-tcmdR*R0R;tenvtktvRHR=R?tdesc((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt_exthookrs2&
$$
" c	Cs g}xh|jdƒD]W\}}|jdƒs|jdd|dƒ}|j|t|ƒ||fƒqqWgt|ƒD]\}}}}||f^q~S(Nthookstpriorityspriority.%si(tconfigitemsRRt	configinttappendtlenRN(	RR[R-RUR\R:toRWRX((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt	_allhooks•s'cCs
|adS(N(t	_redirect(tstate((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pytredirectžsc	Ks‡|js
tSt}d}z4x-t|ƒD]\}}|jdƒd|ks)|r[q)n|dkrótróyitjjƒ}	tjjƒ}
|	dkrÕ|
dkrÕtjj	ƒt
j|	ƒ}t
j|
|	ƒnWqót
tfk
rïqóXnt|ƒr&t|||||||ƒp |}q)|jdƒr'|jdƒdkrð|djddƒ\}}tj|ƒ}|r–t
jj|j|ƒ}nytj|d	|ƒ}Wn+tk
rÝ|jtd
ƒ|ƒ‚nXt||ƒ}
n|djƒ}
t|||||
||ƒp!|}q)t ||||||ƒpE|}q)WWdtr‚|dkr‚t
j||	ƒt
j!|ƒnX|S(NiÿÿÿÿRispython:t:iiis	hghook.%ssloading %s hook failed:
("t	callhookstFalseRbRRcRt
__stdout__tfilenot
__stderr__tflushRtduptdup2tOSErrorRRR@RRtcounttrsplitR
t
expandpathR
RMRPt
extensionstloadpathR(twriteRRtstripRZtclose(RRR-R0R*R=t	oldstdoutR.RUtstdoutnotstderrnoR
tmodthookfn((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pythook¢sN	 
'
')(ti18nRRRR RsR
RR@RZRbRhRcReR}(((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt<module>s$$	f	#		

Copyright © 2017 || Recoded By Mr.Bumblebee