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/proc/self/root/lib64/python2.7/site-packages/hgext/fastannotate/commands.pyo
�
1�3\c@@s�ddlmZddlZddlmZddlmZmZmZm	Z	m
Z
mZmZm
Z
mZddlmZmZmZiZeje�Zejd�Zidd	d
ed�ed�fd
deed�fddeed�fddeed�fddeed�fddeed�fddeed�fdd eed!�fd"d#eed$�fd"d%eed&�fd"d'eed(�fd"d)eed*�fd"d+eed,�fg
ejejejd-6ed.�d/6ed06Zd1�Ze g�Z!e ged-ej"D]Z#e#dj$d2d3�^q&�Z%d4�Z&d5�Z'd6�Z(ed7dd	d"ed8�ed�fgejed9��d:��Z)dS(;i(tabsolute_importN(t_(	tcommandstencodingterrort
extensionstpatchtpycompatt	registrartscmutiltutili(tcontextRt	formatterc
#@sz�jjdd�}|r�tjj�j�}tjjtj�|�}|dkr`d}nt�fd�t	j
D��r�t}q�g|D]3}tjj|�r�tjj||�n|^q�}	t��fd�|	D��r�t}q�n|r!xz|	D]}tjj
||�VqWnUd�}
tj�|�}tj||�d|
�}x|j|�D]}|VqgWd	S(
s&generate paths matching given patternstfastannotatetperfhackt.tc3@s"|]}�j|d�VqdS(iN(tget(t.0to(topts(sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pys	<genexpr>0sc3@s@|]6}d|kp7tjjtj�|��j�VqdS(s..N(tostpathtisfilet	facontextt
pathhelpertlinelogpath(Rtf(taoptstrepo(sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pys	<genexpr>6scS@stjd||f��dS(Ns%s: %s(RtAbort(txty((sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pytbadBstbadfnN(tuit
configboolRRtdirnametrelpathRtgetcwdtanyRtwalkoptstFalsetisabstjoinR	t	revsingletmatchtwalk(
RtrevtpatsRRRtreporoottreldirtptrelpatsR!tctxtm((RRRsA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pyt_matchpaths"s*		=

	trR0Rsannotate the specified revisiontREVtutuserslist the author (long with -v)Rtfileslist the filenametdtdateslist the date (short with -q)tntnumbers"list the revision number (default)tct	changesetslist the changesettlsline-numbers(show line number at the first appearancetetdeleteds(show deleted lines (slow) (EXPERIMENTAL)Rs
no-contents'do not show file content (EXPERIMENTAL)s	no-followsdon't follow copies and renamestlinearsEenforce linear history, ignore second parent of merges (EXPERIMENTAL)s	long-hashs'show long changeset hash (EXPERIMENTAL)trebuilds.rebuild cache even if it exists (EXPERIMENTAL)toptionss3[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...tsynopsist	inferrepoc
@s,|stjtd���n|jdd�r?|j�}ntj����jdd�}�jdt�}t	j
|�ddd	t�}tj
d
|d�jdt�d
�jdt��}t�fd�dddddgD��s#x-|jdddg�D]}t�|<qWn|jd��jd�}	|	dkrctj||��}
ntj||��}
�jdt�}t�jd��}�jdt�}
|jdd�p�|}tt|||�|��}tj|d�r
|j|�nx|D]	}d }}}x�tr�y�tj||||��i}|j|d|d|
d|on|�}|r�td�|D��}|j|d|
d|�}nWd QXPWq(t j!t j"fk
r�|r��q�t}q(q(Xq(W|r|\}}n|
j#||d!|�qW|
j$�d S("s�show changeset information by line for each file

    List changes in files, showing the revision id responsible for each line.

    This command is useful for discovering when a change was made and by whom.

    By default this command prints revision numbers. If you include --file,
    --user, or --date, the revision number is suppressed unless you also
    include --number. The default format can also be customized by setting
    fastannotate.defaultformat.

    Returns 0 on success.

    .. container:: verbose

        This command uses an implementation different from the vanilla annotate
        command, which may produce slightly different (while still reasonable)
        outputs for some cases.

        Unlike the vanilla anootate, fastannotate follows rename regardless of
        the existence of --file.

        For the best performance when running on a full repo, use -c, -l,
        avoid -u, -d, -n. Use --linear and --no-content to make it even faster.

        For the best performance when running on a shallow (remotefilelog)
        repo, avoid --linear, --no-follow, or any diff options. As the server
        won't be able to populate annotate cache when non-default options
        affecting results are used.
    s,at least one filename or pattern is requiredR
tunfilteredrepoR0RRHtsectiontannotatet
whitespacetdiffoptstfollowmergeRGtfollowrenamet	no_followc3@s|]}�j|�VqdS(N(R(Rts(R(sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pys	<genexpr>�sR<R?R=RARCt
defaultformatttemplatetjsonRFt
no_contentt
mainbranchtprefetchfastannotatetmastertshowpatht	showlinescs@s#|]}|d|dfVqdS(iiN((RRD((sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pys	<genexpr>�sNt
existinglines(%RRRR$t
unfilteredRtbyteskwargsRR*RtdifffeatureoptstTrueRtannotateoptsR(t
configlisttpagertfaformattert
jsonformattertdefaultformattertbooltconfigtlistR8R
tsafehasattrRZtNonetannotatecontextRNtsettannotatealllinestfaerrortCannotReuseErrortCorruptedFileErrortwritetend(R#RR1RR0RHRPRtnameRVRtshowdeletedR]R\R[tpathsRtresulttlinesR^ta((RsA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pyR
`sf		

	
t-RcO@s�|jdd�r!|j�}n|jdd�r@t|d<n|jd�}tj|d�r�|dk	r�tt|||t	j
|���}|j|�n|||||�S(sused by wrapdefaultR
RLt	forcetextttextR0RZN(R$R_RbRR
RlRmRkR8RR`RZ(torigR#RR1RR0Rx((sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pyt_annotatewrapper�s
$cC@s#d}t|dtt�t�dS(s!register the fastannotate commandsfastannotate|fastblame|fat	helpbasicN(tcommandRbtfastannotatecommandargsR
(Rv((sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pytregistercommand�scC@stjtjdt�dS(s>wrap the default annotate command, to be aware of the protocolRNN(RtwrapcommandRttableR�(((sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pytwrapdefault�stdebugbuildannotatecaches!build up to the specific revisions[-r REV] FILE...cO@stj|�}|jd�p-|jdd�}|sZtjtd�dtd���n|jdd�r{|j�}nt	j
||�}t	j|||�}t|j
|��}tj|d�r|jd�r�tjtd	���n|j|�nxt|�D]�\}}	|jtd
�|dt|��tj||	���}
y)|
j|�rhw
n|
j||�Wntjtjfk
r�|jd|	�|
j�y|
j||�Wq�tk
r�}|jtd
�|	|f�q�XnXWdQXq
W|j�dS(s�incrementally build fastannotate cache up to REV for specified files

    If REV is not specified, use the config 'fastannotate.mainbranch'.

    If fastannotate.client is True, download the annotate cache from the
    server. Otherwise, build the annotate cache locally.

    The annotate cache will be built using the default diff and follow
    options and lives in '.hg/fastannotate/default'.
    R:R
RYsyou need to provide a revisionthints(set fastannotate.mainbranch or use --revRLRZs--rev cannot be used for clienttbuildingttotals*fastannotate: %s: rebuilding broken cache
s,fastannotate: %s: failed to build cache: %r
N( RR`RRjRRRR$R_R	R-R.RkR/R
RlRZt	enumeratetprogresstlenRRnt
isuptodateRNRqRrRstdebugRHt	ExceptiontwarnRt(R#RR1RR0R6R7RxtiRtactxtex((sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pyR��s>!"	
 (*t
__future__RRtmercurial.i18nRt	mercurialRRRRRRRR	R
RRRRqRRftcmdtableR�tdefaultoptsR8Rmt
diffwsoptsR)t
formatteroptsRbR�R
Rot_newoptst
globaloptstopttreplacet
_knownoptsR�R�R�R�(((sA/usr/lib64/python2.7/site-packages/hgext/fastannotate/commands.pyt<module>s.@'�7

	i4			!