HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/lib64/python2.7/site-packages/mercurial/progress.pyc
�
1�3\c@@s�ddlmZddlZddlZddlZddlmZddlmZd�Z	d�Z
d�Zd	�Zd
e
fd��YZdS(i(tabsolute_importNi(t_(tencodingcG@sdjd�|D��S(Nt cs@s|]}|r|VqdS(N((t.0ts((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pys	<genexpr>s(tjoin(targs((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyt	spacejoinscC@s;|jp|jd�o:|j|j�p:|jdd�S(Ntprogresss
assume-tty(tquiettplaint_isattytferrt
configbool(tui((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pytshouldprintscC@sN|dkrtd�|S|d}|dkrR||d8}td�||fS|d7}|d}||d8}|dkr�td�||fS|d7}|d}||d8}|dkr�td	�||fS|d7}|d
}||d
8}|dkrtd�||fS|d7}|d
}||d
8}td�||fS(s�format a number of remaining seconds in human readable way

    This will properly display seconds, minutes, hours, days if neededi<s%02dss%dm%02dsiis%dh%02dmiis%dd%02dhii7s%dw%02ddi4s%dy%02dw(R(tsecondstminutesthourstdaystweekstyears((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pytfmtremainings2








cG@sPxItrKy||�SWqtk
rG}|jtjkrAqn�qXqWdS(N(tTruetIOErrorterrnotEINTR(tfuncRterr((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyt_eintrretryIs	tprogbarcB@s�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
dddd
�Zd�ZRS(cC@s&||_tj�|_|j�dS(N(Rt	threadingtLockt_refreshlockt
resetstate(tselfR((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyt__init__Ss	cC@s�g|_i|_i|_i|_t|_tj�t|jj	dd��|_
d|_d|_
d|_t|jj	dd��|_td|jt|jj	dd���|_|jjdd�|_|jjtdd�|_dS(	NR	tdelayitrefreshitchangedelaytformattestimateinterval(ttopicsttopicstatest
starttimest	startvalstFalsetprintedttimetfloatRtconfigt	lastprinttNonetcurtopict	lasttopict
indetcountR'tmaxR(t
configlisttordert
configwithR*(R$((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyR#Xs$								
	cC@s�t|j�sdS|j�}t|_d}t}	d}
x�|jD]�}d}|dkre|}n�|dkr�|r�dtt|��||f}q�d|}nR|j	d�rt|rtd}
d|kr�t
|jd�d	�}n4d
|krd}
t
|jd
�d	�}nd}|
dkrDtj
||d
t�}ntj
||�}||tj|�d7}n�|dkr�d}t}	ni|dkr�|r�|}nN|dkr�|j||||�}n'|dkr�|j||||�}n|	st||�}qDt|
|�}
qDW|	rld}|rO|tj|�d	7}n|
ro|tj|
�d	7}n||d}|r�||kr�|||}d|d	}|dkr�|d7}n|d||7}nf|d8}|jd	7_|jd|}||8}dt
|t|��ddt
t|��}djd|df�}t|||
�}nt||
�}|jdtj
||��||_|j�dS(Ntttopictnumbers%*d/%ds%dtitemtendt-it+t	beginningitleftsideRtbartunittestimatetspeediit=t>is<=>t[t]s
(RRtwidthRR0R/R;tlentstrt
startswithtinttsplitRttrimtcolwidthRHRIRR8tabsRt	_writeerrR7t	_flusherr(R$tnowR>tposR@RGttotalt	termwidththeadtneedprogressttailt	indicatortaddtslicetwidtusedt	progwidthtamtRFtprogtout((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pytshowls�		"
		


	cC@s\|js$|js$t|j�r(dS|jdd|j��|jrXd|_ndS(Ns
%s
Ri(R0R4RRRWRN(R$((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pytclear�s
$	cC@sPt|j�sdS|jjdd�r5|j�n
|jd�|j�dS(NR	sclear-completes
(RRRRjRWRX(R$((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pytcomplete�s

cC@st|jjj�dS(N(RRR
tflush(R$((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyRX�scC@st|jjj|�dS(N(RRR
twrite(R$tmsg((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyRW�scC@s7|jj�}tt|jjddd|��|�S(NR	RNtdefault(RR\tminRRR3(R$ttw((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyRN�sc
C@sr|dkrdS|j|}||}||}|dkrn||j|}||||d}	t|	�SdS(NR=ii(R5R.R-R(
R$R>RZR[RYt
initialposttargettdeltatelapsedR((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyRH�s



cC@sP|j|}||}||j|}|dkrLtd�|||fSdS(Nis	%d %s/secR=(R.R-R(R$R>RZRGRYRrRtRu((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyRI�s

cC@sC|jdks7|j|jks7||j|jkr;tStSdS(s?Check if conditions are met to print - e.g. changedelay elapsedN(R7R5R6R4R(RR/(R$RY((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyt
_oktoprint�s
cC@s�|j}|dkrdS||j|}||kr�||j|}|||}|dkredS|||j|<|||j|<ndS(s�Adjust starttimes and startvals for topic so ETA works better

        If progress is non-linear (ex. get much slower in the last minute),
        it's more friendly to only use a recent time span for ETA and speed
        calculation.

            [======================================>       ]
                                             ^^^^^^^
                           estimateinterval, only use this for estimation
        iNg�������?(R*R-R.(R$R>RYRZtintervalRuRttnewdelta((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyt_calibrateestimate�s	R=c	C@s|dkr|j|�dStj�}|j��||jkro||j|<||j|<|jj|�n||||f|j|<||_	|j
|||�||j|jkr�|jr�|j
|�r�||_|j|||j|�q�nWdQXdS(N(R5t
closetopicR1R"R+R-R.tappendR,R6RyR4R'RvRi(R$R>RZR@RGR[RY((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyR	
s 



		cC@s�|j��|jj|d�|jj|d�|jj|d�|jr|jd|kr|jr|j�|j	�n||jkr�|j|jj
|� |_|jr�|jd|_q�d|_nWdQXdS(Nii����(R"R-tpopR5R.R,R+R0RkR#tindexR7(R$R>((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyRzs
%

	N(t__name__t
__module__R%R#RiRjRkRXRWRNRHRIRvRyR5R	Rz(((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyRRs			J										(t
__future__RRR R1ti18nRR=RRRRRtobjectR(((s8/usr/lib64/python2.7/site-packages/mercurial/progress.pyt<module>s			1