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: //lib64/python2.7/site-packages/hgext/fastannotate/support.pyc
�
1�3\c@@s�ddlmZddlmZmZmZmZmZm	Z	ddl
mZmZdefd��YZ
d�Zd�Zedd	�Zd
�Zeeddd�Zeddd�Zd
�Zd�ZdS(i(tabsolute_import(tcontexttdagopt
extensionsthgwebtpatchtutili(Rtrevmapt	_lazyfctxcB@sDeZdZd�Zd�Zd�Zejd��Zd�Z	RS(s<delegates to fctx but do not construct fctx when unnecessarycC@s||_||_||_dS(N(t_nodet_patht_repo(tselftrepotnodetpath((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt__init__s		cC@s|jS(N(R	(R((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyR scC@s|jS(N(R
(R((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyR#scC@stj|j|j|j�S(N(RtresolvefctxRR	R
(R((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt_fctx&scC@st|j|�S(N(tgetattrR(Rtname((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt__getattr__*s(
t__name__t
__module__t__doc__RRRRt
propertycacheRR(((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyRs			c
	C@s�g}i}tj}x�t|�D]�\}\}}}	||	f|krht|||	�|||	f<n|d}
|||	f}||}|j|d|d|
d|��q"W|S(s7convert fastannotate outputs to vanilla annotate formatitfctxtlinenottext(Rtannotatelinet	enumerateRtappend(
R
t	annotatedtcontentstresultstfctxmapRtithshtlinenumRRRtline((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt_convertoutputs-s	"

&cC@s|jjjdd�pdS(s
(fctx) -> strtfastannotatet
mainbranchtdefault(Rtuitconfig(R((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt
_getmaster>scC@s
t|�}d}}tj|||���}y1|j|j�d|dtdt�\}}Wn}tk
r�|j�|j	j
jd|j�y1|j|j�d|dtdt�\}}Wq�tk
r��q�XnXWdQX|r�|s�t
�t|j	||�S(s�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.
    tmastertshowpatht	showliness*fastannotate: %s: rebuilding broken cache
N(R.tNoneRtfctxannotatecontexttannotatetrevtTruet	ExceptiontrebuildRR,tdebugR
tAssertionErrorR((RtfollowtdiffoptsR/R R!tac((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt_doannotateBs"



cC@s1tj|dtdddt�}t|d|�S(Nt	untrustedtsectionR4t
whitespaceR<(RtdifffeatureoptsR6R>(torigRR,R<((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt_hgwebannotate[scC@s�|r"||||d|d|�Syt|||�SWnCtk
r{}|jjjd|�||d|d|d|�SXdS(NtskiprevsR<s7fastannotate: falling back to the vanilla annotate: %r
R;(R>R7RR,R9(RCRR;t
linenumberRER<tex((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt
_fctxannotate`sc
C@sUd}tj|||��}tj|j�}WdQX|||d|d|d|�S(NRER<tprefetchskip(R2RR3Rt
revmappath(RCRR;RER<tskipsetR=((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt_remotefctxannotatens
cC@stjtjdt�dS(NR4(RtwrapfunctionRtwebutilRD(((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pytreplacehgwebannotatevscC@stjtjdt�dS(NR4(RRMt	hgcontexttbasefilectxRH(((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pytreplacefctxannotateysN(t
__future__Rt	mercurialRRPRRRRRtRtobjectRR(R.R6R2R>RDtFalseRHRLRORR(((s@/usr/lib64/python2.7/site-packages/hgext/fastannotate/support.pyt<module>s.