https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hgext/fastannotate/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgext/fastannotate/__pycache__/support.cpython-310.pyc
o

�]LbK�@s�ddlmZddlmZddlmZmZmZm	Z	m
Z
mZddlmZm
Z
Gdd�de�Zdd	�Zd
d�Zddd�Zdd�Z	
ddd�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/lib/python3/dist-packages/hgext/fastannotate/support.py�__init__s
z_lazyfctx.__init__cC�|jSr
)r�rrrrr"�z_lazyfctx.nodecCrr
)rrrrrr%rz_lazyfctx.pathcCst�|j|j|j�Sr
)r�resolvefctxrrrrrrr�_fctx(�z_lazyfctx._fctxcCst|j|�Sr
)rr)r�namerrr�__getattr__,sz_lazyfctx.__getattr__N)�__name__�
__module__�__qualname__�__doc__rrrr	�
propertycacherrrrrrrs
rc
Cszg}i}tj}t|�D]/\}\}}}	||	f|vr"t|||	�|||	f<|d}
|||	f}||}|�|||
|d��q|S)z7convert fastannotate outputs to vanilla annotate formatr
)�fctx�lineno�text)r�annotateline�	enumerater�append)
r�	annotated�contents�results�fctxmapr(�i�hsh�linenumrr&r%�linerrr�_convertoutputs0sr3cCs|jj�dd�p	dS)z
(fctx) -> strsfastannotates
mainbranchsdefault)r�ui�config)r%rrr�
_getmasterBrr6TNcCs�t|�}t�|||��G}z|j|��|ddd�\}}Wn/tyJ|��|jj�	d|j
�z|j|��|ddd�\}}WntyG�wYnwWd�n1sUwY|r^|s`J�t|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)�master�showpath�	showliness*fastannotate: %s: rebuilding broken cache
N)r6r�fctxannotatecontext�annotate�rev�	Exception�rebuildrr4�debugrr3)r%�follow�diffoptsr7�acr+r,rrr�_doannotateGs0��������rCcCstj|dddd�}t||d�S)NT�annotate)�	untrusted�section�
whitespace)rA)r�difffeatureoptsrC)�origr%r4rArrr�_hgwebannotatecs�rJFc
Csl|r||||||d�Szt|||�WSty5}z|jj�d|�|||||d�WYd}~Sd}~ww)N)�skiprevsrAs7fastannotate: falling back to the vanilla annotate: %r
)r@rKrA)rCr=rr4r?)rIrr@�
linenumberrKrA�exrrr�
_fctxannotatejs
����rNcCsLt�|||��}t�|j�}Wd�n1swY||||||d�S)N)rKrA�prefetchskip)rr:r�
revmappath)rIrr@rKrArB�skipsetrrr�_remotefctxannotate{s�
�rRcC�t�tjdt�dS�NrD)r�wrapfunctionr�webutilrJrrrr�replacehgwebannotate��rWcCrSrT)rrU�	hgcontext�basefilectxrNrrrr�replacefctxannotate�rXr[)TN)FFNN)FNN)�
__future__r�mercurial.pycompatr�	mercurialrrYrrrrr	�r�objectrr3r6rCrJrNrRrWr[rrrr�<module>s 	

�
	

https://t.me/RX1948 - 2025